Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand Flash Message Tests, Resolve Additional Issues, and simplify otp_set_flash_message #96

Merged
merged 4 commits into from
Sep 21, 2024

Conversation

strouptl
Copy link
Collaborator

As a follow up to #95, I decided to work on adding flash tests inline with the existing controller tests. In doing so, I found two additional cases like issue #94, where the flash message was persisting incorrectly to the next view.

In addition, I realized that we can greatly simplify the otp_set_flash_message method via the existing Devise set_flash_message functionaliy. And with the flash test coverage in place, I think we can safely make this change.

This PR accomplishes the following:

  • Expand test coverage for flash messages to all existing controller tests
  • Resolve issue with "invalid_refresh" and "could_not_confirm" messages
  • Simplify the "otp_set_flash_message" method

NOTE: This PR assumes PR #95, so please merge that PR first.

@strzibny
Copy link
Collaborator

Merged, please rebase

@strouptl
Copy link
Collaborator Author

Done.

@strzibny strzibny merged commit 180b190 into wmlele:master Sep 21, 2024
4 checks passed
@strzibny
Copy link
Collaborator

Thanks!

@strouptl strouptl deleted the expand_flash_tests branch November 19, 2024 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants