Skip to content

Commit e26d11c

Browse files
committed
Change AC::TestResponse to AD::TestResponse
ActionController::TestResponse was removed in d9fe10c and caused a test failure on Action View as its test case still refers to it.
1 parent 368b993 commit e26d11c

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

actionpack/lib/action_controller/test_case.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def load!
230230
# request. You can modify this object before sending the HTTP request. For example,
231231
# you might want to set some session properties before sending a GET request.
232232
# <b>@response</b>::
233-
# An ActionController::TestResponse object, representing the response
233+
# An ActionDispatch::TestResponse object, representing the response
234234
# of the last HTTP response. In the above example, <tt>@response</tt> becomes valid
235235
# after calling +post+. If the various assert methods are not sufficient, then you
236236
# may use this object to inspect the HTTP response in detail.

actionpack/test/controller/helper_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def test_helper_for_acronym_controller
151151
assert_equal "test: baz", call_controller(Fun::PdfController, "test").last.body
152152
#
153153
# request = ActionController::TestRequest.new
154-
# response = ActionController::TestResponse.new
154+
# response = ActionDispatch::TestResponse.new
155155
# request.action = 'test'
156156
#
157157
# assert_equal 'test: baz', Fun::PdfController.process(request, response).body

actionview/lib/action_view/test_case.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def initialize
2525
super
2626
self.class.controller_path = ""
2727
@request = ActionController::TestRequest.create
28-
@response = ActionController::TestResponse.new
28+
@response = ActionDispatch::TestResponse.new
2929

3030
@request.env.delete('PATH_INFO')
3131
@params = {}

actionview/test/actionpack/controller/view_paths_test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def hello_world; render(:template => 'test/hello_world'); end
2424

2525
def setup
2626
@request = ActionController::TestRequest.create
27-
@response = ActionController::TestResponse.new
27+
@response = ActionDispatch::TestResponse.new
2828
@controller = TestController.new
2929
@paths = TestController.view_paths
3030
end

0 commit comments

Comments
 (0)