diff options
Diffstat (limited to 'spec/unit/handler_spec.rb')
-rw-r--r-- | spec/unit/handler_spec.rb | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/spec/unit/handler_spec.rb b/spec/unit/handler_spec.rb index f0c78d9bc1..5e06dfbffd 100644 --- a/spec/unit/handler_spec.rb +++ b/spec/unit/handler_spec.rb @@ -100,7 +100,7 @@ describe Chef::Handler do $report_ran = true raise Exception, "I died the deth" end - expect {@handler.run_report_safely(@run_status)}.not_to raise_error + expect { @handler.run_report_safely(@run_status) }.not_to raise_error expect($report_ran).to be_truthy end it "does not fail if the report handler does not raise an exception" do @@ -108,7 +108,7 @@ describe Chef::Handler do def @handler.report $report_ran = true end - expect {@handler.run_report_safely(@run_status)}.not_to raise_error + expect { @handler.run_report_safely(@run_status) }.not_to raise_error expect($report_ran).to be_truthy end end @@ -211,5 +211,4 @@ describe Chef::Handler do expect(@handler.data).to eq(@run_status.to_hash) end end - end |