experian-data-dictionary 1.4.4 → 1.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +28 -0
- data/Gemfile +3 -3
- data/Rakefile +7 -13
- data/experian_data_dictionary.gemspec +4 -4
- data/lib/element_numbers/0000/en_0000.rb +3 -3
- data/lib/element_numbers/0100/en_0100.rb +12 -12
- data/lib/element_numbers/0100/en_0103.rb +3 -2
- data/lib/element_numbers/0100/en_0107.rb +4 -3
- data/lib/element_numbers/0100/en_0108.rb +22 -11
- data/lib/element_numbers/0100/en_0110.rb +3 -2
- data/lib/element_numbers/0100/en_0112.rb +3 -2
- data/lib/element_numbers/0100/en_0113.rb +3 -2
- data/lib/element_numbers/0100/en_0118.rb +3 -2
- data/lib/element_numbers/0100/en_0119.rb +4 -4
- data/lib/element_numbers/0100/en_0130.rb +3 -2
- data/lib/element_numbers/0100/en_0131.rb +3 -2
- data/lib/element_numbers/0100/en_0132.rb +9 -7
- data/lib/element_numbers/0100/en_0133.rb +3 -2
- data/lib/element_numbers/0100/en_0134.rb +5 -5
- data/lib/element_numbers/0100/en_0135.rb +5 -5
- data/lib/element_numbers/0100/en_0136.rb +5 -5
- data/lib/element_numbers/0100/en_0137.rb +5 -5
- data/lib/element_numbers/0100/en_0138.rb +5 -5
- data/lib/element_numbers/0100/en_0139.rb +5 -5
- data/lib/element_numbers/0100/en_0140.rb +5 -5
- data/lib/element_numbers/0100/en_0141.rb +5 -5
- data/lib/element_numbers/0100/en_0155.rb +3 -3
- data/lib/element_numbers/0100/en_0156.rb +3 -3
- data/lib/element_numbers/0100/en_0160.rb +4 -5
- data/lib/element_numbers/0100/en_0161.rb +4 -5
- data/lib/element_numbers/0100/en_0162.rb +4 -4
- data/lib/element_numbers/0100/en_0164.rb +3 -3
- data/lib/element_numbers/0100/en_0174.rb +3 -3
- data/lib/element_numbers/0100/en_0177.rb +3 -3
- data/lib/element_numbers/0600/en_0601.rb +4 -3
- data/lib/element_numbers/0700/en_0711.rb +4 -4
- data/lib/element_numbers/0700/en_0715.rb +4 -5
- data/lib/element_numbers/0700/en_0716.rb +4 -4
- data/lib/element_numbers/0700/en_0717.rb +4 -4
- data/lib/element_numbers/300/en_310M.rb +3 -3
- data/lib/element_numbers/300/en_313HH.rb +0 -2
- data/lib/element_numbers/8000/en_8102.rb +3 -2
- data/lib/element_numbers/8000/en_8103.rb +3 -2
- data/lib/element_numbers/8000/en_8109.rb +3 -2
- data/lib/element_numbers/8000/en_8123.rb +3 -2
- data/lib/element_numbers/8000/en_8128.rb +3 -2
- data/lib/element_numbers/8000/en_8133.rb +3 -2
- data/lib/element_numbers/8000/en_8136.rb +3 -2
- data/lib/element_numbers/8000/en_8137.rb +3 -2
- data/lib/element_numbers/8000/en_8180.rb +3 -2
- data/lib/element_numbers/8000/en_8181.rb +3 -2
- data/lib/element_numbers/8000/en_8502.rb +8 -6
- data/lib/element_numbers/8000/en_8503.rb +8 -6
- data/lib/element_numbers/8000/en_8504.rb +8 -6
- data/lib/element_numbers/8000/en_8505.rb +8 -6
- data/lib/element_numbers/8000/en_8509.rb +8 -6
- data/lib/element_numbers/8000/en_8519.rb +8 -6
- data/lib/element_numbers/8000/en_8523.rb +8 -6
- data/lib/element_numbers/8000/en_8525.rb +8 -6
- data/lib/element_numbers/8000/en_8526.rb +9 -7
- data/lib/element_numbers/8000/en_8528.rb +8 -6
- data/lib/element_numbers/8000/en_8531.rb +8 -6
- data/lib/element_numbers/8000/en_8532.rb +8 -6
- data/lib/element_numbers/8000/en_8533.rb +10 -9
- data/lib/element_numbers/8000/en_8536.rb +8 -6
- data/lib/element_numbers/8000/en_8537.rb +8 -6
- data/lib/element_numbers/8000/en_8538.rb +8 -6
- data/lib/element_numbers/8000/en_8574.rb +8 -6
- data/lib/element_numbers/8000/en_8580.rb +8 -6
- data/lib/element_numbers/8000/en_8581.rb +8 -6
- data/lib/element_numbers/A/en_A107.rb +3 -2
- data/lib/element_numbers/B/en_B000.rb +5 -5
- data/lib/element_numbers/B/en_B2185.rb +3 -2
- data/lib/element_numbers/B/en_B3010.rb +3 -2
- data/lib/element_numbers/B/en_B3076.rb +3 -2
- data/lib/element_numbers/B/en_B3080.rb +3 -2
- data/lib/element_numbers/B/en_B3081.rb +3 -2
- data/lib/element_numbers/B/en_B3200.rb +3 -2
- data/lib/element_numbers/B/en_B3225.rb +3 -2
- data/lib/element_numbers/B/en_B3226.rb +3 -2
- data/lib/element_numbers/B/en_B3227.rb +3 -2
- data/lib/element_numbers/B/en_B3251.rb +3 -2
- data/lib/element_numbers/B/en_B5011.rb +3 -2
- data/lib/element_numbers/B/en_B5013.rb +3 -2
- data/lib/element_numbers/B/en_B5014.rb +3 -2
- data/lib/element_numbers/B/en_B5016.rb +3 -2
- data/lib/element_numbers/D/en_D105N.rb +3 -3
- data/lib/element_numbers/D/en_D105S.rb +3 -2
- data/lib/element_numbers/D/en_D200.rb +3 -3
- data/lib/element_numbers/F/en_F031.rb +3 -3
- data/lib/element_numbers/G/en_G2001.rb +5 -5
- data/lib/element_numbers/G/en_G2514.rb +3 -3
- data/lib/element_numbers/G/en_G2516.rb +3 -3
- data/lib/element_numbers/G/en_G2601.rb +3 -3
- data/lib/element_numbers/G/en_G2602.rb +3 -3
- data/lib/element_numbers/G/en_G2603.rb +3 -3
- data/lib/element_numbers/G/en_GEO6.rb +3 -3
- data/lib/element_numbers/L/en_L000.rb +4 -4
- data/lib/element_numbers/P/en_P213E.rb +4 -4
- data/lib/element_numbers/P/en_P213H.rb +21 -21
- data/lib/element_numbers/P/en_P213W.rb +4 -4
- data/lib/element_numbers/P/en_P400.rb +6 -4
- data/lib/element_numbers/T/en_T2000.rb +4 -4
- data/lib/element_numbers/V/en_V000.rb +3 -3
- data/lib/element_numbers/Y/en_Y000.rb +3 -3
- data/lib/experian.rb +10 -10
- data/spec/functional/0000/en_0000_spec.rb +13 -16
- data/spec/functional/0100/en_0100_spec.rb +13 -20
- data/spec/functional/0100/en_0103_spec.rb +9 -12
- data/spec/functional/0100/en_0107_spec.rb +10 -13
- data/spec/functional/0100/en_0108_spec.rb +411 -445
- data/spec/functional/0100/en_0110_spec.rb +11 -14
- data/spec/functional/0100/en_0112_spec.rb +7 -10
- data/spec/functional/0100/en_0113_spec.rb +12 -16
- data/spec/functional/0100/en_0118_spec.rb +11 -15
- data/spec/functional/0100/en_0119_spec.rb +7 -10
- data/spec/functional/0100/en_0130_spec.rb +8 -12
- data/spec/functional/0100/en_0131_spec.rb +9 -13
- data/spec/functional/0100/en_0132_spec.rb +4 -8
- data/spec/functional/0100/en_0133_spec.rb +4 -8
- data/spec/functional/0100/en_0134_spec.rb +15 -19
- data/spec/functional/0100/en_0135_spec.rb +15 -19
- data/spec/functional/0100/en_0136_spec.rb +15 -19
- data/spec/functional/0100/en_0137_spec.rb +14 -18
- data/spec/functional/0100/en_0138_spec.rb +14 -18
- data/spec/functional/0100/en_0139_spec.rb +14 -18
- data/spec/functional/0100/en_0140_spec.rb +14 -18
- data/spec/functional/0100/en_0141_spec.rb +14 -18
- data/spec/functional/0100/en_0155_spec.rb +7 -11
- data/spec/functional/0100/en_0156_spec.rb +7 -11
- data/spec/functional/0100/en_0160_spec.rb +8 -13
- data/spec/functional/0100/en_0161_spec.rb +8 -12
- data/spec/functional/0100/en_0162_spec.rb +7 -11
- data/spec/functional/0100/en_0164_spec.rb +9 -14
- data/spec/functional/0100/en_0174_spec.rb +8 -13
- data/spec/functional/0100/en_0177_spec.rb +7 -12
- data/spec/functional/0600/en_0601_spec.rb +7 -12
- data/spec/functional/0700/en_0711_spec.rb +10 -13
- data/spec/functional/0700/en_0715_spec.rb +11 -15
- data/spec/functional/0700/en_0716_spec.rb +11 -15
- data/spec/functional/0700/en_0717_spec.rb +11 -12
- data/spec/functional/300/en_310M_spec.rb +66 -70
- data/spec/functional/300/en_313HH_spec.rb +7 -12
- data/spec/functional/8000/en_8102_spec.rb +7 -10
- data/spec/functional/8000/en_8103_spec.rb +7 -10
- data/spec/functional/8000/en_8109_spec.rb +7 -10
- data/spec/functional/8000/en_8123_spec.rb +7 -10
- data/spec/functional/8000/en_8128_spec.rb +7 -10
- data/spec/functional/8000/en_8133_spec.rb +7 -10
- data/spec/functional/8000/en_8136_spec.rb +7 -10
- data/spec/functional/8000/en_8137_spec.rb +7 -10
- data/spec/functional/8000/en_8180_spec.rb +7 -10
- data/spec/functional/8000/en_8181_spec.rb +7 -10
- data/spec/functional/8000/en_8502_spec.rb +10 -13
- data/spec/functional/8000/en_8503_spec.rb +10 -13
- data/spec/functional/8000/en_8504_spec.rb +10 -13
- data/spec/functional/8000/en_8505_spec.rb +10 -13
- data/spec/functional/8000/en_8509_spec.rb +7 -10
- data/spec/functional/8000/en_8519_spec.rb +10 -13
- data/spec/functional/8000/en_8523_spec.rb +7 -10
- data/spec/functional/8000/en_8525_spec.rb +10 -13
- data/spec/functional/8000/en_8526_spec.rb +10 -13
- data/spec/functional/8000/en_8536_spec.rb +7 -10
- data/spec/functional/8000/en_8537_spec.rb +7 -10
- data/spec/functional/8000/en_8580_spec.rb +7 -10
- data/spec/functional/8000/en_8581_spec.rb +7 -10
- data/spec/functional/A/en_A107_spec.rb +9 -14
- data/spec/functional/B/en_B2185_spec.rb +7 -9
- data/spec/functional/B/en_B3010_spec.rb +7 -9
- data/spec/functional/B/en_B3076_spec.rb +7 -10
- data/spec/functional/B/en_B3080_spec.rb +7 -10
- data/spec/functional/B/en_B3081_spec.rb +7 -10
- data/spec/functional/B/en_B3200_spec.rb +7 -10
- data/spec/functional/B/en_B3225_spec.rb +7 -10
- data/spec/functional/B/en_B3226_spec.rb +7 -10
- data/spec/functional/B/en_B3227_spec.rb +7 -10
- data/spec/functional/B/en_B3251_spec.rb +7 -10
- data/spec/functional/B/en_B5011_spec.rb +7 -9
- data/spec/functional/B/en_B5013_spec.rb +7 -9
- data/spec/functional/B/en_B5014_spec.rb +7 -9
- data/spec/functional/B/en_B5016_spec.rb +7 -9
- data/spec/functional/D/en_D105N_spec.rb +16 -19
- data/spec/functional/D/en_D200_spec.rb +7 -10
- data/spec/functional/F/en_F031_spec.rb +11 -15
- data/spec/functional/G/en_G2001_spec.rb +8 -9
- data/spec/functional/G/en_G2514_spec.rb +9 -11
- data/spec/functional/G/en_G2516_spec.rb +9 -11
- data/spec/functional/G/en_G2602_spec.rb +8 -9
- data/spec/functional/G/en_G2603_spec.rb +10 -11
- data/spec/functional/L/en_L000_spec.rb +1 -1
- data/spec/functional/P/en_P213E_spec.rb +8 -11
- data/spec/functional/P/en_P213H_spec.rb +8 -11
- data/spec/functional/P/en_P213W_spec.rb +8 -11
- data/spec/functional/P/en_P400_spec.rb +5 -8
- data/spec/functional/T/en_T2000_spec.rb +9 -14
- data/spec/functional/V/en_V000_spec.rb +8 -10
- data/spec/functional/Y/en_Y000_spec.rb +10 -12
- data/spec/functional/experian_spec.rb +11 -14
- data/spec/spec_helper.rb +2 -2
- metadata +5 -3
@@ -1,22 +1,19 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary 0110p' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
10
|
-
it { expect(
|
11
|
-
it { expect(
|
5
|
+
it { expect(Experian::DataDictionary.lookup('0110p', 'P')).to eq('Primary Decision Maker') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('0110p', 'E')).to eq('Elderly Parent') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('0110p', 'D')).to eq('Deceased') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('0110p', 'Y')).to eq('Young Adult') }
|
9
|
+
it { expect(Experian::DataDictionary.lookup('0110p', 'O')).to eq('Other or blank') }
|
10
|
+
it { expect(Experian::DataDictionary.lookup('0110p', ' ')).to eq('Other or blank') }
|
12
11
|
end
|
13
12
|
|
14
|
-
|
15
13
|
context 'invalid lookup' do
|
16
|
-
it { expect(
|
17
|
-
it { expect(
|
18
|
-
it { expect(
|
19
|
-
it { expect(
|
14
|
+
it { expect(Experian::DataDictionary.lookup('0110p', 'F')).to be_nil }
|
15
|
+
it { expect(Experian::DataDictionary.lookup('0110p', 'PE')).to be_nil }
|
16
|
+
it { expect(Experian::DataDictionary.lookup('0110p', 'GG')).to be_nil }
|
17
|
+
it { expect(Experian::DataDictionary.lookup('0110p', 'DOG')).to be_nil }
|
20
18
|
end
|
21
|
-
|
22
|
-
end
|
19
|
+
end
|
@@ -1,19 +1,16 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary 0112' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
5
|
+
it { expect(Experian::DataDictionary.lookup('0112', 'D')).to eq('Deceased Indicator') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('0112', ' ')).to eq('Unknown') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('0112', 'blank')).to eq('Unknown') }
|
9
8
|
end
|
10
9
|
|
11
|
-
|
12
10
|
context 'invalid lookup' do
|
13
|
-
it { expect(
|
14
|
-
it { expect(
|
15
|
-
it { expect(
|
16
|
-
it { expect(
|
11
|
+
it { expect(Experian::DataDictionary.lookup('0112', 'F')).to be_nil }
|
12
|
+
it { expect(Experian::DataDictionary.lookup('0112', 'PE')).to be_nil }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('0112', 'GG')).to be_nil }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('0112', 'DOG')).to be_nil }
|
17
15
|
end
|
18
|
-
|
19
16
|
end
|
@@ -1,25 +1,21 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary 0113a' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
10
|
-
it { expect(
|
11
|
-
it { expect(
|
12
|
-
it { expect(
|
13
|
-
it { expect(
|
14
|
-
|
5
|
+
it { expect(Experian::DataDictionary.lookup('0113a', 'H')).to eq('Homeowner') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('0113a', '9')).to eq('Extremely Likely') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('0113a', '8')).to eq('Highly Likely') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('0113a', '7')).to eq('Likely') }
|
9
|
+
it { expect(Experian::DataDictionary.lookup('0113a', 'R')).to eq('Renter') }
|
10
|
+
it { expect(Experian::DataDictionary.lookup('0113a', 'T')).to eq('Probable Renter') }
|
11
|
+
it { expect(Experian::DataDictionary.lookup('0113a', 'U')).to eq('Unknown') }
|
12
|
+
it { expect(Experian::DataDictionary.lookup('0113a', ' ')).to eq('Unknown') }
|
15
13
|
end
|
16
14
|
|
17
|
-
|
18
15
|
context 'invalid lookup' do
|
19
|
-
it { expect(
|
20
|
-
it { expect(
|
21
|
-
it { expect(
|
22
|
-
it { expect(
|
16
|
+
it { expect(Experian::DataDictionary.lookup('0113a', 'F')).to be_nil }
|
17
|
+
it { expect(Experian::DataDictionary.lookup('0113a', 'HE')).to be_nil }
|
18
|
+
it { expect(Experian::DataDictionary.lookup('0113a', 'GG')).to be_nil }
|
19
|
+
it { expect(Experian::DataDictionary.lookup('0113a', 'DOG')).to be_nil }
|
23
20
|
end
|
24
|
-
|
25
21
|
end
|
@@ -1,23 +1,19 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary 0118' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
10
|
-
it { expect(
|
11
|
-
it { expect(
|
12
|
-
|
5
|
+
it { expect(Experian::DataDictionary.lookup('0118', 'S')).to eq('Single Family') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('0118', 'A')).to eq('Multi-Family & Condominiums') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('0118', 'M')).to eq('Marginal Multi-Family') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('0118', 'P')).to eq('Post Office Box') }
|
9
|
+
it { expect(Experian::DataDictionary.lookup('0118', 'U')).to eq('Unknown') }
|
10
|
+
it { expect(Experian::DataDictionary.lookup('0118', ' ')).to eq('Unknown') }
|
13
11
|
end
|
14
12
|
|
15
|
-
|
16
13
|
context 'invalid lookup' do
|
17
|
-
it { expect(
|
18
|
-
it { expect(
|
19
|
-
it { expect(
|
20
|
-
it { expect(
|
14
|
+
it { expect(Experian::DataDictionary.lookup('0118', 'F')).to be_nil }
|
15
|
+
it { expect(Experian::DataDictionary.lookup('0118', 'HE')).to be_nil }
|
16
|
+
it { expect(Experian::DataDictionary.lookup('0118', 'GG')).to be_nil }
|
17
|
+
it { expect(Experian::DataDictionary.lookup('0118', 'DOG')).to be_nil }
|
21
18
|
end
|
22
|
-
|
23
|
-
end
|
19
|
+
end
|
@@ -1,19 +1,16 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary 0119' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
10
|
-
it { expect(
|
5
|
+
it { expect(Experian::DataDictionary.lookup('0119', '0')).to eq('Less than a year') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('0119', '00')).to eq('Less than a year') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('0119', '9')).to eq('9 years') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('0119', '99')).to eq('99 years') }
|
9
|
+
it { expect(Experian::DataDictionary.lookup('0119', 22)).to eq('22 years') }
|
11
10
|
end
|
12
11
|
|
13
|
-
|
14
12
|
context 'invalid lookup' do
|
15
|
-
it { expect(
|
16
|
-
it { expect(
|
13
|
+
it { expect(Experian::DataDictionary.lookup('0119', '')).to be_nil }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('0119', 'D')).to be_nil }
|
17
15
|
end
|
18
|
-
|
19
16
|
end
|
@@ -1,21 +1,17 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary 0130' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
|
5
|
+
it { expect(Experian::DataDictionary.lookup('0130', 'Y')).to eq('Yes') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('0130', 'U')).to eq('Unknown') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('0130', ' ')).to eq('Unknown') }
|
10
8
|
end
|
11
9
|
|
12
|
-
|
13
10
|
context 'invalid lookup' do
|
14
|
-
it { expect(
|
15
|
-
it { expect(
|
16
|
-
it { expect(
|
17
|
-
it { expect(
|
18
|
-
it { expect(
|
11
|
+
it { expect(Experian::DataDictionary.lookup('0130', '0')).to be_nil }
|
12
|
+
it { expect(Experian::DataDictionary.lookup('0130', 'F')).to be_nil }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('0130', 'HE')).to be_nil }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('0130', 'GG')).to be_nil }
|
15
|
+
it { expect(Experian::DataDictionary.lookup('0130', 'DOG')).to be_nil }
|
19
16
|
end
|
20
|
-
|
21
17
|
end
|
@@ -1,22 +1,18 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary 0131' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
10
|
-
|
5
|
+
it { expect(Experian::DataDictionary.lookup('0131', 'Y')).to eq('Yes') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('0131', 'M')).to eq('Multi-Buyer (purchased from multiple mail order companies)') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('0131', 'U')).to eq('Unknown') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('0131', ' ')).to eq('Unknown') }
|
11
9
|
end
|
12
10
|
|
13
|
-
|
14
11
|
context 'invalid lookup' do
|
15
|
-
it { expect(
|
16
|
-
it { expect(
|
17
|
-
it { expect(
|
18
|
-
it { expect(
|
19
|
-
it { expect(
|
12
|
+
it { expect(Experian::DataDictionary.lookup('0131', '0')).to be_nil }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('0131', 'F')).to be_nil }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('0131', 'HE')).to be_nil }
|
15
|
+
it { expect(Experian::DataDictionary.lookup('0131', 'GG')).to be_nil }
|
16
|
+
it { expect(Experian::DataDictionary.lookup('0131', 'DOG')).to be_nil }
|
20
17
|
end
|
21
|
-
|
22
18
|
end
|
@@ -1,18 +1,14 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary 0132a' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
5
|
+
it { expect(Experian::DataDictionary.lookup('0132a', '000')).to eq('000') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('0132a', '035')).to eq('035') }
|
8
7
|
# it { expect( Experian::DataDictionary.lookup('0132a', 35) ).to eq('35') }
|
9
8
|
# it { expect( Experian::DataDictionary.lookup('0132a','a') ).to eq('a') }
|
10
|
-
|
11
9
|
end
|
12
10
|
|
13
|
-
|
14
11
|
context 'invalid lookup' do
|
15
|
-
it { expect(
|
12
|
+
it { expect(Experian::DataDictionary.lookup('0132a', 'aa')).to eq('Unknown') }
|
16
13
|
end
|
17
|
-
|
18
|
-
end
|
14
|
+
end
|
@@ -1,16 +1,12 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary 0133' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
|
5
|
+
it { expect(Experian::DataDictionary.lookup('0133', 'Y')).to eq('Yes') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('0133', ' ')).to eq('Unknown') }
|
9
7
|
end
|
10
8
|
|
11
|
-
|
12
9
|
context 'invalid lookup' do
|
13
|
-
it { expect(
|
10
|
+
it { expect(Experian::DataDictionary.lookup('0133', '0')).to be_nil }
|
14
11
|
end
|
15
|
-
|
16
|
-
end
|
12
|
+
end
|
@@ -1,27 +1,23 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary 0134' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
10
|
-
it { expect(
|
11
|
-
it { expect(
|
12
|
-
it { expect(
|
13
|
-
it { expect(
|
14
|
-
it { expect(
|
15
|
-
it { expect(
|
16
|
-
it { expect(
|
17
|
-
|
5
|
+
it { expect(Experian::DataDictionary.lookup('0134', '1')).to eq('1 Response') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('0134', '2')).to eq('2 Responses') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('0134', '3')).to eq('3 Responses') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('0134', '4')).to eq('4 Responses') }
|
9
|
+
it { expect(Experian::DataDictionary.lookup('0134', '5')).to eq('5 Responses') }
|
10
|
+
it { expect(Experian::DataDictionary.lookup('0134', '6')).to eq('6 Responses') }
|
11
|
+
it { expect(Experian::DataDictionary.lookup('0134', '7')).to eq('7 Responses') }
|
12
|
+
it { expect(Experian::DataDictionary.lookup('0134', '8')).to eq('8 Responses') }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('0134', '9')).to eq('9 Responses') }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('0134', '0')).to eq('0 Responses') }
|
15
|
+
it { expect(Experian::DataDictionary.lookup('0134', ' ')).to eq('Unknown') }
|
18
16
|
end
|
19
17
|
|
20
|
-
|
21
18
|
context 'invalid lookup' do
|
22
|
-
it { expect(
|
23
|
-
it { expect(
|
24
|
-
it { expect(
|
19
|
+
it { expect(Experian::DataDictionary.lookup('0134', '10')).to eq('Unknown') }
|
20
|
+
it { expect(Experian::DataDictionary.lookup('0134', '21')).to eq('Unknown') }
|
21
|
+
it { expect(Experian::DataDictionary.lookup('0134', '423')).to eq('Unknown') }
|
25
22
|
end
|
26
|
-
|
27
|
-
end
|
23
|
+
end
|
@@ -1,27 +1,23 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary 0135' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
10
|
-
it { expect(
|
11
|
-
it { expect(
|
12
|
-
it { expect(
|
13
|
-
it { expect(
|
14
|
-
it { expect(
|
15
|
-
it { expect(
|
16
|
-
it { expect(
|
17
|
-
|
5
|
+
it { expect(Experian::DataDictionary.lookup('0135', '1')).to eq('1 Response') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('0135', '2')).to eq('2 Responses') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('0135', '3')).to eq('3 Responses') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('0135', '4')).to eq('4 Responses') }
|
9
|
+
it { expect(Experian::DataDictionary.lookup('0135', '5')).to eq('5 Responses') }
|
10
|
+
it { expect(Experian::DataDictionary.lookup('0135', '6')).to eq('6 Responses') }
|
11
|
+
it { expect(Experian::DataDictionary.lookup('0135', '7')).to eq('7 Responses') }
|
12
|
+
it { expect(Experian::DataDictionary.lookup('0135', '8')).to eq('8 Responses') }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('0135', '9')).to eq('9 Responses') }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('0135', '0')).to eq('0 Responses') }
|
15
|
+
it { expect(Experian::DataDictionary.lookup('0135', ' ')).to eq('Unknown') }
|
18
16
|
end
|
19
17
|
|
20
|
-
|
21
18
|
context 'invalid lookup' do
|
22
|
-
it { expect(
|
23
|
-
it { expect(
|
24
|
-
it { expect(
|
19
|
+
it { expect(Experian::DataDictionary.lookup('0135', '10')).to eq('Unknown') }
|
20
|
+
it { expect(Experian::DataDictionary.lookup('0135', '21')).to eq('Unknown') }
|
21
|
+
it { expect(Experian::DataDictionary.lookup('0135', '423')).to eq('Unknown') }
|
25
22
|
end
|
26
|
-
|
27
|
-
end
|
23
|
+
end
|
@@ -1,27 +1,23 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary 0136' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
10
|
-
it { expect(
|
11
|
-
it { expect(
|
12
|
-
it { expect(
|
13
|
-
it { expect(
|
14
|
-
it { expect(
|
15
|
-
it { expect(
|
16
|
-
it { expect(
|
17
|
-
|
5
|
+
it { expect(Experian::DataDictionary.lookup('0136', '1')).to eq('1 Response') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('0136', '2')).to eq('2 Responses') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('0136', '3')).to eq('3 Responses') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('0136', '4')).to eq('4 Responses') }
|
9
|
+
it { expect(Experian::DataDictionary.lookup('0136', '5')).to eq('5 Responses') }
|
10
|
+
it { expect(Experian::DataDictionary.lookup('0136', '6')).to eq('6 Responses') }
|
11
|
+
it { expect(Experian::DataDictionary.lookup('0136', '7')).to eq('7 Responses') }
|
12
|
+
it { expect(Experian::DataDictionary.lookup('0136', '8')).to eq('8 Responses') }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('0136', '9')).to eq('9 Responses') }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('0136', '0')).to eq('0 Responses') }
|
15
|
+
it { expect(Experian::DataDictionary.lookup('0136', ' ')).to eq('Unknown') }
|
18
16
|
end
|
19
17
|
|
20
|
-
|
21
18
|
context 'invalid lookup' do
|
22
|
-
it { expect(
|
23
|
-
it { expect(
|
24
|
-
it { expect(
|
19
|
+
it { expect(Experian::DataDictionary.lookup('0136', '10')).to eq('Unknown') }
|
20
|
+
it { expect(Experian::DataDictionary.lookup('0136', '21')).to eq('Unknown') }
|
21
|
+
it { expect(Experian::DataDictionary.lookup('0136', '423')).to eq('Unknown') }
|
25
22
|
end
|
26
|
-
|
27
|
-
end
|
23
|
+
end
|
@@ -1,27 +1,23 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary 0137' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
10
|
-
it { expect(
|
11
|
-
it { expect(
|
12
|
-
it { expect(
|
13
|
-
it { expect(
|
14
|
-
it { expect(
|
15
|
-
it { expect(
|
16
|
-
it { expect(
|
17
|
-
|
5
|
+
it { expect(Experian::DataDictionary.lookup('0137', '1')).to eq('1 Response') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('0137', '2')).to eq('2 Responses') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('0137', '3')).to eq('3 Responses') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('0137', '4')).to eq('4 Responses') }
|
9
|
+
it { expect(Experian::DataDictionary.lookup('0137', '5')).to eq('5 Responses') }
|
10
|
+
it { expect(Experian::DataDictionary.lookup('0137', '6')).to eq('6 Responses') }
|
11
|
+
it { expect(Experian::DataDictionary.lookup('0137', '7')).to eq('7 Responses') }
|
12
|
+
it { expect(Experian::DataDictionary.lookup('0137', '8')).to eq('8 Responses') }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('0137', '9')).to eq('9 Responses') }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('0137', '0')).to eq('0 Responses') }
|
15
|
+
it { expect(Experian::DataDictionary.lookup('0137', ' ')).to eq('Unknown') }
|
18
16
|
end
|
19
17
|
|
20
|
-
|
21
18
|
context 'invalid lookup' do
|
22
|
-
it { expect(
|
23
|
-
it { expect(
|
24
|
-
it { expect(
|
19
|
+
it { expect(Experian::DataDictionary.lookup('0137', '10')).to eq('Unknown') }
|
20
|
+
it { expect(Experian::DataDictionary.lookup('0137', '21')).to eq('Unknown') }
|
21
|
+
it { expect(Experian::DataDictionary.lookup('0137', '423')).to eq('Unknown') }
|
25
22
|
end
|
26
|
-
|
27
23
|
end
|