Skip to content

Commit

Permalink
Add test coverage for implicit render in empty actions
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbejar authored and spastorino committed Jun 11, 2015
1 parent afc78e7 commit 8d3e6e5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions actionpack/test/controller/render_test.rb
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 8d3e6e5

Please sign in to comment.