Fix typo in between_ages spec
The test was failing sometimes because there's no guarantee that the `.between_ages` scope will return the records in a specific order.
This commit is contained in:
@@ -472,7 +472,7 @@ describe User do
|
||||
|
||||
travel_to "2024-02-29" do
|
||||
expect(User.between_ages(22, 23)).to eq [march_1st_user]
|
||||
expect(User.between_ages(23, 24)).to eq [leap_day_user, march_1st_user]
|
||||
expect(User.between_ages(23, 24)).to match_array [leap_day_user, march_1st_user]
|
||||
expect(User.between_ages(24, 25)).to eq [leap_day_user]
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user