class RenderPartialWithRecordIdentificationAndNestedControllersWithoutPrefixTest

Public Instance Methods

test_render_with_record_collection_in_nested_controller() click to toggle source
# File actionview/test/activerecord/render_partial_with_record_identification_test.rb, line 151
def test_render_with_record_collection_in_nested_controller
  old_config = ActionView::Base.prefix_partial_path_with_controller_namespace
  ActionView::Base.prefix_partial_path_with_controller_namespace = false

  get :render_with_record_collection_in_nested_controller
  assert_equal "Just Pong\nJust Tank\n", @response.body
ensure
  ActionView::Base.prefix_partial_path_with_controller_namespace = old_config
end
test_render_with_record_in_nested_controller() click to toggle source
# File actionview/test/activerecord/render_partial_with_record_identification_test.rb, line 141
def test_render_with_record_in_nested_controller
  old_config = ActionView::Base.prefix_partial_path_with_controller_namespace
  ActionView::Base.prefix_partial_path_with_controller_namespace = false

  get :render_with_record_in_nested_controller
  assert_equal "Just Pong\n", @response.body
ensure
  ActionView::Base.prefix_partial_path_with_controller_namespace = old_config
end