Sha256: e475e6f6e0dc82eae77ab9873034e72a0051b2b9c4aad1f2011ff2ea1683d8b3
Contents?: true
Size: 755 Bytes
Versions: 44
Compression:
Stored size: 755 Bytes
Contents
# -*- coding: utf-8 -*- require File.expand_path(File.join(File.dirname(__FILE__), '/../spec_helper')) describe "Softbank Emulator からのアクセスのとき" do it "request.mobile は Softbank のインスタンスであること" do get "/mobile_spec/index", {}, {"HTTP_USER_AGENT" => "Semulator"} request.mobile.should be_an_instance_of(Jpmobile::Mobile::Softbank) request.mobile?.should be_true end end describe "Vodafone Emulator からのアクセスのとき" do it "request.mobile は Vodafone のインスタンスであること" do get "/mobile_spec/index", {}, {"HTTP_USER_AGENT" => "Vemulator"} request.mobile.should be_an_instance_of(Jpmobile::Mobile::Vodafone) request.mobile?.should be_true end end
Version data entries
44 entries across 44 versions & 1 rubygems