disable tests for MobileRedirect since it is now unused

This commit is contained in:
Sven Fuchs 2012-12-14 16:16:24 +01:00
parent 2a61ca1b19
commit 1b9d2c31ad

View File

@ -1,20 +1,22 @@
require 'spec_helper' require 'spec_helper'
describe Travis::Web::App::MobileRedirect do # disabled, we now use Rack::MobileDetect
#
describe 'with mobile client' do # describe Travis::Web::App::MobileRedirect do
let(:agent) { 'blah blah Mobile blablah' } #
# describe 'with mobile client' do
it 'redirects to secure.travis-ci.org' do # let(:agent) { 'blah blah Mobile blablah' }
get('/foo/bar?baz', {}, 'HTTP_USER_AGENT' => agent).should be_redirect #
last_response.headers['Location'].should == 'https://secure.travis-ci.org/foo/bar?baz' # it 'redirects to secure.travis-ci.org' do
end # get('/foo/bar?baz', {}, 'HTTP_USER_AGENT' => agent).should be_redirect
end # last_response.headers['Location'].should == 'https://secure.travis-ci.org/foo/bar?baz'
# end
describe 'with mobile param' do # end
it 'redirects to secure.travis-ci.org' do #
get('/foo/bar?baz', mobile: true).should be_redirect # describe 'with mobile param' do
last_response.headers['Location'].should == 'https://secure.travis-ci.org/foo/bar?mobile=true&baz' # it 'redirects to secure.travis-ci.org' do
end # get('/foo/bar?baz', mobile: true).should be_redirect
end # last_response.headers['Location'].should == 'https://secure.travis-ci.org/foo/bar?mobile=true&baz'
end # end
# end
# end