Sha256: 290b97ccba1550c4ea335eb6cd61b5161b2c3ca378da537617c8bff0c748be01
Contents?: true
Size: 1.22 KB
Versions: 1
Compression:
Stored size: 1.22 KB
Contents
require File.join(Dir.pwd, 'spec', 'spec_helper') describe 'Experian::DataDictionary f031' do context 'valid lookup' do # it { expect( Experian::DataDictionary.lookup('f031','') ).to eq('') } it { expect(Experian::DataDictionary.lookup('f031', '01')).to eq('High profitability, high likelihood to perform') } it { expect(Experian::DataDictionary.lookup('f031', '02')).to eq('High profitability, high likelihood to perform') } it { expect(Experian::DataDictionary.lookup('f031', '03')).to eq('High profitability, high likelihood to perform') } it { expect(Experian::DataDictionary.lookup('f031', '08')).to eq('Poor Profitability, unlikely to perform') } it { expect(Experian::DataDictionary.lookup('f031', '13')).to eq('Low Profitability, unlikely to perform') } it { expect(Experian::DataDictionary.lookup('f031', '11')).to eq('Low Profitability, unlikely to perform') } it { expect(Experian::DataDictionary.lookup('f031', ' ')).to eq('Unknown') } end context 'invalid lookup' do it { expect(Experian::DataDictionary.lookup('f031', 'P')).to be_nil } it { expect(Experian::DataDictionary.lookup('f031', '0')).to be_nil } it { expect(Experian::DataDictionary.lookup('f031', '14')).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/F/en_F031_spec.rb |