Created
November 9, 2011 07:23
-
-
Save gamov/1350701 to your computer and use it in GitHub Desktop.
Trouble with assert_template with Partial
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
assert_template(:partial => 'shared/_item_variant_table_title') | |
#ArgumentError: assertion message must be String or Proc: | |
#<expecting partial <"shared/_item_variant_table_title"> but action rendered | |
# <["shared/_item_variant_table_title", | |
# "_item_variant_table_title", | |
# "shared/_flash_div", | |
# "_flash_div"]>>(<Test::Unit::Assertions::AssertionMessage>) | |
assert_template(:partial => 'shared/_item_variant_table_title', :count => 1) | |
#ArgumentError: assertion message must be String or Proc: | |
#<expecting "shared/_item_variant_table_title" to be rendered 1 time(s) but rendered 1 time(s)>(<Test::Unit::Assertions::AssertionMessage>) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment