Skip to content

Commit

Permalink
use specify instead of it blocks. we're too lazy for descriptions
Browse files Browse the repository at this point in the history
anyway :)
  • Loading branch information
yoyostile committed Apr 19, 2016
1 parent 17a4d94 commit 9078033
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
10 changes: 5 additions & 5 deletions spec/lib/camt_parser/053/account_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

8 changes: 4 additions & 4 deletions spec/lib/camt_parser/053/base_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 4 additions & 4 deletions spec/lib/camt_parser/053/creditor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 4 additions & 4 deletions spec/lib/camt_parser/053/debitor_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9078033

Please sign in to comment.