mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
commit
edc0f27197
4 changed files with 5 additions and 5 deletions
|
@ -593,7 +593,6 @@ module ActionController
|
|||
|
||||
unless @controller.respond_to?(:recycle!)
|
||||
@controller.extend(Testing::Functional)
|
||||
@controller.class.class_eval { include Testing }
|
||||
end
|
||||
|
||||
@request.recycle!
|
||||
|
|
|
@ -2,6 +2,8 @@ require "abstract_unit"
|
|||
|
||||
module BareMetalTest
|
||||
class BareController < ActionController::Metal
|
||||
include ActionController::RackDelegation
|
||||
|
||||
def index
|
||||
self.response_body = "Hello world"
|
||||
end
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue