Sha256: e4c6fcd2365b50883294c90e9cc3f781d4a6be5a513f5ecb8362f33df5492d2b
Contents?: true
Size: 710 Bytes
Versions: 1
Compression:
Stored size: 710 Bytes
Contents
require File.join(Dir.pwd, 'spec', 'spec_helper') describe 'Experian::DataDictionary 0601' do context 'valid lookup' do it { expect(Experian::DataDictionary.lookup('0601', '1')).to eq(1) } it { expect(Experian::DataDictionary.lookup('0601', '5558768')).to eq(5_558_768) } it { expect(Experian::DataDictionary.lookup('0601', '10000')).to eq(10_000) } it { expect(Experian::DataDictionary.lookup('0601', ' ')).to be_nil } end context 'invalid lookup' do it { expect(Experian::DataDictionary.lookup('0601', 'TAA1')).to eq(1) } it { expect(Experian::DataDictionary.lookup('0601', 'A')).to be_nil } it { expect(Experian::DataDictionary.lookup('0601', 'R')).to be_nil } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
experian-data-dictionary-1.4.5 | spec/functional/0600/en_0601_spec.rb |