aboutsummaryrefslogtreecommitdiffstats
path: root/railties/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 /railties/test
parent88e4ec6e3231db8036e2d10093bb5fcce060ad73 (diff)
downloadrails-3bccd12373567bf9369f44522599b7d61a006f60.tar.gz
rails-3bccd12373567bf9369f44522599b7d61a006f60.tar.bz2
rails-3bccd12373567bf9369f44522599b7d61a006f60.zip
Remove BestStandardsSupport middleware
Diffstat (limited to 'railties/test')
-rw-r--r--railties/test/application/middleware/best_practices_test.rb30
-rw-r--r--railties/test/application/middleware_test.rb3
2 files changed, 1 insertions, 32 deletions
diff --git a/railties/test/application/middleware/best_practices_test.rb b/railties/test/application/middleware/best_practices_test.rb
deleted file mode 100644
index f6783c6ca2..0000000000
--- a/railties/test/application/middleware/best_practices_test.rb
+++ /dev/null
@@ -1,30 +0,0 @@
-require 'isolation/abstract_unit'
-
-module ApplicationTests
- class BestPracticesTest < ActiveSupport::TestCase
- include ActiveSupport::Testing::Isolation
-
- def setup
- build_app
- boot_rails
- require 'rack/test'
- extend Rack::Test::Methods
- simple_controller
- end
-
- def teardown
- teardown_app
- end
-
- test "simple controller in production mode returns best standards" do
- get '/foo'
- assert_equal "IE=Edge,chrome=1", last_response.headers["X-UA-Compatible"]
- end
-
- test "simple controller in development mode leaves out Chrome" do
- app("development")
- get "/foo"
- assert_equal "IE=Edge", last_response.headers["X-UA-Compatible"]
- end
- end
-end
diff --git a/railties/test/application/middleware_test.rb b/railties/test/application/middleware_test.rb
index c5a0d02fe1..73ef2046c0 100644
--- a/railties/test/application/middleware_test.rb
+++ b/railties/test/application/middleware_test.rb
@@ -45,8 +45,7 @@ module ApplicationTests
"ActionDispatch::ParamsParser",
"Rack::Head",
"Rack::ConditionalGet",
- "Rack::ETag",
- "ActionDispatch::BestStandardsSupport"
+ "Rack::ETag"
], middleware
end