Skip to content

Commit 4a5c94d

Browse files
committed
Fix RSpec warning about false positives
Using `not_to raise_error` with a specific class can hide problems with the code causing errors of another kind so follow the recommended practice of not using a specific class.
1 parent 5a51cb7 commit 4a5c94d

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

spec/jobs/petition_signed_data_update_job_spec.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ def running_the_job
2323
end
2424

2525
it 'does not raise the deserialization problem (which would cause the worker to requeue the job)' do
26-
expect {
27-
running_the_job
28-
}.not_to raise_error(ActiveJob::DeserializationError)
26+
expect { running_the_job }.not_to raise_error
2927
end
3028
end
3129

0 commit comments

Comments
 (0)