提交 1bd8a50a 编写于 作者: J Joshua Peek

Deprecation notice for TestResponse#redirected_to

上级 c164ca1e
......@@ -36,6 +36,11 @@ def layout
@template.layout
end
def redirected_to
::ActiveSupport::Deprecation.warn("response.redirected_to is deprecated. Use response.redirect_url instead", caller)
redirect_url
end
def redirect_url_match?(pattern)
::ActiveSupport::Deprecation.warn("response.redirect_url_match? is deprecated. Use assert_match(/foo/, response.redirect_url) instead", caller)
return false if redirect_url.nil?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册