diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2014-01-29 14:49:59 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2014-01-29 14:49:59 -0800 |
commit | 900886337d3b5dc1a4f4514aff91ba234d327bfe (patch) | |
tree | d0ea88d09f7b928260888e8f0706b32b58ccc6ef /spec/unit/provider/user/pw_spec.rb | |
parent | b593ff07bb7e7abf56279575e1bd8af99c7dc00f (diff) | |
download | chef-900886337d3b5dc1a4f4514aff91ba234d327bfe.tar.gz |
fix should_not raise_error(SpecificException)
Diffstat (limited to 'spec/unit/provider/user/pw_spec.rb')
-rw-r--r-- | spec/unit/provider/user/pw_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/provider/user/pw_spec.rb b/spec/unit/provider/user/pw_spec.rb index e5ebcb370a..1d5ad38c9c 100644 --- a/spec/unit/provider/user/pw_spec.rb +++ b/spec/unit/provider/user/pw_spec.rb @@ -212,7 +212,7 @@ describe Chef::Provider::User::Pw do it "should not raise an exception if pw usermod succeeds" do @status.should_receive(:exitstatus).and_return(0) - lambda { @provider.modify_password }.should_not raise_error(Chef::Exceptions::User) + lambda { @provider.modify_password }.should_not raise_error end end end @@ -229,7 +229,7 @@ describe Chef::Provider::User::Pw do it "shouldn't raise an error if /usr/sbin/pw exists" do File.stub(:exists?).and_return(true) - lambda { @provider.load_current_resource }.should_not raise_error(Chef::Exceptions::User) + lambda { @provider.load_current_resource }.should_not raise_error end end end |