Commit 36c10bd22fc12c3c3fc8f95f409e90c34c04d10d
1 parent
393046d8
Exists in
master
and in
28 other branches
ActionItem93: adding assert_equivalent
git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1027 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
4 additions
and
0 deletions
Show diff stats
test/test_helper.rb
... | ... | @@ -76,6 +76,10 @@ class Test::Unit::TestCase |
76 | 76 | user |
77 | 77 | end |
78 | 78 | |
79 | + def assert_equivalent(enum1, enum2) | |
80 | + assert((enum1 - enum2) == [] && (enum2 - enum1) == []), "<#{enum1.inspect}> expected to be equivalent to <#{enum2.inspect}>" | |
81 | + end | |
82 | + | |
79 | 83 | private |
80 | 84 | |
81 | 85 | def uses_host(name) | ... | ... |