Top Level Namespace

Defined Under Namespace

Modules: Capybara, CucumberTree

Instance Method Summary collapse

Instance Method Details

#stub_cookies(page) ⇒ Object



29
30
31
32
33
# File 'lib/cucumber_tree/hooks.rb', line 29

def stub_cookies(page)
  request = ActionDispatch::Request.any_instance
  request.stub(:cookie_jar).and_return{ page.cookies }
  request.stub(:cookies).and_return{ page.cookies }
end