blob: 2db3cff3959379df1993de81f99745809ea6738d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
|