summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Shpakov <igorshp@gmail.com>2015-04-21 18:58:18 +0100
committerIgor Shpakov <igorshp@gmail.com>2015-04-21 18:58:18 +0100
commit56958bd7b82dc2eff15f1d55182efd549323bbfb (patch)
treebe76ceac6431784e5a6e4ef80f2b691dc08c9ca7
parent876597fa6cc1014873482b8f56fdcf39c633bc26 (diff)
downloadchef-56958bd7b82dc2eff15f1d55182efd549323bbfb.tar.gz
cleaned up rspec test
-rw-r--r--spec/unit/client_spec.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/spec/unit/client_spec.rb b/spec/unit/client_spec.rb
index 7146e69222..affbd0544d 100644
--- a/spec/unit/client_spec.rb
+++ b/spec/unit/client_spec.rb
@@ -829,11 +829,7 @@ describe Chef::Client do
it "should run exception handlers on early fail" do
expect(subject).to receive(:run_failed)
- begin
- subject.run
- rescue => exception
- expect(exception).to be_instance_of(NoMethodError)
- end
+ expect { subject.run }.to raise_error(NoMethodError)
end
end
end