From c6e0ab476dc9cff36529995974b44c2b3158218a Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Thu, 22 Aug 2013 16:39:21 -0300 Subject: [PATCH] [postgres-tests] Avoiding randomness on cateogory test --- test/unit/category_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unit/category_test.rb b/test/unit/category_test.rb index 64dbf0d..34ec8d2 100644 --- a/test/unit/category_test.rb +++ b/test/unit/category_test.rb @@ -350,7 +350,7 @@ class CategoryTest < ActiveSupport::TestCase p1.add_category c p2 = create_user('testuser_2').person p2.add_category c - assert_equal [p1, p2], c.people + assert_equivalent [p1, p2], c.people end should 'have communities' do @@ -359,7 +359,7 @@ class CategoryTest < ActiveSupport::TestCase c1.add_category c c2 = fast_create(Community, :name => 'testcommunity_2') c2.add_category c - assert_equal [c1, c2], c.communities + assert_equivalent [c1, c2], c.communities end should 'have products through enteprises' do -- libgit2 0.21.2