noosfero | Ignore order when testing the members_by_role profile method
Victor Costa
gitlab at gitlab.com
Fri Feb 6 17:36:55 BRST 2015
Victor Costa pushed to refs/heads/master at <a href="https://gitlab.com/noosfero/noosfero">Noosfero / noosfero</a>
Commits:
<a href="https://gitlab.com/noosfero/noosfero/commit/6520954e266c2ef8ba30e7c23b7c757fa5c0fa62">6520954e</a> by Victor Costa
Ignore order when testing the members_by_role profile method
- - - - -
Changes:
=====================================
test/unit/organization_test.rb
=====================================
--- a/test/unit/organization_test.rb
+++ b/test/unit/organization_test.rb
@@ -407,7 +407,7 @@ class OrganizationTest < ActiveSupport::TestCase
person3 = fast_create(Person)
community.affiliate(person3, role3)
- assert_equal [person2, person3], community.members_by_role([role2, role3])
+ assert_equivalent [person2, person3], community.members_by_role([role2, role3])
end
should 'return members by role in a json format' do
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20150206/977b29c7/attachment.html>
More information about the Noosfero-dev
mailing list