Skip to content

Instantly share code, notes, and snippets.

@evizitei
Created July 13, 2010 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evizitei/473970 to your computer and use it in GitHub Desktop.
Save evizitei/473970 to your computer and use it in GitHub Desktop.
class ActiveSupport::TestCase
#...
def assert_contains(collection,item)
assert_not_nil collection.index(item)
end
def assert_does_not_contain(collection,item)
assert_nil collection.index(item)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment