diff options
author | Vipul A M <vipulnsward@gmail.com> | 2016-01-22 00:38:12 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2016-01-22 00:38:12 +0530 |
commit | 9b3dc9d8506f152b9d759e46eee30643fda6c7ee (patch) | |
tree | bfbd498c99674053a3e01a5a6fdee129b19e76ac /actionpack | |
parent | 9a99c7cef533e985e67af5de0e65a39f452b7db9 (diff) | |
download | rails-9b3dc9d8506f152b9d759e46eee30643fda6c7ee.tar.gz rails-9b3dc9d8506f152b9d759e46eee30643fda6c7ee.tar.bz2 rails-9b3dc9d8506f152b9d759e46eee30643fda6c7ee.zip |
- 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.
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/controller/api/renderers_test.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/test/controller/api/renderers_test.rb b/actionpack/test/controller/api/renderers_test.rb index a1307d6f82..911a8144b2 100644 --- a/actionpack/test/controller/api/renderers_test.rb +++ b/actionpack/test/controller/api/renderers_test.rb @@ -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 |