spec/capistrano/measure/timer_spec.rb in capistrano-measure-0.8.1 vs spec/capistrano/measure/timer_spec.rb in capistrano-measure-0.9.0

- old
+ new

@@ -73,17 +73,17 @@ event = subject.events.last expect(event.indent).to eq 0 end it "should raise exception with unstarted event" do - expect{ subject.stop('test123') }.to raise_exception + expect{ subject.stop('test123') }.to raise_error(RuntimeError) end end describe "#report_events" do it "should raise exception if called in the middle of process" do subject.start('test') - expect{ subject.report_events }.to raise_exception + expect{ subject.report_events }.to raise_error(RuntimeError) end context "in completed state" do before(:each) do subject.start('test')