diff --git a/actionpack/test/controller/basic_rendering_test.rb b/actionpack/test/controller/basic_rendering_test.rb new file mode 100644 index 0000000000..2db3cff395 --- /dev/null +++ b/actionpack/test/controller/basic_rendering_test.rb @@ -0,0 +1,19 @@ +require 'abstract_unit' + +class BasicRenderingController < ActionController::Base + def render_hello_world + render text: "Hello World!" + end +end + +class BasicRenderingTest < ActionController::TestCase + tests BasicRenderingController + + def test_render_hello_world + get :render_hello_world + + assert_equal "Hello World!", @response.body + assert_equal "text/plain", @response.content_type + end +end + \ No newline at end of file