Skip to content

Instantly share code, notes, and snippets.

@gamov
Created November 9, 2011 07:23
Show Gist options
  • Save gamov/1350701 to your computer and use it in GitHub Desktop.
Save gamov/1350701 to your computer and use it in GitHub Desktop.
Trouble with assert_template with Partial
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