Commit 582197472c538743bb8ace0b8f80d0b425828ba1

Authored by Rodrigo Souto
1 parent 2234c20e

profile-test: avoid randomness (again...)

Showing 1 changed file with 3 additions and 3 deletions   Show diff stats
test/unit/profile_test.rb
@@ -345,7 +345,7 @@ class ProfileTest < ActiveSupport::TestCase @@ -345,7 +345,7 @@ class ProfileTest < ActiveSupport::TestCase
345 t2 = c.tasks.build 345 t2 = c.tasks.build
346 t2.save! 346 t2.save!
347 347
348 - assert_equal [t1, t2], c.tasks 348 + assert_equivalent [t1, t2], c.tasks
349 end 349 end
350 350
351 should 'have pending tasks' do 351 should 'have pending tasks' do
@@ -354,7 +354,7 @@ class ProfileTest < ActiveSupport::TestCase @@ -354,7 +354,7 @@ class ProfileTest < ActiveSupport::TestCase
354 t2 = c.tasks.build; t2.save!; t2.finish 354 t2 = c.tasks.build; t2.save!; t2.finish
355 t3 = c.tasks.build; t3.save! 355 t3 = c.tasks.build; t3.save!
356 356
357 - assert_equal [t1, t3], c.tasks.pending 357 + assert_equivalent [t1, t3], c.tasks.pending
358 end 358 end
359 359
360 should 'have finished tasks' do 360 should 'have finished tasks' do
@@ -1239,7 +1239,7 @@ class ProfileTest < ActiveSupport::TestCase @@ -1239,7 +1239,7 @@ class ProfileTest < ActiveSupport::TestCase
1239 1239
1240 Person.any_instance.stubs(:is_admin?).returns(true) 1240 Person.any_instance.stubs(:is_admin?).returns(true)
1241 1241
1242 - assert_equal [task1, task2], Task.to(person).pending 1242 + assert_equivalent [task1, task2], Task.to(person).pending
1243 end 1243 end
1244 1244
1245 should 'find task by id on all environments' do 1245 should 'find task by id on all environments' do