spec/unit/harvestdor/indexer/metrics_spec.rb in harvestdor-indexer-2.3.1 vs spec/unit/harvestdor/indexer/metrics_spec.rb in harvestdor-indexer-2.3.2
- old
+ new
@@ -28,19 +28,19 @@
end
it 'records an error if the block fails' do
expect do
subject.tally do
- fail 'Broken'
+ raise 'Broken'
end
end.to change { subject.error_count }.from(0).to(1)
end
it 'allows an error handler to be provided' do
x = double
expect(x).to receive(:call).with(kind_of(RuntimeError))
subject.tally(on_error: x) do
- fail 'Broken'
+ raise 'Broken'
end
end
end
end
\ No newline at end of file