roidrage / redis-session-store

A simple session store for Rails based on Redis.
http://github.com/roidrage/redis-session-store
MIT License
366 stars 147 forks source link

Flash messages not working in test environment #150

Open Demoleas715 opened 1 month ago

Demoleas715 commented 1 month ago

Switching over from the default session store to redis-session-store seems to disable flash messages in only the test environment. When using the development environment, flash messages are displayed as expected, but all Capybara tests with expectations for flash messages fail. When using logging and enabling show_browser I can see that the flash message is properly set #<ActionDispatch::Flash::FlashHash:0x0000000118ce3c18 @discard=#<Set: {}>, @flashes={"success"=>"Some Flash Message"}, @now=nil>, but is not displayed. Switching back to the default session store, everything appears the same but the flash message displays in the test environment.