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

javascript - Knockout pushing observable and computed data to an observable array -

'hasOwnProperty' in javascript -

Trouble making a JSON string -