Use match_array instead of eq
This is the proper way to compare arrays
This commit is contained in:
parent
a30ff860e9
commit
a449e0193a
|
|
@ -88,7 +88,7 @@ RSpec.describe MatchService do
|
|||
team_order << score.team
|
||||
end
|
||||
end
|
||||
expect(team_order).to eq(teams)
|
||||
expect(team_order).to match_array(teams)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue