From 582197472c538743bb8ace0b8f80d0b425828ba1 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Thu, 5 Jun 2014 15:41:25 -0300 Subject: [PATCH] profile-test: avoid randomness (again...) --- test/unit/profile_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit/profile_test.rb b/test/unit/profile_test.rb index bf97b5b..aa56a53 100644 --- a/test/unit/profile_test.rb +++ b/test/unit/profile_test.rb @@ -345,7 +345,7 @@ class ProfileTest < ActiveSupport::TestCase t2 = c.tasks.build t2.save! - assert_equal [t1, t2], c.tasks + assert_equivalent [t1, t2], c.tasks end should 'have pending tasks' do @@ -354,7 +354,7 @@ class ProfileTest < ActiveSupport::TestCase t2 = c.tasks.build; t2.save!; t2.finish t3 = c.tasks.build; t3.save! - assert_equal [t1, t3], c.tasks.pending + assert_equivalent [t1, t3], c.tasks.pending end should 'have finished tasks' do @@ -1239,7 +1239,7 @@ class ProfileTest < ActiveSupport::TestCase Person.any_instance.stubs(:is_admin?).returns(true) - assert_equal [task1, task2], Task.to(person).pending + assert_equivalent [task1, task2], Task.to(person).pending end should 'find task by id on all environments' do -- libgit2 0.21.2