Sha256: e78ad2b8443f70aad70990ffda30793439e5a56b8cb20311ef7cf3f2a5e57123
Contents?: true
Size: 878 Bytes
Versions: 2
Compression:
Stored size: 878 Bytes
Contents
require 'spec_helper' module BankingData describe GermanBank do describe 'end-to-end test' do ['MARKDEF1100', 'PBNKDEFF100'].each do |bic| it "includes #{bic}" do expect(GermanBank.only(:bic).map(&:first)).to include(bic) expect(Bank.where(locale: :de).only(:bic).map(&:first)) .to include(bic) end end ['76350000', '37040044', '40050150'].each do |blz| it "includes #{blz}" do expect(GermanBank.only(:blz).map(&:first)).to include(blz) expect(GermanBank.map(&:blz)).to include(blz) expect(GermanBank.only(:blz).flatten).to include(blz) expect(Bank.where(locale: :de, blz: blz).only(:blz).first) .to eq([blz]) expect(Bank.where(blz: blz, locale: :de).only(:blz).last) .to eq([blz]) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
banking_data-0.5.1 | spec/banking_data/german_bank_spec.rb |
banking_data-0.5.0 | spec/banking_data/german_bank_spec.rb |