Skip to content

Commit d9fe10c

Browse files
committed
only have one TestResponse class
1 parent b37e29e commit d9fe10c

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

actionpack/lib/action_controller/test_case.rb

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,6 @@ def content_type
132132
end.new
133133
end
134134

135-
class TestResponse < ActionDispatch::TestResponse
136-
end
137-
138135
class LiveTestResponse < Live::Response
139136
# Was the response successful?
140137
alias_method :success?, :successful?
@@ -535,7 +532,7 @@ def process(action, *args)
535532
def setup_controller_request_and_response
536533
@controller = nil unless defined? @controller
537534

538-
@response_klass = TestResponse
535+
@response_klass = ActionDispatch::TestResponse
539536

540537
if klass = self.class.controller_class
541538
if klass < ActionController::Live

actionpack/test/controller/action_pack_assertions_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ def test_successful_response_code
351351

352352
def test_response_object
353353
process :nothing
354-
assert_kind_of ActionController::TestResponse, @response
354+
assert_kind_of ActionDispatch::TestResponse, @response
355355
end
356356

357357
def test_render_based_on_parameters

0 commit comments

Comments
 (0)