require File.join(Dir.pwd, 'spec', 'spec_helper') describe 'Experian::DataDictionary b5013' do context 'valid lookup' do # it { expect( Experian::DataDictionary.lookup('b5013','') ).to eq('') } it { expect(Experian::DataDictionary.lookup('b5013', 'Y')).to eq('Yes') } it { expect(Experian::DataDictionary.lookup('b5013', 'U')).to eq('Unknown') } it { expect(Experian::DataDictionary.lookup('b5013', ' ')).to eq('Unknown') } end context 'invalid lookup' do it { expect(Experian::DataDictionary.lookup('b5013', 'A')).to be_nil } it { expect(Experian::DataDictionary.lookup('b5013', 'F')).to be_nil } it { expect(Experian::DataDictionary.lookup('b5013', '0')).to be_nil } end end