Commit c6e0ab476dc9cff36529995974b44c2b3158218a
1 parent
8cd81d05
Exists in
master
and in
28 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 | 350 | p1.add_category c |
| 351 | 351 | p2 = create_user('testuser_2').person |
| 352 | 352 | p2.add_category c |
| 353 | - assert_equal [p1, p2], c.people | |
| 353 | + assert_equivalent [p1, p2], c.people | |
| 354 | 354 | end |
| 355 | 355 | |
| 356 | 356 | should 'have communities' do |
| ... | ... | @@ -359,7 +359,7 @@ class CategoryTest < ActiveSupport::TestCase |
| 359 | 359 | c1.add_category c |
| 360 | 360 | c2 = fast_create(Community, :name => 'testcommunity_2') |
| 361 | 361 | c2.add_category c |
| 362 | - assert_equal [c1, c2], c.communities | |
| 362 | + assert_equivalent [c1, c2], c.communities | |
| 363 | 363 | end |
| 364 | 364 | |
| 365 | 365 | should 'have products through enteprises' do | ... | ... |