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 -

python - ValueError: No axis named 1 for object type <class 'pandas.core.series.Series'> -

java - How to provide dependency injections in Eclipse RCP 3.x? -