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.
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 enablingshow_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.