提交 8d3e6e5f 编写于 作者: J Jorge Bejar 提交者: Santiago Pastorino

Add test coverage for implicit render in empty actions

上级 afc78e72
......@@ -24,6 +24,11 @@ def with_template
end
end
class ImplicitRenderTestController < ActionController::Base
def empty_action
end
end
class TestController < ActionController::Base
protect_from_forgery
......@@ -463,6 +468,15 @@ def test_access_to_logger_in_view
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册