Commit 582197472c538743bb8ace0b8f80d0b425828ba1
1 parent
2234c20e
Exists in
master
and in
28 other branches
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 | 345 | t2 = c.tasks.build |
346 | 346 | t2.save! |
347 | 347 | |
348 | - assert_equal [t1, t2], c.tasks | |
348 | + assert_equivalent [t1, t2], c.tasks | |
349 | 349 | end |
350 | 350 | |
351 | 351 | should 'have pending tasks' do |
... | ... | @@ -354,7 +354,7 @@ class ProfileTest < ActiveSupport::TestCase |
354 | 354 | t2 = c.tasks.build; t2.save!; t2.finish |
355 | 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 | 358 | end |
359 | 359 | |
360 | 360 | should 'have finished tasks' do |
... | ... | @@ -1239,7 +1239,7 @@ class ProfileTest < ActiveSupport::TestCase |
1239 | 1239 | |
1240 | 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 | 1243 | end |
1244 | 1244 | |
1245 | 1245 | should 'find task by id on all environments' do | ... | ... |