How do I set up a session value in Capybara?
The accepted answer suggests rack_session_access. It works by inserting middleware controllers to edit and update the session state, then has capybara visit that page and submit a form with the session data. Very ingenious! But unnecessary if you are using Warden (directly or through Devise). Warden has a hook on_next_request that gives access to the … Read more