Skip to content

Remove ActionMailer call in casa_cases spec#6765

Open
jyeharry wants to merge 1 commit intorubyforgood:mainfrom
jyeharry:fix-race-condition-casa_cases
Open

Remove ActionMailer call in casa_cases spec#6765
jyeharry wants to merge 1 commit intorubyforgood:mainfrom
jyeharry:fix-race-condition-casa_cases

Conversation

@jyeharry
Copy link

@jyeharry jyeharry commented Mar 9, 2026

What github issue is this PR for, if any?

Resolves #6703

What changed, and why?

The only casa_case spec files which contained calls to ActionMailer was spec/system/casa_cases/show_more_spec.rb. The assertion that used ActionMailer was right after an assertion that checks the presence of the "Reminder sent to volunteer" notice, so the test is already asserting that mail was sent successfully. I added an assertion that the page is on the edit_volunteer_path page just for clarity of the expected behaviour in the test but this may be unnecessary.

How is this tested? (please write rspec and jest tests!) 💖💪

Updated spec/system/casa_cases/show_more_spec.rb.

@github-actions github-actions bot added ruby Pull requests that update Ruby code Tests! 🎉💖👏 labels Mar 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ruby Pull requests that update Ruby code Tests! 🎉💖👏

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Race Condition Check: spec/system/casa_cases/

1 participant