diff options
author | Grant Hutchins <nertzy@gmail.com> | 2012-03-27 21:05:42 -0400 |
---|---|---|
committer | Grant Hutchins <nertzy@gmail.com> | 2012-03-28 19:42:20 -0400 |
commit | a0e83d5af7385317fdcc91390e1b3a02b0cf56b8 (patch) | |
tree | 11f48fd4101effcfc744009b731a1bf9d821eeff | |
parent | bbd2caeaf916980b4c55ffce2b8fd9097082f27a (diff) | |
download | rails-a0e83d5af7385317fdcc91390e1b3a02b0cf56b8.tar.gz rails-a0e83d5af7385317fdcc91390e1b3a02b0cf56b8.tar.bz2 rails-a0e83d5af7385317fdcc91390e1b3a02b0cf56b8.zip |
Test that render gets correct exact template name
-rw-r--r-- | actionpack/test/activerecord/render_partial_with_record_identification_test.rb | 8 |
1 files 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 |