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,27 +1,23 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary 0138' 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('0138', '1')).to eq('1 Response') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('0138', '2')).to eq('2 Responses') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('0138', '3')).to eq('3 Responses') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('0138', '4')).to eq('4 Responses') }
|
9
|
+
it { expect(Experian::DataDictionary.lookup('0138', '5')).to eq('5 Responses') }
|
10
|
+
it { expect(Experian::DataDictionary.lookup('0138', '6')).to eq('6 Responses') }
|
11
|
+
it { expect(Experian::DataDictionary.lookup('0138', '7')).to eq('7 Responses') }
|
12
|
+
it { expect(Experian::DataDictionary.lookup('0138', '8')).to eq('8 Responses') }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('0138', '9')).to eq('9 Responses') }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('0138', '0')).to eq('0 Responses') }
|
15
|
+
it { expect(Experian::DataDictionary.lookup('0138', ' ')).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('0138', '10')).to eq('Unknown') }
|
20
|
+
it { expect(Experian::DataDictionary.lookup('0138', '21')).to eq('Unknown') }
|
21
|
+
it { expect(Experian::DataDictionary.lookup('0138', '423')).to eq('Unknown') }
|
25
22
|
end
|
26
|
-
|
27
23
|
end
|
@@ -1,27 +1,23 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary 0139' 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('0139', '1')).to eq('1 Response') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('0139', '2')).to eq('2 Responses') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('0139', '3')).to eq('3 Responses') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('0139', '4')).to eq('4 Responses') }
|
9
|
+
it { expect(Experian::DataDictionary.lookup('0139', '5')).to eq('5 Responses') }
|
10
|
+
it { expect(Experian::DataDictionary.lookup('0139', '6')).to eq('6 Responses') }
|
11
|
+
it { expect(Experian::DataDictionary.lookup('0139', '7')).to eq('7 Responses') }
|
12
|
+
it { expect(Experian::DataDictionary.lookup('0139', '8')).to eq('8 Responses') }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('0139', '9')).to eq('9 Responses') }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('0139', '0')).to eq('0 Responses') }
|
15
|
+
it { expect(Experian::DataDictionary.lookup('0139', ' ')).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('0139', '10')).to eq('Unknown') }
|
20
|
+
it { expect(Experian::DataDictionary.lookup('0139', '21')).to eq('Unknown') }
|
21
|
+
it { expect(Experian::DataDictionary.lookup('0139', '423')).to eq('Unknown') }
|
25
22
|
end
|
26
|
-
|
27
23
|
end
|
@@ -1,27 +1,23 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary 0140' 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('0140', '1')).to eq('1 Response') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('0140', '2')).to eq('2 Responses') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('0140', '3')).to eq('3 Responses') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('0140', '4')).to eq('4 Responses') }
|
9
|
+
it { expect(Experian::DataDictionary.lookup('0140', '5')).to eq('5 Responses') }
|
10
|
+
it { expect(Experian::DataDictionary.lookup('0140', '6')).to eq('6 Responses') }
|
11
|
+
it { expect(Experian::DataDictionary.lookup('0140', '7')).to eq('7 Responses') }
|
12
|
+
it { expect(Experian::DataDictionary.lookup('0140', '8')).to eq('8 Responses') }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('0140', '9')).to eq('9 Responses') }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('0140', '0')).to eq('0 Responses') }
|
15
|
+
it { expect(Experian::DataDictionary.lookup('0140', ' ')).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('0140', '10')).to eq('Unknown') }
|
20
|
+
it { expect(Experian::DataDictionary.lookup('0140', '21')).to eq('Unknown') }
|
21
|
+
it { expect(Experian::DataDictionary.lookup('0140', '423')).to eq('Unknown') }
|
25
22
|
end
|
26
|
-
|
27
23
|
end
|
@@ -1,27 +1,23 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary 0141' 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('0141', '1')).to eq('1 Response') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('0141', '2')).to eq('2 Responses') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('0141', '3')).to eq('3 Responses') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('0141', '4')).to eq('4 Responses') }
|
9
|
+
it { expect(Experian::DataDictionary.lookup('0141', '5')).to eq('5 Responses') }
|
10
|
+
it { expect(Experian::DataDictionary.lookup('0141', '6')).to eq('6 Responses') }
|
11
|
+
it { expect(Experian::DataDictionary.lookup('0141', '7')).to eq('7 Responses') }
|
12
|
+
it { expect(Experian::DataDictionary.lookup('0141', '8')).to eq('8 Responses') }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('0141', '9')).to eq('9 Responses') }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('0141', '0')).to eq('0 Responses') }
|
15
|
+
it { expect(Experian::DataDictionary.lookup('0141', ' ')).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('0141', '10')).to eq('Unknown') }
|
20
|
+
it { expect(Experian::DataDictionary.lookup('0141', '21')).to eq('Unknown') }
|
21
|
+
it { expect(Experian::DataDictionary.lookup('0141', '423')).to eq('Unknown') }
|
25
22
|
end
|
26
|
-
|
27
23
|
end
|
@@ -1,19 +1,15 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary 0155' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
|
5
|
+
it { expect(Experian::DataDictionary.lookup('0155', 'Y')).to eq('Yes') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('0155', 'U')).to eq('Unknown') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('0155', ' ')).to eq('Unknown') }
|
10
8
|
end
|
11
9
|
|
12
|
-
|
13
10
|
context 'invalid lookup' do
|
14
|
-
it { expect(
|
15
|
-
it { expect(
|
16
|
-
it { expect(
|
11
|
+
it { expect(Experian::DataDictionary.lookup('0155', '9')).to be_nil }
|
12
|
+
it { expect(Experian::DataDictionary.lookup('0155', 'A')).to be_nil }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('0155', 'R')).to be_nil }
|
17
14
|
end
|
18
|
-
|
19
|
-
end
|
15
|
+
end
|
@@ -1,19 +1,15 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary 0156' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
|
5
|
+
it { expect(Experian::DataDictionary.lookup('0156', 'Y')).to eq('Yes') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('0156', 'U')).to eq('Unknown') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('0156', ' ')).to eq('Unknown') }
|
10
8
|
end
|
11
9
|
|
12
|
-
|
13
10
|
context 'invalid lookup' do
|
14
|
-
it { expect(
|
15
|
-
it { expect(
|
16
|
-
it { expect(
|
11
|
+
it { expect(Experian::DataDictionary.lookup('0156', '9')).to be_nil }
|
12
|
+
it { expect(Experian::DataDictionary.lookup('0156', 'A')).to be_nil }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('0156', 'R')).to be_nil }
|
17
14
|
end
|
18
|
-
|
19
|
-
end
|
15
|
+
end
|
@@ -1,22 +1,17 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary 0160a' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
10
|
-
it { expect(
|
11
|
-
|
5
|
+
it { expect(Experian::DataDictionary.lookup('0160a', 'K01')).to eq('Professional/Technical - Known') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('0160a', 'I06')).to eq('Retired - Inferred') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('0160a', 'I04')).to eq('Blue Collar - Inferred') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('0160a', 'I02')).to eq('Sales/Service - Inferred') }
|
9
|
+
it { expect(Experian::DataDictionary.lookup('0160a', ' ')).to eq('Unknown') }
|
12
10
|
end
|
13
11
|
|
14
|
-
|
15
12
|
context 'invalid lookup' do
|
16
|
-
it { expect(
|
17
|
-
it { expect(
|
18
|
-
it { expect(
|
13
|
+
it { expect(Experian::DataDictionary.lookup('0160a', '9')).to eq('Unknown') }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('0160a', 'A')).to eq('Unknown') }
|
15
|
+
it { expect(Experian::DataDictionary.lookup('0160a', 'R')).to eq('Unknown') }
|
19
16
|
end
|
20
|
-
|
21
17
|
end
|
22
|
-
|
@@ -1,21 +1,17 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary 0161' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
10
|
-
it { expect(
|
11
|
-
|
5
|
+
it { expect(Experian::DataDictionary.lookup('0161', 'K1')).to eq('Management/Business & Financial Operations - Known') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('0161', 'I6')).to eq('Blue Collar - Inferred') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('0161', 'I4')).to eq('Sales - Inferred') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('0161', 'I2')).to eq('Technical: Computers/Math & Architect/Engineering - Inferred') }
|
9
|
+
it { expect(Experian::DataDictionary.lookup('0161', ' ')).to eq('Unknown') }
|
12
10
|
end
|
13
11
|
|
14
|
-
|
15
12
|
context 'invalid lookup' do
|
16
|
-
it { expect(
|
17
|
-
it { expect(
|
18
|
-
it { expect(
|
13
|
+
it { expect(Experian::DataDictionary.lookup('0161', '9')).to eq('Unknown') }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('0161', 'A')).to eq('Unknown') }
|
15
|
+
it { expect(Experian::DataDictionary.lookup('0161', 'R')).to eq('Unknown') }
|
19
16
|
end
|
20
|
-
|
21
17
|
end
|
@@ -1,19 +1,15 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary 0162' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
|
5
|
+
it { expect(Experian::DataDictionary.lookup('0162', '15')).to eq('Less Than High School Diploma - Likely') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('0162', '53')).to eq('Bachelor Degree - Extremely Likely') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('0162', ' ')).to eq('Unknown') }
|
10
8
|
end
|
11
9
|
|
12
|
-
|
13
10
|
context 'invalid lookup' do
|
14
|
-
it { expect(
|
15
|
-
it { expect(
|
16
|
-
it { expect(
|
11
|
+
it { expect(Experian::DataDictionary.lookup('0162', '9')).to eq('Unknown') }
|
12
|
+
it { expect(Experian::DataDictionary.lookup('0162', 'A')).to eq('Unknown') }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('0162', 'R')).to eq('Unknown') }
|
17
14
|
end
|
18
|
-
|
19
|
-
end
|
15
|
+
end
|
@@ -1,22 +1,17 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary 0164' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
10
|
-
it { expect(
|
11
|
-
|
12
|
-
|
5
|
+
it { expect(Experian::DataDictionary.lookup('0164', '1')).to eq('Unconnected & Unregistered') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('0164', '05')).to eq('Conservative Democrats') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('0164', '10')).to eq('Ultra Conservatives') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('0164', '06')).to eq('On-the-Fence Liberals') }
|
9
|
+
it { expect(Experian::DataDictionary.lookup('0164', ' ')).to eq('Unknown') }
|
13
10
|
end
|
14
11
|
|
15
|
-
|
16
12
|
context 'invalid lookup' do
|
17
|
-
it { expect(
|
18
|
-
it { expect(
|
19
|
-
it { expect(
|
13
|
+
it { expect(Experian::DataDictionary.lookup('0164', '20')).to eq('Unknown') }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('0164', 'A')).to eq('Unknown') }
|
15
|
+
it { expect(Experian::DataDictionary.lookup('0164', 'R')).to eq('Unknown') }
|
20
16
|
end
|
21
|
-
|
22
|
-
end
|
17
|
+
end
|
@@ -1,21 +1,16 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary 0174' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
10
|
-
|
11
|
-
|
5
|
+
it { expect(Experian::DataDictionary.lookup('0174', '1Y')).to eq('Confirmed Presence of Children') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('0174', '5N')).to eq('Inferred No Children Present') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('0174', '00')).to eq('Deceased and Child Only - primary decision maker is coded as deceased or no adult (18+) in household.') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('0174', ' ')).to eq('Unknown') }
|
12
9
|
end
|
13
10
|
|
14
|
-
|
15
11
|
context 'invalid lookup' do
|
16
|
-
it { expect(
|
17
|
-
it { expect(
|
18
|
-
it { expect(
|
12
|
+
it { expect(Experian::DataDictionary.lookup('0174', '20')).to be_nil }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('0174', 'A')).to be_nil }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('0174', 'R')).to be_nil }
|
19
15
|
end
|
20
|
-
|
21
|
-
end
|
16
|
+
end
|
@@ -1,21 +1,16 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary 0177' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
10
|
-
|
11
|
-
|
5
|
+
it { expect(Experian::DataDictionary.lookup('0177', '1Y')).to eq('Confirmed Presence of Children') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('0177', '5N')).to eq('Inferred No Children Present') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('0177', '00')).to be_nil }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('0177', ' ')).to eq('Unknown') }
|
12
9
|
end
|
13
10
|
|
14
|
-
|
15
11
|
context 'invalid lookup' do
|
16
|
-
it { expect(
|
17
|
-
it { expect(
|
18
|
-
it { expect(
|
12
|
+
it { expect(Experian::DataDictionary.lookup('0177', '20')).to be_nil }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('0177', 'A')).to be_nil }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('0177', 'R')).to be_nil }
|
19
15
|
end
|
20
|
-
|
21
16
|
end
|
@@ -1,21 +1,16 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary 0601' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
10
|
-
|
11
|
-
|
5
|
+
it { expect(Experian::DataDictionary.lookup('0601', '1')).to eq(1) }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('0601', '5558768')).to eq(5_558_768) }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('0601', '10000')).to eq(10_000) }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('0601', ' ')).to be_nil }
|
12
9
|
end
|
13
10
|
|
14
|
-
|
15
11
|
context 'invalid lookup' do
|
16
|
-
it { expect(
|
17
|
-
it { expect(
|
18
|
-
it { expect(
|
12
|
+
it { expect(Experian::DataDictionary.lookup('0601', 'TAA1')).to eq(1) }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('0601', 'A')).to be_nil }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('0601', 'R')).to be_nil }
|
19
15
|
end
|
20
|
-
|
21
16
|
end
|
@@ -1,21 +1,18 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary 0711' 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('0711', '1A')).to eq('1,000 - 9,999 - Extremely Likely') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('0711', '3P')).to eq('1,000,000 - + - Likely') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('0711', '3F')).to eq('80,000 - 99,999 - Likely') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('0711', '2N')).to eq('450,000 - 749,999 - Highly Likely') }
|
9
|
+
it { expect(Experian::DataDictionary.lookup('0711', ' ')).to eq('Unknown') }
|
11
10
|
end
|
12
11
|
|
13
|
-
|
14
12
|
context 'invalid lookup' do
|
15
|
-
it { expect(
|
16
|
-
it { expect(
|
17
|
-
it { expect(
|
18
|
-
it { expect(
|
13
|
+
it { expect(Experian::DataDictionary.lookup('0711', 'A')).to eq('Unknown') }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('0711', '1')).to eq('Unknown') }
|
15
|
+
it { expect(Experian::DataDictionary.lookup('0711', 'F')).to eq('Unknown') }
|
16
|
+
it { expect(Experian::DataDictionary.lookup('0711', '0')).to eq('Unknown') }
|
19
17
|
end
|
20
|
-
|
21
|
-
end
|
18
|
+
end
|