class ImplicitRenderTest
Public Instance Methods
test_implicit_no_content_response_as_browser()
click to toggle source
# File actionpack/test/controller/render_test.rb, line 619 def test_implicit_no_content_response_as_browser assert_raises(ActionController::UnknownFormat) do get :empty_action end end
test_implicit_no_content_response_as_xhr()
click to toggle source
# File actionpack/test/controller/render_test.rb, line 625 def test_implicit_no_content_response_as_xhr get :empty_action, xhr: true assert_response :no_content end
test_implicit_success_response_with_right_format()
click to toggle source
# File actionpack/test/controller/render_test.rb, line 630 def test_implicit_success_response_with_right_format get :empty_action_with_template assert_equal "<h1>Empty action rendered this implicitly.</h1>\n", @response.body assert_response :success end
test_implicit_unknown_format_response()
click to toggle source
# File actionpack/test/controller/render_test.rb, line 636 def test_implicit_unknown_format_response assert_raises(ActionController::UnknownFormat) do get :empty_action_with_template, format: "json" end end