aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
diff options
context:
space:
mode:
authorJorge Bejar <jorge@wyeworks.com>2015-06-02 17:08:53 -0300
committerSantiago Pastorino <santiago@wyeworks.com>2015-06-11 16:54:16 -0300
commit8d3e6e5f4d97aa8f2b8b8dde949a1b79b50276d1 (patch)
treec14ed0abaa934605b9d1ae3d195d1af1583f0e8e /actionpack/test/controller
parentafc78e72b4fdf940bdd747c7f8461d562ab6bb73 (diff)
downloadrails-8d3e6e5f4d97aa8f2b8b8dde949a1b79b50276d1.tar.gz
rails-8d3e6e5f4d97aa8f2b8b8dde949a1b79b50276d1.tar.bz2
rails-8d3e6e5f4d97aa8f2b8b8dde949a1b79b50276d1.zip
Add test coverage for implicit render in empty actions
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r--actionpack/test/controller/render_test.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb
index cabacad940..c9c43de37d 100644
--- a/actionpack/test/controller/render_test.rb
+++ b/actionpack/test/controller/render_test.rb
@@ -24,6 +24,11 @@ class TestControllerWithExtraEtags < ActionController::Base
end
end
+class ImplicitRenderTestController < ActionController::Base
+ def empty_action
+ end
+end
+
class TestController < ActionController::Base
protect_from_forgery
@@ -463,6 +468,15 @@ class MetalRenderTest < ActionController::TestCase
end
end
+class ImplicitRenderTest < ActionController::TestCase
+ tests ImplicitRenderTestController
+
+ def test_implicit_no_content_response
+ get :empty_action
+ assert_response :no_content
+ end
+end
+
class HeadRenderTest < ActionController::TestCase
tests TestController