Methods
- S
- T
Instance Public methods
setup()
Link
teardown()
Link
test_format_with_inherited_layouts()
Link
# File actionpack/test/controller/mime_responds_test.rb, line 1143 def test_format_with_inherited_layouts @controller = SuperPostController.new get :index assert_equal '<html><div id="html">Super Firefox</div></html>', @response.body @request.accept = "text/iphone" get :index assert_equal '<html><div id="super_iphone">Super iPhone</div></html>', @response.body end
test_missing_layout_renders_properly()
Link
# File actionpack/test/controller/mime_responds_test.rb, line 1134 def test_missing_layout_renders_properly get :index assert_equal '<html><div id="html">Hello Firefox</div></html>', @response.body @request.accept = "text/iphone" get :index assert_equal 'Hello iPhone', @response.body end