1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

- Fix warning introduced in 77acc004ef when fixing API responses.

- render :text is deprecated, so added an assertion for it.
This commit is contained in:
Vipul A M 2016-01-22 00:38:12 +05:30
parent 9a99c7cef5
commit 9b3dc9d850

View file

@ -51,7 +51,9 @@ class RenderersApiTest < ActionController::TestCase
end end
def test_render_text def test_render_text
get :text assert_deprecated do
get :text
end
assert_response :internal_server_error assert_response :internal_server_error
assert_equal('Hi from text', @response.body) assert_equal('Hi from text', @response.body)
end end