Sha256: 21e2a97f7d09424339f082ad41b22ef54582223c264ac5d8635eafecf2bb71d4

Contents?: true

Size: 906 Bytes

Versions: 8

Compression:

Stored size: 906 Bytes

Contents

$:.unshift File.expand_path('../../lib', __FILE__)

require 'galakei'
require File.expand_path(File.dirname(__FILE__) + "/app/fake")
require 'rspec/rails'

def env_for(device_name)
  user_agent = { 
    "Firefox" => "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.16) Gecko/20101130 Firefox/3.5.16",
    "Docomo SH-06A" => "DoCoMo/2.0 SH06A3(c500;TB;W24H14)" ,
    "AU W51SH" => "KDDI-SH32 UP.Browser/6.2.0.11.2.1 (GUI) MMP/2.0",
    "AU W54SA" => "KDDI-SA3B UP.Browser/6.2_7.2.7.1.K.1.3.101 (GUI) MMP/2.0",
    "Vodafone 802N" => "Vodafone/1.0/V802N/NJ001/SN*************** Browser/UP.Browser/7.0.2.1.307 Profile/MIDP-2.0 Configuration/CLDC-1.1 Ext-J-Profile/JSCL-1.2.2 Ext-V-Profile/VSCL-2.0.0",
    "Softbank 709SC" => "SoftBank/1.0/709SC/SCJ001/SN*************** Browser/NetFront/3.3 Profile/MIDP-2.0 Configuration/CLDC-1.1"
  }[device_name]
  { "HTTP_USER_AGENT" => user_agent }
end 

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
galakei-0.7.3 spec/spec_helper.rb
galakei-0.7.2 spec/spec_helper.rb
galakei-0.7.1 spec/spec_helper.rb
galakei-0.7.0 spec/spec_helper.rb
galakei-0.6.6 spec/spec_helper.rb
galakei-0.6.5 spec/spec_helper.rb
galakei-0.6.4 spec/spec_helper.rb
galakei-0.6.3 spec/spec_helper.rb