diff options
author | Igor Shpakov <igorshp@gmail.com> | 2015-04-21 18:58:18 +0100 |
---|---|---|
committer | Igor Shpakov <igorshp@gmail.com> | 2015-04-21 18:58:18 +0100 |
commit | 56958bd7b82dc2eff15f1d55182efd549323bbfb (patch) | |
tree | be76ceac6431784e5a6e4ef80f2b691dc08c9ca7 /spec/unit/client_spec.rb | |
parent | 876597fa6cc1014873482b8f56fdcf39c633bc26 (diff) | |
download | chef-56958bd7b82dc2eff15f1d55182efd549323bbfb.tar.gz |
cleaned up rspec test
Diffstat (limited to 'spec/unit/client_spec.rb')
-rw-r--r-- | spec/unit/client_spec.rb | 6 |
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 |