1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #15537 from tgxworld/fix_state_leak

Fix state leak.
This commit is contained in:
Matthew Draper 2014-06-20 14:53:20 +09:30
commit edc0f27197
4 changed files with 5 additions and 5 deletions

View file

@ -593,7 +593,6 @@ module ActionController
unless @controller.respond_to?(:recycle!)
@controller.extend(Testing::Functional)
@controller.class.class_eval { include Testing }
end
@request.recycle!

View file

@ -2,6 +2,8 @@ require "abstract_unit"
module BareMetalTest
class BareController < ActionController::Metal
include ActionController::RackDelegation
def index
self.response_body = "Hello world"
end

View file

@ -242,6 +242,8 @@ class MetalTestController < ActionController::Metal
include AbstractController::Rendering
include ActionView::Rendering
include ActionController::Rendering
include ActionController::RackDelegation
def accessing_logger_in_template
render :inline => "<%= logger.class %>"
@ -387,10 +389,6 @@ end
class EtagRenderTest < ActionController::TestCase
tests TestControllerWithExtraEtags
def setup
super
end
def test_multiple_etags
@request.if_none_match = etag(["123", 'ab', :cde, [:f]])
get :fresh

View file

@ -9,6 +9,7 @@ end
class SendFileController < ActionController::Base
include TestFileUtils
include ActionController::Testing
layout "layouts/standard" # to make sure layouts don't interfere
attr_writer :options