From 90780332f60caa9d5d0e92fef7974f1f0b5338cc Mon Sep 17 00:00:00 2001 From: Johannes Heck Date: Tue, 19 Apr 2016 15:43:11 +0200 Subject: [PATCH] use specify instead of it blocks. we're too lazy for descriptions anyway :) --- spec/lib/camt_parser/053/account_spec.rb | 10 +++++----- spec/lib/camt_parser/053/base_spec.rb | 8 ++++---- spec/lib/camt_parser/053/creditor_spec.rb | 8 ++++---- spec/lib/camt_parser/053/debitor_spec.rb | 8 ++++---- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a/spec/lib/camt_parser/053/account_spec.rb b/spec/lib/camt_parser/053/account_spec.rb index 9f12eaf..4f0705a 100644 --- a/spec/lib/camt_parser/053/account_spec.rb +++ b/spec/lib/camt_parser/053/account_spec.rb @@ -6,10 +6,10 @@ let(:ex_stmt) { camt.statements[0] } let(:account) { ex_stmt.account } - it { expect(account.iban).to eq("DE14740618130000033626") } - it { expect(account.iban).to eq(account.account_number) } - it { expect(account.iban).to eq(account.source) } - it { expect(account.bic).to eq("GENODEF1PFK") } - it { expect(account.bank_name).to eq("VR-Bank Rottal-Inn eG") } + specify { expect(account.iban).to eq("DE14740618130000033626") } + specify { expect(account.iban).to eq(account.account_number) } + specify { expect(account.iban).to eq(account.source) } + specify { expect(account.bic).to eq("GENODEF1PFK") } + specify { expect(account.bank_name).to eq("VR-Bank Rottal-Inn eG") } end diff --git a/spec/lib/camt_parser/053/base_spec.rb b/spec/lib/camt_parser/053/base_spec.rb index 8666282..2ff402c 100644 --- a/spec/lib/camt_parser/053/base_spec.rb +++ b/spec/lib/camt_parser/053/base_spec.rb @@ -7,11 +7,11 @@ CamtParser::File.parse 'spec/fixtures/valid_example.xml' end - it { expect(CamtParser::Format053::GroupHeader).to receive(:new).and_call_original } - it { expect(CamtParser::Format053::Statement).to receive(:new).and_call_original } + specify { expect(CamtParser::Format053::GroupHeader).to receive(:new).and_call_original } + specify { expect(CamtParser::Format053::Statement).to receive(:new).and_call_original } end let(:camt) { CamtParser::File.parse 'spec/fixtures/valid_example.xml' } - it { expect(camt.group_header).to_not be_nil } - it { expect(camt.statements).to_not eq([]) } + specify { expect(camt.group_header).to_not be_nil } + specify { expect(camt.statements).to_not eq([]) } end diff --git a/spec/lib/camt_parser/053/creditor_spec.rb b/spec/lib/camt_parser/053/creditor_spec.rb index 97df403..a514668 100644 --- a/spec/lib/camt_parser/053/creditor_spec.rb +++ b/spec/lib/camt_parser/053/creditor_spec.rb @@ -8,8 +8,8 @@ let(:ex_entry) { ex_stmt.entries[0] } let(:creditor) { ex_entry.creditor } - it { expect(creditor.name).to eq("Testkonto Nummer 2") } - it { expect(creditor.iban).to eq("DE09300606010012345671") } - it { expect(creditor.bic).to eq("DAAEDEDDXXX") } - it { expect(creditor.bank_name).to eq("Bank") } + specify { expect(creditor.name).to eq("Testkonto Nummer 2") } + specify { expect(creditor.iban).to eq("DE09300606010012345671") } + specify { expect(creditor.bic).to eq("DAAEDEDDXXX") } + specify { expect(creditor.bank_name).to eq("Bank") } end diff --git a/spec/lib/camt_parser/053/debitor_spec.rb b/spec/lib/camt_parser/053/debitor_spec.rb index a6d52a4..3845754 100644 --- a/spec/lib/camt_parser/053/debitor_spec.rb +++ b/spec/lib/camt_parser/053/debitor_spec.rb @@ -8,8 +8,8 @@ let(:ex_entry) { ex_stmt.entries[0] } let(:debitor) { ex_entry.debitor } - it { expect(debitor.name).to eq("Wayne Enterprises") } - it { expect(debitor.iban).to eq("DE24302201900609832118") } - it { expect(debitor.bic).to eq("DAAEDEDDXXX") } - it { expect(debitor.bank_name).to eq("") } + specify { expect(debitor.name).to eq("Wayne Enterprises") } + specify { expect(debitor.iban).to eq("DE24302201900609832118") } + specify { expect(debitor.bic).to eq("DAAEDEDDXXX") } + specify { expect(debitor.bank_name).to eq("") } end