From 9a94ee274c39c261cd49e688a7bd7ea0eb73af50 Mon Sep 17 00:00:00 2001 From: Markus Roberts Date: Mon, 28 Jun 2010 16:49:08 -0700 Subject: Fix for test ordering sporadic failure The spec/unit/provider/ssh_authorized_key/parsed_spec_spec.rb was trying to use Dir.tempdir but getting ours. --- spec/unit/provider/ssh_authorized_key/parsed_spec_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit