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

Version Path
jpmobile-1.0.0.pre.4 test/rails/rails_root/spec/requests/pc_spec.rb
jpmobile-1.0.0.pre.4 test/rails/overrides/spec/requests/pc_spec.rb
jpmobile-1.0.0.pre.3 test/rails/rails_root/spec/requests/pc_spec.rb
jpmobile-1.0.0.pre.3 test/rails/overrides/spec/requests/pc_spec.rb
jpmobile-1.0.0.pre.2 test/rails/overrides/spec/requests/pc_spec.rb
jpmobile-1.0.0.pre.2 test/rails/rails_root/spec/requests/pc_spec.rb
jpmobile-1.0.0.pre.1 test/rails/overrides/spec/requests/pc_spec.rb
jpmobile-1.0.0.pre.1 test/rails/rails_root/spec/requests/pc_spec.rb
jpmobile-1.0.0.pre test/rails/rails_root/spec/requests/pc_spec.rb
jpmobile-1.0.0.pre test/rails/overrides/spec/requests/pc_spec.rb
jpmobile-0.1.6 test/rails/rails_root/spec/requests/pc_spec.rb
jpmobile-0.1.6 test/rails/overrides/spec/requests/pc_spec.rb
jpmobile-0.1.5 test/rails/overrides/spec/requests/pc_spec.rb
jpmobile-0.1.5 test/rails/rails_root/spec/requests/pc_spec.rb
jpmobile-0.1.4 test/rails/overrides/spec/requests/pc_spec.rb
jpmobile-0.1.4 test/rails/rails_root/spec/requests/pc_spec.rb
jpmobile-0.1.3 test/rails/overrides/spec/requests/pc_spec.rb
jpmobile-0.1.2 test/rails/overrides/spec/requests/pc_spec.rb
jpmobile-0.1.1 test/rails/overrides/spec/requests/pc_spec.rb
jpmobile-0.1.0 test/rails/overrides/spec/requests/pc_spec.rb