summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xspec/unit/provider/ssh_authorized_key/parsed_spec_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/provider/ssh_authorized_key/parsed_spec_spec.rb b/spec/unit/provider/ssh_authorized_key/parsed_spec_spec.rb
index e60ba2797..9fdd7f499 100755
--- a/spec/unit/provider/ssh_authorized_key/parsed_spec_spec.rb
+++ b/spec/unit/provider/ssh_authorized_key/parsed_spec_spec.rb
@@ -17,7 +17,7 @@ describe provider_class do
before :each do
@sshauthkey_class = Puppet::Type.type(:ssh_authorized_key)
@provider = @sshauthkey_class.provider(:parsed)
- @keyfile = File.join(tmpdir, 'authorized_keys')
+ @keyfile = File.join(Dir.tmpdir, 'authorized_keys')
@provider.any_instance.stubs(:target).returns @keyfile
@user = 'random_bob'
Puppet::Util.stubs(:uid).with(@user).returns 12345