From a0e83d5af7385317fdcc91390e1b3a02b0cf56b8 Mon Sep 17 00:00:00 2001 From: Grant Hutchins Date: Tue, 27 Mar 2012 21:05:42 -0400 Subject: [PATCH] Test that render gets correct exact template name --- .../render_partial_with_record_identification_test.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/actionpack/test/activerecord/render_partial_with_record_identification_test.rb b/actionpack/test/activerecord/render_partial_with_record_identification_test.rb index 97be5a5bb0..7857d7e4d5 100644 --- a/actionpack/test/activerecord/render_partial_with_record_identification_test.rb +++ b/actionpack/test/activerecord/render_partial_with_record_identification_test.rb @@ -130,13 +130,13 @@ class RenderPartialWithRecordIdentificationAndNestedControllersTest < ActiveReco def test_render_with_record_in_nested_controller get :render_with_record_in_nested_controller - assert_template 'fun/games/_game' + assert_template %r{\Afun/games/_game\Z} assert_equal 'Pong', @response.body end def test_render_with_record_collection_in_nested_controller get :render_with_record_collection_in_nested_controller - assert_template 'fun/games/_game' + assert_template %r{\Afun/games/_game\Z} assert_equal 'PongTank', @response.body end end @@ -146,13 +146,13 @@ class RenderPartialWithRecordIdentificationAndNestedDeeperControllersTest < Acti def test_render_with_record_in_deeper_nested_controller get :render_with_record_in_deeper_nested_controller - assert_template 'fun/serious/games/_game' + assert_template %r{\Afun/serious/games/_game\Z} assert_equal 'Chess', @response.body end def test_render_with_record_collection_in_deeper_nested_controller get :render_with_record_collection_in_deeper_nested_controller - assert_template 'fun/serious/games/_game' + assert_template %r{\Afun/serious/games/_game\Z} assert_equal 'ChessSudokuSolitaire', @response.body end end