test/test_helper.rb in quo_vadis-1.1.1 vs test/test_helper.rb in quo_vadis-1.1.2
- old
+ new
@@ -77,10 +77,10 @@
existing_cookie.name.downcase == cookie_name
end.first
end
def cookie_jar
- Capybara.current_session.driver.current_session.instance_variable_get(:@rack_mock_session).cookie_jar
+ Capybara.current_session.driver.browser.current_session.instance_variable_get(:@rack_mock_session).cookie_jar
end
def close_browser
delete_cookie Rails.application.config.session_options[:key]
end