This blog is part of our Rails 5 series.
Before Rails 5,
there were errors in running integration tests
when a Rack framework like
were mounted within Rails with a motive of using
Problems were reported at many places including
regarding an error which was of the following form.
As we can see, the error occurs due to
absence of method
each on an
In Rails 5,
was introduced to ActionDispatch::Request::Session
class making it compatible with Rack frameworks mounted in Rails
and hence avoiding the above mentioned errors in integration testing.