Commit d605bfcee1ced8969835bba8a63f20edbf65cf0b
1 parent
72188e4a
Exists in
master
and in
22 other branches
[postgres-tests] Avoiding order randomness on organization tests
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
test/unit/organization_test.rb
@@ -408,8 +408,10 @@ class OrganizationTest < ActiveSupport::TestCase | @@ -408,8 +408,10 @@ class OrganizationTest < ActiveSupport::TestCase | ||
408 | 408 | ||
409 | organization.affiliate(p1, role) | 409 | organization.affiliate(p1, role) |
410 | organization.affiliate(p2, role) | 410 | organization.affiliate(p2, role) |
411 | + json = organization.members_by_role_to_json(role) | ||
411 | 412 | ||
412 | - assert_match [{:id => p1.id, :name => p1.name}, {:id => p2.id, :name => p2.name}].to_json, organization.members_by_role_to_json(role) | 413 | + assert_match ({:id => p1.id, :name => p1.name}).to_json, json |
414 | + assert_match ({:id => p2.id, :name => p2.name}).to_json, json | ||
413 | end | 415 | end |
414 | 416 | ||
415 | should 'disable organization' do | 417 | should 'disable organization' do |