This commit is contained in:
Hakan Ensari 2020-05-02 18:34:38 +01:00
parent ef683f0321
commit 1116343424

View File

@ -27,8 +27,8 @@ describe Currency do
_(Currency.between(interval).map(:date).uniq.count).must_be :<, 54 _(Currency.between(interval).map(:date).uniq.count).must_be :<, 54
end end
it 'sorts by date' do it 'sorts by date when sampling' do
interval = day..day + 100 interval = day..day + 366
dates = Currency.between(interval).map(:date) dates = Currency.between(interval).map(:date)
_(dates).must_equal dates.sort _(dates).must_equal dates.sort
end end