diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2012-03-10 06:42:58 -0800 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2012-03-10 06:42:58 -0800 |
commit | b0a93d650fd6299c3e83e2c7f9531923b88028da (patch) | |
tree | bd7ad3e5beaf5eaba87451d8ae71b4e3b51573fc /railties/test/application/middleware_test.rb | |
parent | 3e776496d0a85942b65935e69ba63f1d1b5f18fc (diff) | |
parent | ec40f6cec082cfe76f24b27c19d15314f55be8af (diff) | |
download | rails-b0a93d650fd6299c3e83e2c7f9531923b88028da.tar.gz rails-b0a93d650fd6299c3e83e2c7f9531923b88028da.tar.bz2 rails-b0a93d650fd6299c3e83e2c7f9531923b88028da.zip |
Merge pull request #5367 from carlosantoniodasilva/middleware-api
Change api_only to http_only and add MiddlewareStackProxy docs
Diffstat (limited to 'railties/test/application/middleware_test.rb')
-rw-r--r-- | railties/test/application/middleware_test.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/railties/test/application/middleware_test.rb b/railties/test/application/middleware_test.rb index a190a31fc7..712a555c4a 100644 --- a/railties/test/application/middleware_test.rb +++ b/railties/test/application/middleware_test.rb @@ -53,7 +53,7 @@ module ApplicationTests end test "api middleware stack" do - add_to_config "config.middleware.api_only!" + add_to_config "config.middleware.http_only!" add_to_config "config.force_ssl = true" add_to_config "config.action_dispatch.x_sendfile_header = 'X-Sendfile'" @@ -216,7 +216,6 @@ module ApplicationTests assert_equal etag, last_response.headers["Etag"] get "/?nothing=true" - puts last_response.body assert_equal 200, last_response.status assert_equal "", last_response.body assert_equal "text/html; charset=utf-8", last_response.headers["Content-Type"] |