Sha256: 328bc94c93d647c6eef8f4d88ddc8ad3063193bfb4b988219947a53f007cc9fe

Contents?: true

Size: 715 Bytes

Versions: 1

Compression:

Stored size: 715 Bytes

Contents

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
experian-data-dictionary-1.4.5 spec/functional/B/en_B5013_spec.rb