Sha256: 561bc7be314393c93fa2cf25893ffb458f8b65b78d49099437a544b04f5827b5

Contents?: true

Size: 749 Bytes

Versions: 1

Compression:

Stored size: 749 Bytes

Contents

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

describe 'Experian::DataDictionary 8137' do
  context 'valid lookup' do
    it { expect(Experian::DataDictionary.lookup('8137', 'Y')).to eq('Household has indicated being cat enthusiasts') }
    it { expect(Experian::DataDictionary.lookup('8137', 'U')).to eq('Unknown') }
    it { expect(Experian::DataDictionary.lookup('8137', '')).to eq('Unknown') }
    it { expect(Experian::DataDictionary.lookup('8137', '1')).to be_nil }
  end

  context 'invalid lookup' do
    it { expect(Experian::DataDictionary.lookup('8137', 'TAA1')).to be_nil }
    it { expect(Experian::DataDictionary.lookup('8137', 'A')).to be_nil }
    it { expect(Experian::DataDictionary.lookup('8137', 'R')).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/8000/en_8137_spec.rb