Add missing test

This commit is contained in:
Hakan Ensari 2020-04-02 17:13:41 +01:00
parent a756d9a025
commit 663034093f

View File

@ -38,6 +38,11 @@ describe Bank do
Day.count.must_be :<, 90 Day.count.must_be :<, 90
end end
it 'seeds rates with saved data' do
Bank.seed_with_saved_data!
Day.count.must_be :>, 90
end
it 'does not duplicate when fetching rates for last 90 days' do it 'does not duplicate when fetching rates for last 90 days' do
Bank.fetch_ninety_days! Bank.fetch_ninety_days!
count = Day.count count = Day.count