class RenderPartialWithRecordIdentificationAndNestedDeeperControllersWithoutPrefixTest
Public Instance Methods
test_render_with_record_collection_in_deeper_nested_controller()
click to toggle source
# File actionview/test/activerecord/render_partial_with_record_identification_test.rb, line 189 def test_render_with_record_collection_in_deeper_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_deeper_nested_controller assert_equal "Just Chess\nJust Sudoku\nJust Solitaire\n", @response.body ensure ActionView::Base.prefix_partial_path_with_controller_namespace = old_config end
test_render_with_record_in_deeper_nested_controller()
click to toggle source
# File actionview/test/activerecord/render_partial_with_record_identification_test.rb, line 179 def test_render_with_record_in_deeper_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_deeper_nested_controller assert_equal "Just Chess\n", @response.body ensure ActionView::Base.prefix_partial_path_with_controller_namespace = old_config end