Sha256: 05421a9186bf8389bd532ee579c3ef3b8121815a1320f038e6d2cbfb521c7561
Contents?: true
Size: 812 Bytes
Versions: 7
Compression:
Stored size: 812 Bytes
Contents
require 'spec_helper' module BankingData describe AustrianBank do describe 'end-to-end test' do ['RCNOATW1XXX', 'FFBKDEFFAUT'].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 ['19420', '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
7 entries across 7 versions & 1 rubygems