Sha256: b3426b33822694954493d2633ce1e34735aefdb43fa7b07a6b6da256404b1976

Contents?: true

Size: 964 Bytes

Versions: 18

Compression:

Stored size: 964 Bytes

Contents

class Capybara::RackTest::DriverWithUserAgent < Capybara::RackTest::Driver
  def initialize(app, user_agent)
    super(app, :headers => {'HTTP_USER_AGENT' => user_agent})
  end
end

Capybara.register_driver :docomo do |app|
  Capybara::RackTest::DriverWithUserAgent.new(app, "DoCoMo/2.0 P903i(c100;TB;W24H12)")
end

Capybara.register_driver :docomo_2_0 do |app|
  Capybara::RackTest::DriverWithUserAgent.new(app, "DoCoMo/2.0 SH06A3(c500;TB;W24H14)")
end

Capybara.register_driver :au do |app|
  Capybara::RackTest::DriverWithUserAgent.new(app, "KDDI-CA32 UP.Browser/6.2.0.7.3.129 (GUI) MMP/2.0")
end

Capybara.register_driver :au_7 do |app|
  Capybara::RackTest::DriverWithUserAgent.new(app, "KDDI-SA3B UP.Browser/6.2_7.2.7.1.K.1.3.101 (GUI) MMP/2.0")
end

Capybara.register_driver :softbank do |app|
  Capybara::RackTest::DriverWithUserAgent.new(app, "SoftBank/1.0/943SH/SHJ001/SN*************** Browser/NetFront/3.5 Profile/MIDP-2.0 Configuration/CLDC-1.1")
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
galakei-0.15.2 spec/acceptance/support/handsets.rb
galakei-0.15.1 spec/acceptance/support/handsets.rb
galakei-0.15.0 spec/acceptance/support/handsets.rb
galakei-0.14.4 spec/acceptance/support/handsets.rb
galakei-0.14.3 spec/acceptance/support/handsets.rb
galakei-0.14.2 spec/acceptance/support/handsets.rb
galakei-0.14.1 spec/acceptance/support/handsets.rb
galakei-0.14.0 spec/acceptance/support/handsets.rb
galakei-0.13.7 spec/acceptance/support/handsets.rb
galakei-0.13.6 spec/acceptance/support/handsets.rb
galakei-0.13.5 spec/acceptance/support/handsets.rb
galakei-0.13.4 spec/acceptance/support/handsets.rb
galakei-0.13.3 spec/acceptance/support/handsets.rb
galakei-0.13.2 spec/acceptance/support/handsets.rb
galakei-0.13.1 spec/acceptance/support/handsets.rb
galakei-0.13.0 spec/acceptance/support/handsets.rb
galakei-0.12.1 spec/acceptance/support/handsets.rb
galakei-0.12.0 spec/acceptance/support/handsets.rb