- 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
1 changed files with 3 additions and 1 deletions

View File

@ -51,7 +51,9 @@ class RenderersApiTest < ActionController::TestCase
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