Skip to content

Add support rails 7.1 test#2

Draft
hatsu38 wants to merge 5 commits into
masterfrom
add-rails-7.1
Draft

Add support rails 7.1 test#2
hatsu38 wants to merge 5 commits into
masterfrom
add-rails-7.1

Conversation

@hatsu38

@hatsu38 hatsu38 commented Nov 22, 2025

Copy link
Copy Markdown
Owner

No description provided.

1. Add cache_store configuration for test environment
   - Set config.cache_store = :memory_store
   - Fixes session loss after redirects in Rails 7.1
   - See: https://stackoverflow.com/questions/77434152

2. Fix confirmations controller tests
   - Check response.location instead of response.body for 302 redirects
   - response.body is empty for redirect responses

These changes fix test failures in Rails 7.0/7.1 environments where:
- Omniauth params were lost after redirect due to session not persisting
- Confirmation tests failed because they checked empty response.body
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.

1 participant