We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb62b95 commit 333ed2fCopy full SHA for 333ed2f
spec/jobs/better_together/event_reminder_job_spec.rb
@@ -56,17 +56,16 @@ module BetterTogether
56
end
57
58
59
- describe 'retry and error handling' do
60
- it 'handles errors gracefully' do
61
- allow_any_instance_of(described_class).to receive(:find_event).and_raise(StandardError, 'Test error')
+ describe 'error handling' do
+ it 'handles missing events gracefully' do
62
expect do
63
- described_class.perform_now(event)
+ described_class.perform_now(999_999)
64
end.not_to raise_error
65
66
67
- it 'handles missing events gracefully' do
+ it 'handles invalid event IDs gracefully' do
68
69
- described_class.perform_now(999_999)
+ described_class.perform_now(nil)
70
71
72
0 commit comments