Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

disable tests for MobileRedirect since it is now unused

  • Loading branch information...
commit 1b9d2c31adface9b45f4c254673d60ce3bee497a 1 parent 2a61ca1
@svenfuchs svenfuchs authored
Showing with 20 additions and 18 deletions.
  1. +20 −18 spec/mobile_redirect_spec.rb
View
38 spec/mobile_redirect_spec.rb
@@ -1,20 +1,22 @@
require 'spec_helper'
-describe Travis::Web::App::MobileRedirect do
-
- describe 'with mobile client' do
- let(:agent) { 'blah blah Mobile blablah' }
-
- it 'redirects to secure.travis-ci.org' do
- get('/foo/bar?baz', {}, 'HTTP_USER_AGENT' => agent).should be_redirect
- last_response.headers['Location'].should == 'https://secure.travis-ci.org/foo/bar?baz'
- end
- end
-
- describe 'with mobile param' do
- it 'redirects to secure.travis-ci.org' do
- get('/foo/bar?baz', mobile: true).should be_redirect
- last_response.headers['Location'].should == 'https://secure.travis-ci.org/foo/bar?mobile=true&baz'
- end
- end
-end
+# disabled, we now use Rack::MobileDetect
+#
+# describe Travis::Web::App::MobileRedirect do
+#
+# describe 'with mobile client' do
+# let(:agent) { 'blah blah Mobile blablah' }
+#
+# it 'redirects to secure.travis-ci.org' do
+# get('/foo/bar?baz', {}, 'HTTP_USER_AGENT' => agent).should be_redirect
+# last_response.headers['Location'].should == 'https://secure.travis-ci.org/foo/bar?baz'
+# end
+# end
+#
+# describe 'with mobile param' do
+# it 'redirects to secure.travis-ci.org' do
+# get('/foo/bar?baz', mobile: true).should be_redirect
+# last_response.headers['Location'].should == 'https://secure.travis-ci.org/foo/bar?mobile=true&baz'
+# end
+# end
+# end
Please sign in to comment.
Something went wrong with that request. Please try again.