mirror of
https://github.com/hakanensari/frankfurter.git
synced 2024-10-29 23:32:35 +01:00
Fix spec
This commit is contained in:
parent
ef683f0321
commit
1116343424
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user