mirror of https://github.com/rails/rails
- Fix warning introduced in 77acc004ef
when fixing API responses.
- render :text is deprecated, so added an assertion for it.
This commit is contained in:
parent
9a99c7cef5
commit
9b3dc9d850
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue