ruby on rails - Rspec + Capybara + Rack::Test — disable cookies -


how turn off cookies in feature test rack::test?

there no built-in way disable cookies when using rack::test. can clear them during test with

page.driver.browser.clear_cookies 

which may provide functionality need. if not, can install middleware during test runs , enable/disable stripping of cookies on every request. can see example of @ https://makandracards.com/makandra/15187-how-to-disable-cookies-in-cucumber-tests. example cucumber should easy enough convert plain rspec.


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -