diff options
Diffstat (limited to 'railties/test/application/middleware')
-rw-r--r-- | railties/test/application/middleware/session_test.rb | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/railties/test/application/middleware/session_test.rb b/railties/test/application/middleware/session_test.rb index aee2417abc..9f39e18a74 100644 --- a/railties/test/application/middleware/session_test.rb +++ b/railties/test/application/middleware/session_test.rb @@ -26,25 +26,5 @@ module ApplicationTests require "#{app_path}/config/environment" assert app.config.session_options[:secure], "Expected session to be marked as secure" end - - test "session is not loaded if it's not used" do - make_basic_app - - class ::OmgController < ActionController::Base - def index - if params[:flash] - flash[:notice] = "notice" - end - - render :nothing => true - end - end - - get "/?flash=true" - get "/" - - assert last_request.env["HTTP_COOKIE"] - assert !last_response.headers["Set-Cookie"] - end end end |