Sha256: c5938749e3012e32d1f0bb4e74a1ea73e079a50276aa15332cfc7cd3f61ed6bf

Contents?: true

Size: 1002 Bytes

Versions: 1

Compression:

Stored size: 1002 Bytes

Contents

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

describe 'Experian::DataDictionary 8523' do
  context 'valid lookup' do
    it { expect(Experian::DataDictionary.lookup('8523', 'Y1')).to eq('Living unit has a known do-it-yourselfer - Extremely Likely do-it-yourselfer') }
    it { expect(Experian::DataDictionary.lookup('8523', 'Y5')).to eq('Living unit has a known do-it-yourselfer - Likely do-it-yourselfer') }
    it { expect(Experian::DataDictionary.lookup('8523', 'Y3')).to eq('Living unit has a known do-it-yourselfer - Very Likely do-it-yourselfer') }
    it { expect(Experian::DataDictionary.lookup('8523', 'Y2')).to eq('Living unit has a known do-it-yourselfer - Highly Likely do-it-yourselfer') }
  end

  context 'invalid lookup' do
    it { expect(Experian::DataDictionary.lookup('8523', 'TAA1')).to eq('Unknown') }
    it { expect(Experian::DataDictionary.lookup('8523', 'A')).to eq('Unknown') }
    it { expect(Experian::DataDictionary.lookup('8523', 'R')).to eq('Unknown') }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
experian-data-dictionary-1.4.5 spec/functional/8000/en_8523_spec.rb