mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
only have one TestResponse class
This commit is contained in:
parent
b37e29ec2d
commit
d9fe10cb8a
2 changed files with 2 additions and 5 deletions
|
@ -132,9 +132,6 @@ module ActionController
|
|||
end.new
|
||||
end
|
||||
|
||||
class TestResponse < ActionDispatch::TestResponse
|
||||
end
|
||||
|
||||
class LiveTestResponse < Live::Response
|
||||
# Was the response successful?
|
||||
alias_method :success?, :successful?
|
||||
|
@ -535,7 +532,7 @@ module ActionController
|
|||
def setup_controller_request_and_response
|
||||
@controller = nil unless defined? @controller
|
||||
|
||||
@response_klass = TestResponse
|
||||
@response_klass = ActionDispatch::TestResponse
|
||||
|
||||
if klass = self.class.controller_class
|
||||
if klass < ActionController::Live
|
||||
|
|
|
@ -351,7 +351,7 @@ class ActionPackAssertionsControllerTest < ActionController::TestCase
|
|||
|
||||
def test_response_object
|
||||
process :nothing
|
||||
assert_kind_of ActionController::TestResponse, @response
|
||||
assert_kind_of ActionDispatch::TestResponse, @response
|
||||
end
|
||||
|
||||
def test_render_based_on_parameters
|
||||
|
|
Loading…
Reference in a new issue