Skip to content

Commit

Permalink
Add explicit flag on mocking call to prevent flakiness
Browse files Browse the repository at this point in the history
  • Loading branch information
mchae-nava committed Nov 18, 2024
1 parent dba41fa commit 770e7d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/models/form526_submission_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1283,6 +1283,8 @@ def expect_no_max_cfi_logged(diagnostic_code)
subject { create(:form526_submission, :with_multiple_succesful_jobs) }

it 'does not trigger job when disability_526_call_received_email_from_polling enabled' do
allow(Flipper).to receive(:enabled?).with(:disability_526_call_received_email_from_polling,
anything).and_return(true)
expect do
subject.workflow_complete_handler(nil, 'submission_id' => subject.id)
end.to change(Form526ConfirmationEmailJob.jobs, :size).by(0)
Expand Down

0 comments on commit 770e7d2

Please sign in to comment.