summaryrefslogtreecommitdiff
path: root/spec/unit/exceptions_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/exceptions_spec.rb')
-rw-r--r--spec/unit/exceptions_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/exceptions_spec.rb b/spec/unit/exceptions_spec.rb
index 21b0abb9bf..6318ec9227 100644
--- a/spec/unit/exceptions_spec.rb
+++ b/spec/unit/exceptions_spec.rb
@@ -72,7 +72,7 @@ describe Chef::Exceptions do
exception_to_super_class.each do |exception, expected_super_class|
it "should have an exception class of #{exception} which inherits from #{expected_super_class}" do
- lambda{ raise exception }.should raise_error(expected_super_class)
+ expect{ raise exception }.to raise_error(expected_super_class)
end
if exception.methods.include?(:to_json)