From d605bfcee1ced8969835bba8a63f20edbf65cf0b Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Wed, 21 Aug 2013 15:40:04 -0300 Subject: [PATCH] [postgres-tests] Avoiding order randomness on organization tests --- test/unit/organization_test.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/unit/organization_test.rb b/test/unit/organization_test.rb index 945cd1d..da51b74 100644 --- a/test/unit/organization_test.rb +++ b/test/unit/organization_test.rb @@ -408,8 +408,10 @@ class OrganizationTest < ActiveSupport::TestCase organization.affiliate(p1, role) organization.affiliate(p2, role) + json = organization.members_by_role_to_json(role) - assert_match [{:id => p1.id, :name => p1.name}, {:id => p2.id, :name => p2.name}].to_json, organization.members_by_role_to_json(role) + assert_match ({:id => p1.id, :name => p1.name}).to_json, json + assert_match ({:id => p2.id, :name => p2.name}).to_json, json end should 'disable organization' do -- libgit2 0.21.2