Methods
A
S
T
Instance Public methods
setup()
# File rails/actionpack/test/controller/render_test.rb, line 141
def setup
  @request    = ActionController::TestRequest.new
  @response   = ActionController::TestResponse.new
  @controller = TestController.new

  @request.host = "www.nextangle.com"
end
test_accessing_local_assigns_in_inline_template()
# File rails/actionpack/test/controller/render_test.rb, line 279
def test_accessing_local_assigns_in_inline_template
  get :accessing_local_assigns_in_inline_template, :local_name => "Local David"
  assert_equal "Goodbye, Local David", @response.body
end
test_accessing_local_assigns_in_inline_template_with_string_keys()
# File rails/actionpack/test/controller/render_test.rb, line 284
def test_accessing_local_assigns_in_inline_template_with_string_keys
  get :accessing_local_assigns_in_inline_template_with_string_keys, :local_name => "Local David"
  assert_equal "Goodbye, Local David", @response.body
end
test_accessing_params_in_template()
# File rails/actionpack/test/controller/render_test.rb, line 274
def test_accessing_params_in_template
  get :accessing_params_in_template, :name => "David"
  assert_equal "Hello: David", @response.body
end
test_attempt_to_access_object_method()
# File rails/actionpack/test/controller/render_test.rb, line 215
def test_attempt_to_access_object_method
  assert_raises(ActionController::UnknownAction, "No action responded to [clone]") { get :clone }
end
test_do_with_render()
# File rails/actionpack/test/controller/render_test.rb, line 155
def test_do_with_render
  assert_deprecated_render { get :render_hello_world }
  assert_template "test/hello_world"
end
test_do_with_render_action()
# File rails/actionpack/test/controller/render_test.rb, line 165
def test_do_with_render_action
  get :render_action_hello_world
  assert_template "test/hello_world"
end
test_do_with_render_action_with_symbol()
# File rails/actionpack/test/controller/render_test.rb, line 170
def test_do_with_render_action_with_symbol
  get :render_action_hello_world_with_symbol
  assert_template "test/hello_world"
end
test_do_with_render_custom_code()
# File rails/actionpack/test/controller/render_test.rb, line 198
def test_do_with_render_custom_code
  get :render_custom_code
  assert_response 404
end
test_do_with_render_from_variable()
# File rails/actionpack/test/controller/render_test.rb, line 160
def test_do_with_render_from_variable
  get :render_hello_world_from_variable
  assert_equal "hello david", @response.body
end
test_do_with_render_json()
# File rails/actionpack/test/controller/render_test.rb, line 180
def test_do_with_render_json
  get :render_json_hello_world
  assert_equal '{hello: "world"}', @response.body
  assert_equal 'application/json', @response.content_type
end
test_do_with_render_json_with_callback()
# File rails/actionpack/test/controller/render_test.rb, line 186
def test_do_with_render_json_with_callback
  get :render_json_hello_world_with_callback
  assert_equal 'alert({hello: "world"})', @response.body
  assert_equal 'application/json', @response.content_type
end
test_do_with_render_nothing_with_appendix()
# File rails/actionpack/test/controller/render_test.rb, line 209
def test_do_with_render_nothing_with_appendix
  get :render_nothing_with_appendix
  assert_response 200
  assert_equal 'appended', @response.body
end
test_do_with_render_symbol_json()
# File rails/actionpack/test/controller/render_test.rb, line 192
def test_do_with_render_symbol_json
  get :render_symbol_json
  assert_equal '{hello: "world"}', @response.body
  assert_equal 'application/json', @response.content_type
end
test_do_with_render_text()
# File rails/actionpack/test/controller/render_test.rb, line 175
def test_do_with_render_text
  get :render_text_hello_world
  assert_equal "hello world", @response.body
end
test_do_with_render_text_appendix()
# File rails/actionpack/test/controller/render_test.rb, line 203
def test_do_with_render_text_appendix
  get :render_text_appendix
  assert_response 404
  assert_equal 'hello world, goodbye!', @response.body
end
test_layout_rendering()
# File rails/actionpack/test/controller/render_test.rb, line 238
def test_layout_rendering
  get :layout_test
  assert_equal "<html>Hello world!</html>", @response.body
end
test_nested_rendering()
# File rails/actionpack/test/controller/render_test.rb, line 268
def test_nested_rendering
  @controller = Fun::GamesController.new
  get :hello_world
  assert_equal "Living in a nested world", @response.body
end
test_partial_only()

def test_partials_list

get :partials_list
assert_equal "goodbyeHello: davidHello: marygoodbye\n", process_request.body

end

# File rails/actionpack/test/controller/render_test.rb, line 253
def test_partial_only
  get :partial_only
  assert_equal "only partial", @response.body
end
test_private_methods()
# File rails/actionpack/test/controller/render_test.rb, line 219
def test_private_methods
  assert_raises(ActionController::UnknownAction, "No action responded to [determine_layout]") { get :determine_layout }
end
test_render_to_string()
# File rails/actionpack/test/controller/render_test.rb, line 258
def test_render_to_string
  get :hello_in_a_string
  assert_equal "How's there? goodbyeHello: davidHello: marygoodbye\n", @response.body
end
test_render_to_string_resets_assigns()
# File rails/actionpack/test/controller/render_test.rb, line 263
def test_render_to_string_resets_assigns
  get :render_to_string_test
  assert_equal "The value of foo is: ::this is a test::\n", @response.body
end
test_render_xml()
# File rails/actionpack/test/controller/render_test.rb, line 223
def test_render_xml
  assert_deprecated_render { get :render_xml_hello }
  assert_equal "<html>\n  <p>Hello David</p>\n<p>This is grand!</p>\n</html>\n", @response.body
end
test_render_xml_with_default()
# File rails/actionpack/test/controller/render_test.rb, line 228
def test_render_xml_with_default
  get :greeting
  assert_equal "<p>This is grand!</p>\n", @response.body
end
test_render_xml_with_layouts()
# File rails/actionpack/test/controller/render_test.rb, line 243
def test_render_xml_with_layouts
  get :builder_layout_test
  assert_equal "<wrapper>\n<html>\n  <p>Hello </p>\n<p>This is grand!</p>\n</html>\n</wrapper>\n", @response.body
end
test_render_xml_with_partial()
# File rails/actionpack/test/controller/render_test.rb, line 233
def test_render_xml_with_partial
  get :builder_partial_test
  assert_equal "<test>\n  <hello/>\n</test>\n", @response.body
end
test_simple_show()
# File rails/actionpack/test/controller/render_test.rb, line 149
def test_simple_show
  get :hello_world
  assert_response 200
  assert_template "test/hello_world"
end
Instance Protected methods
assert_deprecated_render(&block)
# File rails/actionpack/test/controller/render_test.rb, line 290
def assert_deprecated_render(&block)
  assert_deprecated(%rrender/, &block)
end