Sha256: 74db1924ce77508306cb93e309d84fd41006fce8b46cdfbd1974e9459cefc471
Contents?: true
Size: 615 Bytes
Versions: 5
Compression:
Stored size: 615 Bytes
Contents
require 'rails_helper' describe 'PCからのアクセスの場合', type: :request 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', params: {}, env: @headers expect(request.mobile).to be_nil end it 'request.mobile? は false であるべき' do get '/mobile_spec/index', params: {}, env: @headers expect(request.mobile?).to be_falsey end end
Version data entries
5 entries across 5 versions & 1 rubygems