Sha256: 1dfcdb761f948f7c9790889f1102af2dfc22ee4b725855f3ad927a0cc67c06de

Contents?: true

Size: 242 Bytes

Versions: 19

Compression:

Stored size: 242 Bytes

Contents

module UserAgentHelper
  DEFAULT_USER_AGENT = 'Capybara Rack/Test'

  def reset_user_agent
    set_user_agent_to(DEFAULT_USER_AGENT)
  end

  def set_user_agent_to(user_agent)
    page.driver.browser.header('User-Agent', user_agent)
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
lockup-1.7.1 spec/support/features/user_agent_helper.rb
lockup-1.7 spec/support/features/user_agent_helper.rb
lockup-1.6.1 spec/support/features/user_agent_helper.rb
lockup-1.6 spec/support/features/user_agent_helper.rb
lockup-1.5.1 spec/support/features/user_agent_helper.rb
lockup-1.5 spec/support/features/user_agent_helper.rb
lockup-1.4.5.1 spec/support/features/user_agent_helper.rb
lockup-1.4.4 spec/support/features/user_agent_helper.rb
lockup-1.4.3 spec/support/features/user_agent_helper.rb
lockup-1.4.2 spec/support/features/user_agent_helper.rb
lockup-1.4.1 spec/support/features/user_agent_helper.rb
lockup-1.4 spec/support/features/user_agent_helper.rb
lockup-1.3.2.1 spec/support/features/user_agent_helper.rb
lockup-1.3.2 spec/support/features/user_agent_helper.rb
lockup-1.3.1 spec/support/features/user_agent_helper.rb
lockup-1.3.0 spec/support/features/user_agent_helper.rb
lockup-1.2.1 spec/support/features/user_agent_helper.rb
lockup-1.2.0 spec/support/features/user_agent_helper.rb
lockup-1.1.0 spec/support/features/user_agent_helper.rb