aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2013-01-28 12:14:28 -0500
committerGuillermo Iguaran <guilleiguaran@gmail.com>2013-01-29 14:20:58 -0500
commit3bccd12373567bf9369f44522599b7d61a006f60 (patch)
tree5b886e1b3e44f94ae1822d8b8eb466f47cf4615e /actionpack/test
parent88e4ec6e3231db8036e2d10093bb5fcce060ad73 (diff)
downloadrails-3bccd12373567bf9369f44522599b7d61a006f60.tar.gz
rails-3bccd12373567bf9369f44522599b7d61a006f60.tar.bz2
rails-3bccd12373567bf9369f44522599b7d61a006f60.zip
Remove BestStandardsSupport middleware
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/dispatch/best_standards_support_test.rb35
1 files changed, 0 insertions, 35 deletions
diff --git a/actionpack/test/dispatch/best_standards_support_test.rb b/actionpack/test/dispatch/best_standards_support_test.rb
deleted file mode 100644
index 551bb9621a..0000000000
--- a/actionpack/test/dispatch/best_standards_support_test.rb
+++ /dev/null
@@ -1,35 +0,0 @@
-require 'abstract_unit'
-
-class BestStandardsSupportTest < ActiveSupport::TestCase
- def test_with_best_standards_support
- _, headers, _ = app(true, {}).call({})
- assert_equal "IE=Edge,chrome=1", headers["X-UA-Compatible"]
- end
-
- def test_with_builtin_best_standards_support
- _, headers, _ = app(:builtin, {}).call({})
- assert_equal "IE=Edge", headers["X-UA-Compatible"]
- end
-
- def test_without_best_standards_support
- _, headers, _ = app(false, {}).call({})
- assert_equal nil, headers["X-UA-Compatible"]
- end
-
- def test_appends_to_app_headers_without_duplication_after_multiple_requests
- app_headers = { "X-UA-Compatible" => "requiresActiveX=true" }
- _, headers, _ = app(true, app_headers).call({})
- _, headers, _ = app(true, app_headers).call({})
-
- expects = "requiresActiveX=true,IE=Edge,chrome=1"
- assert_equal expects, headers["X-UA-Compatible"]
- end
-
- private
-
- def app(type, headers)
- app = proc { [200, headers, "response"] }
- ActionDispatch::BestStandardsSupport.new(app, type)
- end
-
-end