From 663034093fe1793aa461bdb5868ded80f64aef88 Mon Sep 17 00:00:00 2001 From: Hakan Ensari Date: Thu, 2 Apr 2020 17:13:41 +0100 Subject: [PATCH] Add missing test --- spec/bank_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/bank_spec.rb b/spec/bank_spec.rb index e4fd9d1..b92b95c 100644 --- a/spec/bank_spec.rb +++ b/spec/bank_spec.rb @@ -38,6 +38,11 @@ describe Bank do Day.count.must_be :<, 90 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 Bank.fetch_ninety_days! count = Day.count