Commit c6e0ab476dc9cff36529995974b44c2b3158218a
1 parent
8cd81d05
Exists in
master
and in
29 other branches
[postgres-tests] Avoiding randomness on cateogory test
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
test/unit/category_test.rb
@@ -350,7 +350,7 @@ class CategoryTest < ActiveSupport::TestCase | @@ -350,7 +350,7 @@ class CategoryTest < ActiveSupport::TestCase | ||
350 | p1.add_category c | 350 | p1.add_category c |
351 | p2 = create_user('testuser_2').person | 351 | p2 = create_user('testuser_2').person |
352 | p2.add_category c | 352 | p2.add_category c |
353 | - assert_equal [p1, p2], c.people | 353 | + assert_equivalent [p1, p2], c.people |
354 | end | 354 | end |
355 | 355 | ||
356 | should 'have communities' do | 356 | should 'have communities' do |
@@ -359,7 +359,7 @@ class CategoryTest < ActiveSupport::TestCase | @@ -359,7 +359,7 @@ class CategoryTest < ActiveSupport::TestCase | ||
359 | c1.add_category c | 359 | c1.add_category c |
360 | c2 = fast_create(Community, :name => 'testcommunity_2') | 360 | c2 = fast_create(Community, :name => 'testcommunity_2') |
361 | c2.add_category c | 361 | c2.add_category c |
362 | - assert_equal [c1, c2], c.communities | 362 | + assert_equivalent [c1, c2], c.communities |
363 | end | 363 | end |
364 | 364 | ||
365 | should 'have products through enteprises' do | 365 | should 'have products through enteprises' do |