Sha256: 2541231c08bed60f2329eedb177edac85392da66ae3841c21d8b2885524e6da6
Contents?: true
Size: 806 Bytes
Versions: 2
Compression:
Stored size: 806 Bytes
Contents
require 'spec_helper' module BankingData describe AustrianBank do describe 'end-to-end test' do ['ABAGATWW', 'ABVRATW1'].each do |bic| it "includes #{bic}" do expect(AustrianBank.only(:bic).map(&:first)).to include(bic) expect(Bank.where(locale: :at).only(:bic).map(&:first)) .to include(bic) end end ['60000', '15150'].each do |blz| it "includes #{blz}" do expect(AustrianBank.only(:blz).map(&:first)).to include(blz) expect(AustrianBank.only(:blz).flatten).to include(blz) expect(Bank.where(locale: :at, blz: blz).only(:blz).first) .to eq([blz]) expect(Bank.where(blz: blz, locale: :at).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/austrian_bank_spec.rb |
banking_data-0.5.0 | spec/banking_data/austrian_bank_spec.rb |