Commit 577f6c0cd7b39d4779419b417c4a72419cd950ba
1 parent
c95a33e7
Exists in
master
and in
23 other branches
person_tests: avoiding randomness
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
test/unit/person_test.rb
| ... | ... | @@ -211,7 +211,7 @@ class PersonTest < ActiveSupport::TestCase |
| 211 | 211 | p3 = create_user('testuser3').person |
| 212 | 212 | p1.add_friend(p3) |
| 213 | 213 | |
| 214 | - assert_equal [p2,p3], p1.friends(true) # force reload | |
| 214 | + assert_equivalent [p2,p3], p1.friends(true) # force reload | |
| 215 | 215 | |
| 216 | 216 | end |
| 217 | 217 | |
| ... | ... | @@ -1074,8 +1074,8 @@ class PersonTest < ActiveSupport::TestCase |
| 1074 | 1074 | person.add_friend(friend_1) |
| 1075 | 1075 | person.add_friend(friend_2) |
| 1076 | 1076 | person.add_friend(friend_3) |
| 1077 | - assert_equal [friend_1, friend_2, friend_3], person.friends | |
| 1078 | - assert_equal [friend_1], person.friends.online | |
| 1077 | + assert_equivalent [friend_1, friend_2, friend_3], person.friends | |
| 1078 | + assert_equivalent [friend_1], person.friends.online | |
| 1079 | 1079 | end |
| 1080 | 1080 | |
| 1081 | 1081 | should 'return url to a person wall' do | ... | ... |