Sha256: 2769c6bb79bee7d93e53efcc260171deca7a615a754f89a1ec768ac6e7d2d489

Contents?: true

Size: 715 Bytes

Versions: 1

Compression:

Stored size: 715 Bytes

Contents

require File.join(Dir.pwd, 'spec', 'spec_helper')

describe 'Experian::DataDictionary b5016' do
  context 'valid lookup' do
    # it { expect( Experian::DataDictionary.lookup('b5016','') ).to eq('') }
    it { expect(Experian::DataDictionary.lookup('b5016', 'Y')).to eq('Yes') }
    it { expect(Experian::DataDictionary.lookup('b5016', 'U')).to eq('Unknown') }
    it { expect(Experian::DataDictionary.lookup('b5016', ' ')).to eq('Unknown') }
  end

  context 'invalid lookup' do
    it { expect(Experian::DataDictionary.lookup('b5016', 'A')).to be_nil }
    it { expect(Experian::DataDictionary.lookup('b5016', 'F')).to be_nil }
    it { expect(Experian::DataDictionary.lookup('b5016', '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_B5016_spec.rb