spec/roqua/support/helpers_spec.rb in roqua-support-0.1.34 vs spec/roqua/support/helpers_spec.rb in roqua-support-0.3.0
- old
+ new
@@ -21,10 +21,10 @@
with_instrumentation('testevent', extra: 'params') { 1 + 1 }
end
it 'returns the value returned by the block' do
- with_instrumentation('testevent') { 1 + 1 }.should == 2
+ expect(with_instrumentation('testevent') { 1 + 1 }).to eq 2
end
end
context 'when an exception happens during the block' do
it 'logs the start and failure of a block if it raises' do