Sha256: 9a74441ffceb0bb4131facf605d3bf74a6e237c58d5cc2df255f8746ea831ad3
Contents?: true
Size: 617 Bytes
Versions: 25
Compression:
Stored size: 617 Bytes
Contents
# -*- coding: utf-8 -*- require File.dirname(__FILE__) + '/../spec_helper' describe "PCからのアクセスの場合" do before do @headers = { "HTTP_USER_AGENT" => "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322)", } end it "request.mobile は nil であるべき" do get "/mobile_spec/index", {}, @headers request.mobile.should be_nil end it "request.mobile? は false であるべき" do get "/mobile_spec/index", {}, @headers request.mobile?.should be_false end end
Version data entries
25 entries across 17 versions & 1 rubygems