From d5479133cc6e786cd55cbc7078a0924e642773f4 Mon Sep 17 00:00:00 2001 From: Johannes Heck Date: Mon, 18 Apr 2016 12:35:37 +0200 Subject: [PATCH] fix tests --- spec/lib/camt_parser/053/statement_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/lib/camt_parser/053/statement_spec.rb b/spec/lib/camt_parser/053/statement_spec.rb index b46669e..d7cf049 100644 --- a/spec/lib/camt_parser/053/statement_spec.rb +++ b/spec/lib/camt_parser/053/statement_spec.rb @@ -41,7 +41,7 @@ end it "contains certain attributes" do - expect(ex_entry.amount.class).to eq(BigDecimal) + expect(ex_entry.amount.class).to eq(Float) expect(ex_entry.amount).to eq(BigDecimal.new('2')) expect(ex_entry.currency).to eq('EUR') expect(ex_entry.value_date.class).to eq(Date) @@ -61,7 +61,7 @@ expect(debitor.name).to eq("Wayne Enterprises") expect(debitor.iban).to eq("DE24302201900609832118") expect(debitor.bic).to eq("DAAEDEDDXXX") - expect(debitor.bank_name).to eq(nil) + expect(debitor.bank_name).to eq("") end end