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