summaryrefslogtreecommitdiff
path: root/spec/functional
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-01-29 14:49:59 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2014-01-29 14:49:59 -0800
commit900886337d3b5dc1a4f4514aff91ba234d327bfe (patch)
treed0ea88d09f7b928260888e8f0706b32b58ccc6ef /spec/functional
parentb593ff07bb7e7abf56279575e1bd8af99c7dc00f (diff)
downloadchef-900886337d3b5dc1a4f4514aff91ba234d327bfe.tar.gz
fix should_not raise_error(SpecificException)
Diffstat (limited to 'spec/functional')
-rw-r--r--spec/functional/resource/registry_spec.rb2
-rw-r--r--spec/functional/run_lock_spec.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/functional/resource/registry_spec.rb b/spec/functional/resource/registry_spec.rb
index b64989c141..455c31c283 100644
--- a/spec/functional/resource/registry_spec.rb
+++ b/spec/functional/resource/registry_spec.rb
@@ -547,7 +547,7 @@ describe Chef::Resource::RegistryKey, :windows_only do
@new_resource.values([{:name=>"BriskWalk",:type=>:string,:data=>"is good for health"}])
@new_resource.recursive(false)
@new_resource.run_action(:delete_key)
- @new_resource.should_not raise_error(ArgumentError)
+ @new_resource.should_not raise_error
end
it "does nothing if the action is delete_key" do
@new_resource.key(reg_parent + '\OpscodeWhyRun')
diff --git a/spec/functional/run_lock_spec.rb b/spec/functional/run_lock_spec.rb
index 51645c0ae3..3fe77ff7ff 100644
--- a/spec/functional/run_lock_spec.rb
+++ b/spec/functional/run_lock_spec.rb
@@ -163,7 +163,7 @@ describe Chef::RunLock do
let!(:run_lock) { Chef::RunLock.new(lockfile) }
it "creates the full path to the lockfile" do
- lambda { run_lock.acquire }.should_not raise_error(Errno::ENOENT)
+ lambda { run_lock.acquire }.should_not raise_error
File.should exist(lockfile)
end