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:
parent
9a99c7cef5
commit
9b3dc9d850
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue