diff options
author | Jesse Wolfe <jes5199@gmail.com> | 2009-12-20 19:26:55 -0800 |
---|---|---|
committer | Jesse Wolfe <jes5199@gmail.com> | 2009-12-20 19:31:27 -0800 |
commit | 08840356c88c2478f523189e668eb96e410e27e6 (patch) | |
tree | 64edfffca7546bf0b0538512394c3ea37cb714ad /spec/unit/provider | |
parent | b86decc0ea274eb6d9ffa3170fd4ec81d735519f (diff) | |
download | puppet-08840356c88c2478f523189e668eb96e410e27e6.tar.gz puppet-08840356c88c2478f523189e668eb96e410e27e6.tar.xz puppet-08840356c88c2478f523189e668eb96e410e27e6.zip |
Fix #2970 spec/unit/provider/ssh_authorized_key/parsed.rb has order dependencies
Some tests in this file were leaking a global setting, some other tests
depended on those changes, and some tests were incompatible with that
setting.
Signed-off-by: Jesse Wolfe <jes5199@gmail.com>
Diffstat (limited to 'spec/unit/provider')
-rwxr-xr-x | spec/unit/provider/ssh_authorized_key/parsed.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/unit/provider/ssh_authorized_key/parsed.rb b/spec/unit/provider/ssh_authorized_key/parsed.rb index 49abc13ec..9abcda54f 100755 --- a/spec/unit/provider/ssh_authorized_key/parsed.rb +++ b/spec/unit/provider/ssh_authorized_key/parsed.rb @@ -33,7 +33,7 @@ describe provider_class do end def genkey(key) - @provider.filetype = :ram + @provider.stubs(:filetype).returns(Puppet::Util::FileType::FileTypeRam) file = @provider.default_target key.flush @@ -90,7 +90,9 @@ describe provider_class do before :each do @resource = stub("resource", :name => "foo") @resource.stubs(:[]).returns "foo" + @provider = provider_class.new(@resource) + provider_class.stubs(:filetype).returns(Puppet::Util::FileType::FileTypeRam) end describe "when flushing" do |