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,19 +1,16 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary 8580' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
5
|
+
it { expect(Experian::DataDictionary.lookup('8580', 'Y1')).to eq('Living unit has self-reported being Active Military - Extremely Likely Active Military') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('8580', 'Y5')).to eq('Living unit has self-reported being Active Military - Likely Active Military') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('8580', 'Y3')).to eq('Living unit has self-reported being Active Military - Very Likely Active Military') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('8580', 'Y2')).to eq('Living unit has self-reported being Active Military - Highly Likely Active Military') }
|
10
9
|
end
|
11
10
|
|
12
|
-
|
13
11
|
context 'invalid lookup' do
|
14
|
-
it { expect(
|
15
|
-
it { expect(
|
16
|
-
it { expect(
|
12
|
+
it { expect(Experian::DataDictionary.lookup('8580', 'TAA1')).to eq('Unknown') }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('8580', 'A')).to eq('Unknown') }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('8580', 'R')).to eq('Unknown') }
|
17
15
|
end
|
18
|
-
|
19
16
|
end
|
@@ -1,19 +1,16 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary 8581' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
5
|
+
it { expect(Experian::DataDictionary.lookup('8581', 'Y1')).to eq('Living unit has self-reported being Inactive Military - Extremely Likely Inactive Military') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('8581', 'Y5')).to eq('Living unit has self-reported being Inactive Military - Likely Inactive Military') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('8581', 'Y3')).to eq('Living unit has self-reported being Inactive Military - Very Likely Inactive Military') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('8581', 'Y2')).to eq('Living unit has self-reported being Inactive Military - Highly Likely Inactive Military') }
|
10
9
|
end
|
11
10
|
|
12
|
-
|
13
11
|
context 'invalid lookup' do
|
14
|
-
it { expect(
|
15
|
-
it { expect(
|
16
|
-
it { expect(
|
12
|
+
it { expect(Experian::DataDictionary.lookup('8581', 'TAA1')).to eq('Unknown') }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('8581', 'A')).to eq('Unknown') }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('8581', 'R')).to eq('Unknown') }
|
17
15
|
end
|
18
|
-
|
19
16
|
end
|
@@ -1,24 +1,19 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary a107' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
5
|
# it { expect( Experian::DataDictionary.lookup('a107','') ).to eq('') }
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
10
|
-
it { expect(
|
11
|
-
it { expect(
|
12
|
-
it { expect(
|
13
|
-
|
14
|
-
|
6
|
+
it { expect(Experian::DataDictionary.lookup('a107', '1')).to eq('Extremely Likely') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('a107', '3')).to eq('Very Likely') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('a107', '8')).to eq('Highly Unlikely') }
|
9
|
+
it { expect(Experian::DataDictionary.lookup('a107', '9')).to eq('Extremely Unlikely') }
|
10
|
+
it { expect(Experian::DataDictionary.lookup('a107', '5')).to eq('Likely') }
|
11
|
+
it { expect(Experian::DataDictionary.lookup('a107', ' ')).to eq('Unknown') }
|
15
12
|
end
|
16
13
|
|
17
|
-
|
18
14
|
context 'invalid lookup' do
|
19
|
-
it { expect(
|
20
|
-
it { expect(
|
21
|
-
it { expect(
|
15
|
+
it { expect(Experian::DataDictionary.lookup('a107', 'A')).to be_nil }
|
16
|
+
it { expect(Experian::DataDictionary.lookup('a107', 'F')).to be_nil }
|
17
|
+
it { expect(Experian::DataDictionary.lookup('a107', '0')).to be_nil }
|
22
18
|
end
|
23
|
-
|
24
19
|
end
|
@@ -1,18 +1,16 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary b2185' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
5
|
# it { expect( Experian::DataDictionary.lookup('b2185','') ).to eq('') }
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
6
|
+
it { expect(Experian::DataDictionary.lookup('b2185', 'Y')).to eq('Yes') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('b2185', 'U')).to eq('Unknown') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('b2185', ' ')).to eq('Unknown') }
|
10
9
|
end
|
11
10
|
|
12
11
|
context 'invalid lookup' do
|
13
|
-
it { expect(
|
14
|
-
it { expect(
|
15
|
-
it { expect(
|
12
|
+
it { expect(Experian::DataDictionary.lookup('b2185', 'A')).to be_nil }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('b2185', 'F')).to be_nil }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('b2185', '0')).to be_nil }
|
16
15
|
end
|
17
|
-
|
18
|
-
end
|
16
|
+
end
|
@@ -1,18 +1,16 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary b3010' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
5
|
# it { expect( Experian::DataDictionary.lookup('b3010','') ).to eq('') }
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
6
|
+
it { expect(Experian::DataDictionary.lookup('b3010', 'Y')).to eq('Yes') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('b3010', 'U')).to eq('Unknown') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('b3010', ' ')).to eq('Unknown') }
|
10
9
|
end
|
11
10
|
|
12
11
|
context 'invalid lookup' do
|
13
|
-
it { expect(
|
14
|
-
it { expect(
|
15
|
-
it { expect(
|
12
|
+
it { expect(Experian::DataDictionary.lookup('b3010', 'A')).to be_nil }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('b3010', 'F')).to be_nil }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('b3010', '0')).to be_nil }
|
16
15
|
end
|
17
|
-
|
18
|
-
end
|
16
|
+
end
|
@@ -1,19 +1,16 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary B3076' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
5
|
+
it { expect(Experian::DataDictionary.lookup('B3076', 'Y')).to eq('Yes') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('B3076', '5')).to be_nil }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('B3076', ' ')).to eq('Unknown') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('B3076', '')).to eq('Unknown') }
|
10
9
|
end
|
11
10
|
|
12
|
-
|
13
11
|
context 'invalid lookup' do
|
14
|
-
it { expect(
|
15
|
-
it { expect(
|
16
|
-
it { expect(
|
12
|
+
it { expect(Experian::DataDictionary.lookup('B3076', 'TAA1')).to be_nil }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('B3076', 'A')).to be_nil }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('B3076', 'R')).to be_nil }
|
17
15
|
end
|
18
|
-
|
19
16
|
end
|
@@ -1,19 +1,16 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary B3080' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
5
|
+
it { expect(Experian::DataDictionary.lookup('B3080', 'Y')).to eq('Yes') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('B3080', '5')).to be_nil }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('B3080', ' ')).to eq('Unknown') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('B3080', '')).to eq('Unknown') }
|
10
9
|
end
|
11
10
|
|
12
|
-
|
13
11
|
context 'invalid lookup' do
|
14
|
-
it { expect(
|
15
|
-
it { expect(
|
16
|
-
it { expect(
|
12
|
+
it { expect(Experian::DataDictionary.lookup('B3080', 'TAA1')).to be_nil }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('B3080', 'A')).to be_nil }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('B3080', 'R')).to be_nil }
|
17
15
|
end
|
18
|
-
|
19
16
|
end
|
@@ -1,19 +1,16 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary B3081' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
5
|
+
it { expect(Experian::DataDictionary.lookup('B3081', 'Y')).to eq('Yes') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('B3081', '5')).to be_nil }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('B3081', ' ')).to eq('Unknown') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('B3081', '')).to eq('Unknown') }
|
10
9
|
end
|
11
10
|
|
12
|
-
|
13
11
|
context 'invalid lookup' do
|
14
|
-
it { expect(
|
15
|
-
it { expect(
|
16
|
-
it { expect(
|
12
|
+
it { expect(Experian::DataDictionary.lookup('B3081', 'TAA1')).to be_nil }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('B3081', 'A')).to be_nil }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('B3081', 'R')).to be_nil }
|
17
15
|
end
|
18
|
-
|
19
16
|
end
|
@@ -1,19 +1,16 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary B3200' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
5
|
+
it { expect(Experian::DataDictionary.lookup('B3200', 'Y')).to eq('Yes') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('B3200', '5')).to be_nil }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('B3200', ' ')).to eq('Unknown') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('B3200', '')).to eq('Unknown') }
|
10
9
|
end
|
11
10
|
|
12
|
-
|
13
11
|
context 'invalid lookup' do
|
14
|
-
it { expect(
|
15
|
-
it { expect(
|
16
|
-
it { expect(
|
12
|
+
it { expect(Experian::DataDictionary.lookup('B3200', 'TAA1')).to be_nil }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('B3200', 'A')).to be_nil }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('B3200', 'R')).to be_nil }
|
17
15
|
end
|
18
|
-
|
19
16
|
end
|
@@ -1,19 +1,16 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary B3225' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
5
|
+
it { expect(Experian::DataDictionary.lookup('B3225', 'Y')).to eq('Yes') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('B3225', '5')).to be_nil }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('B3225', ' ')).to eq('Unknown') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('B3225', '')).to eq('Unknown') }
|
10
9
|
end
|
11
10
|
|
12
|
-
|
13
11
|
context 'invalid lookup' do
|
14
|
-
it { expect(
|
15
|
-
it { expect(
|
16
|
-
it { expect(
|
12
|
+
it { expect(Experian::DataDictionary.lookup('B3225', 'TAA1')).to be_nil }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('B3225', 'A')).to be_nil }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('B3225', 'R')).to be_nil }
|
17
15
|
end
|
18
|
-
|
19
16
|
end
|
@@ -1,19 +1,16 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary B3226' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
5
|
+
it { expect(Experian::DataDictionary.lookup('B3226', 'Y')).to eq('Yes') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('B3226', '5')).to be_nil }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('B3226', ' ')).to eq('Unknown') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('B3226', '')).to eq('Unknown') }
|
10
9
|
end
|
11
10
|
|
12
|
-
|
13
11
|
context 'invalid lookup' do
|
14
|
-
it { expect(
|
15
|
-
it { expect(
|
16
|
-
it { expect(
|
12
|
+
it { expect(Experian::DataDictionary.lookup('B3226', 'TAA1')).to be_nil }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('B3226', 'A')).to be_nil }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('B3226', 'R')).to be_nil }
|
17
15
|
end
|
18
|
-
|
19
16
|
end
|
@@ -1,19 +1,16 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary B3227' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
5
|
+
it { expect(Experian::DataDictionary.lookup('B3227', 'Y')).to eq('Yes') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('B3227', '5')).to be_nil }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('B3227', ' ')).to eq('Unknown') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('B3227', '')).to eq('Unknown') }
|
10
9
|
end
|
11
10
|
|
12
|
-
|
13
11
|
context 'invalid lookup' do
|
14
|
-
it { expect(
|
15
|
-
it { expect(
|
16
|
-
it { expect(
|
12
|
+
it { expect(Experian::DataDictionary.lookup('B3227', 'TAA1')).to be_nil }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('B3227', 'A')).to be_nil }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('B3227', 'R')).to be_nil }
|
17
15
|
end
|
18
|
-
|
19
16
|
end
|
@@ -1,19 +1,16 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary B3251' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
|
-
it { expect(
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
5
|
+
it { expect(Experian::DataDictionary.lookup('B3251', 'Y')).to eq('Yes') }
|
6
|
+
it { expect(Experian::DataDictionary.lookup('B3251', '5')).to be_nil }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('B3251', ' ')).to eq('Unknown') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('B3251', '')).to eq('Unknown') }
|
10
9
|
end
|
11
10
|
|
12
|
-
|
13
11
|
context 'invalid lookup' do
|
14
|
-
it { expect(
|
15
|
-
it { expect(
|
16
|
-
it { expect(
|
12
|
+
it { expect(Experian::DataDictionary.lookup('B3251', 'TAA1')).to be_nil }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('B3251', 'A')).to be_nil }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('B3251', 'R')).to be_nil }
|
17
15
|
end
|
18
|
-
|
19
16
|
end
|
@@ -1,18 +1,16 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary b5011' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
5
|
# it { expect( Experian::DataDictionary.lookup('b5011','') ).to eq('') }
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
6
|
+
it { expect(Experian::DataDictionary.lookup('b5011', 'Y')).to eq('Yes') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('b5011', 'U')).to eq('Unknown') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('b5011', ' ')).to eq('Unknown') }
|
10
9
|
end
|
11
10
|
|
12
11
|
context 'invalid lookup' do
|
13
|
-
it { expect(
|
14
|
-
it { expect(
|
15
|
-
it { expect(
|
12
|
+
it { expect(Experian::DataDictionary.lookup('b5011', 'A')).to be_nil }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('b5011', 'F')).to be_nil }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('b5011', '0')).to be_nil }
|
16
15
|
end
|
17
|
-
|
18
|
-
end
|
16
|
+
end
|
@@ -1,18 +1,16 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary b5013' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
5
|
# it { expect( Experian::DataDictionary.lookup('b5013','') ).to eq('') }
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
6
|
+
it { expect(Experian::DataDictionary.lookup('b5013', 'Y')).to eq('Yes') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('b5013', 'U')).to eq('Unknown') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('b5013', ' ')).to eq('Unknown') }
|
10
9
|
end
|
11
10
|
|
12
11
|
context 'invalid lookup' do
|
13
|
-
it { expect(
|
14
|
-
it { expect(
|
15
|
-
it { expect(
|
12
|
+
it { expect(Experian::DataDictionary.lookup('b5013', 'A')).to be_nil }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('b5013', 'F')).to be_nil }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('b5013', '0')).to be_nil }
|
16
15
|
end
|
17
|
-
|
18
|
-
end
|
16
|
+
end
|
@@ -1,18 +1,16 @@
|
|
1
1
|
require File.join(Dir.pwd, 'spec', 'spec_helper')
|
2
2
|
|
3
3
|
describe 'Experian::DataDictionary b5014' do
|
4
|
-
|
5
4
|
context 'valid lookup' do
|
6
5
|
# it { expect( Experian::DataDictionary.lookup('b5014','') ).to eq('') }
|
7
|
-
it { expect(
|
8
|
-
it { expect(
|
9
|
-
it { expect(
|
6
|
+
it { expect(Experian::DataDictionary.lookup('b5014', 'Y')).to eq('Yes') }
|
7
|
+
it { expect(Experian::DataDictionary.lookup('b5014', 'U')).to eq('Unknown') }
|
8
|
+
it { expect(Experian::DataDictionary.lookup('b5014', ' ')).to eq('Unknown') }
|
10
9
|
end
|
11
10
|
|
12
11
|
context 'invalid lookup' do
|
13
|
-
it { expect(
|
14
|
-
it { expect(
|
15
|
-
it { expect(
|
12
|
+
it { expect(Experian::DataDictionary.lookup('b5014', 'A')).to be_nil }
|
13
|
+
it { expect(Experian::DataDictionary.lookup('b5014', 'F')).to be_nil }
|
14
|
+
it { expect(Experian::DataDictionary.lookup('b5014', '0')).to be_nil }
|
16
15
|
end
|
17
|
-
|
18
|
-
end
|
16
|
+
end
|