From 6520954e266c2ef8ba30e7c23b7c757fa5c0fa62 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Fri, 6 Feb 2015 16:34:12 -0300 Subject: [PATCH] Ignore order when testing the members_by_role profile method --- test/unit/organization_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/organization_test.rb b/test/unit/organization_test.rb index a63aa62..0ce13ca 100644 --- 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 -- libgit2 0.21.2