1
0
Fork 0
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:
Aaron Patterson 2015-07-13 17:52:02 -07:00
parent b37e29ec2d
commit d9fe10cb8a
2 changed files with 2 additions and 5 deletions

View file

@ -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

View file

@ -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