Sha256: fe613829598050589b61ef7a933ec634261a9d289301847efcee5af06396d666
Contents?: true
Size: 678 Bytes
Versions: 2
Compression:
Stored size: 678 Bytes
Contents
require "test_helper" require "browser/rails" require "sample_app" class MiddlewareTest < Test::Unit::TestCase include Rack::Test::Methods def app Rails.application end def test_redirect_ie6_to_upgrade_path get "/", {}, {"HTTP_USER_AGENT" => "MSIE 6"} follow_redirect! assert_equal "UPGRADE: ie6", last_response.body end def test_redirect_ie7_to_upgrade_path get "/", {}, {"HTTP_USER_AGENT" => "MSIE 7"} follow_redirect! assert_equal "UPGRADE: ie7", last_response.body end def test_redirect_ie8_and_404 get "/", {}, {"HTTP_USER_AGENT" => "MSIE 8"} follow_redirect! assert_equal 404, last_response.status end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
browser-0.2.1 | test/middleware_test.rb |
browser-0.2.0 | test/middleware_test.rb |