提交 7645a5f8 编写于 作者: R Rafael Mendonça França

Merge pull request #20877 from sikachu/rename-ac-test_response

Change AC::TestResponse to AD::TestResponse
......@@ -230,7 +230,7 @@ def load!
# request. You can modify this object before sending the HTTP request. For example,
# you might want to set some session properties before sending a GET request.
# <b>@response</b>::
# An ActionController::TestResponse object, representing the response
# An ActionDispatch::TestResponse object, representing the response
# of the last HTTP response. In the above example, <tt>@response</tt> becomes valid
# after calling +post+. If the various assert methods are not sufficient, then you
# may use this object to inspect the HTTP response in detail.
......
......@@ -151,7 +151,7 @@ def test_helper_for_acronym_controller
assert_equal "test: baz", call_controller(Fun::PdfController, "test").last.body
#
# request = ActionController::TestRequest.new
# response = ActionController::TestResponse.new
# response = ActionDispatch::TestResponse.new
# request.action = 'test'
#
# assert_equal 'test: baz', Fun::PdfController.process(request, response).body
......
......@@ -25,7 +25,7 @@ def initialize
super
self.class.controller_path = ""
@request = ActionController::TestRequest.create
@response = ActionController::TestResponse.new
@response = ActionDispatch::TestResponse.new
@request.env.delete('PATH_INFO')
@params = {}
......
......@@ -24,7 +24,7 @@ def hello_world; render(:template => 'test/hello_world'); end
def setup
@request = ActionController::TestRequest.create
@response = ActionController::TestResponse.new
@response = ActionDispatch::TestResponse.new
@controller = TestController.new
@paths = TestController.view_paths
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册