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

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -