What I ended up doing was overriding the default options in
RackRequest.
In test.rb, I added
class ActionController::RackRequest
DEFAULT_SESSION_OPTIONS = {
:database_manager => CGI::Session::MemoryStore, # store data in
memory
:prefix => "ruby_sess.", # prefix session file names
:session_path => "/", # available to all paths in
app
:session_key => "_session_id",
:cookie_only => false,
:session_http_only=> true
}
end
I get a warning about the constant already being defined, but it's
better than having the tests fail.
Also see <
http://rails.lighthouseapp.com/projects/8994/tickets/1453-
gets-in-integration-test-unless-you-are-using-cookie-sessions>.
Lee