Class: Capybara::Session

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber_tree/hooks.rb

Instance Method Summary collapse

Instance Method Details

#cookiesObject



5
6
7
8
9
10
11
12
# File 'lib/cucumber_tree/hooks.rb', line 5

def cookies
  @cookies ||= begin
    secret = Rails.application.config.secret_token
    cookies = ActionDispatch::Cookies::CookieJar.new(secret)
    cookies.stub(:close!)
    cookies
  end
end