Sha256: ca6cc2529c433a50cd90e0c8708ad4ec3d63a6b08c8f75c343814b3c95014339

Contents?: true

Size: 728 Bytes

Versions: 1

Compression:

Stored size: 728 Bytes

Contents

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

describe 'Experian::DataDictionary 0112' do
  context 'valid lookup' do
    it { expect(Experian::DataDictionary.lookup('0112', 'D')).to eq('Deceased Indicator') }
    it { expect(Experian::DataDictionary.lookup('0112', ' ')).to eq('Unknown') }
    it { expect(Experian::DataDictionary.lookup('0112', 'blank')).to eq('Unknown') }
  end

  context 'invalid lookup' do
    it { expect(Experian::DataDictionary.lookup('0112', 'F')).to be_nil }
    it { expect(Experian::DataDictionary.lookup('0112', 'PE')).to be_nil }
    it { expect(Experian::DataDictionary.lookup('0112', 'GG')).to be_nil }
    it { expect(Experian::DataDictionary.lookup('0112', 'DOG')).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/0100/en_0112_spec.rb