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:
Javi Martín
2024-06-19 18:41:59 +02:00
parent cc3268b968
commit 3f3d1dec17

View File

@@ -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