提交 9b3dc9d8 编写于 作者: V Vipul A M

- Fix warning introduced in...

- Fix warning introduced in https://github.com/vipulnsward/rails/commit/77acc004efad07dfd4d4f83be14ef897968a3fd9 when fixing API  responses.
- render :text is deprecated, so added an assertion for it.
上级 9a99c7ce
......@@ -51,7 +51,9 @@ def test_render_plain
end
def test_render_text
get :text
assert_deprecated do
get :text
end
assert_response :internal_server_error
assert_equal('Hi from text', @response.body)
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册