spec/functional/0100/en_0119_spec.rb in experian-data-dictionary-1.4.4 vs spec/functional/0100/en_0119_spec.rb in experian-data-dictionary-1.4.5

- old
+ new

@@ -1,19 +1,16 @@ require File.join(Dir.pwd, 'spec', 'spec_helper') describe 'Experian::DataDictionary 0119' do - context 'valid lookup' do - it { expect( Experian::DataDictionary.lookup('0119','0') ).to eq('Less than a year') } - it { expect( Experian::DataDictionary.lookup('0119','00') ).to eq('Less than a year') } - it { expect( Experian::DataDictionary.lookup('0119', '9') ).to eq('9 years') } - it { expect( Experian::DataDictionary.lookup('0119', '99') ).to eq('99 years') } - it { expect( Experian::DataDictionary.lookup('0119', 22) ).to eq('22 years') } + it { expect(Experian::DataDictionary.lookup('0119', '0')).to eq('Less than a year') } + it { expect(Experian::DataDictionary.lookup('0119', '00')).to eq('Less than a year') } + it { expect(Experian::DataDictionary.lookup('0119', '9')).to eq('9 years') } + it { expect(Experian::DataDictionary.lookup('0119', '99')).to eq('99 years') } + it { expect(Experian::DataDictionary.lookup('0119', 22)).to eq('22 years') } end - context 'invalid lookup' do - it { expect( Experian::DataDictionary.lookup('0119','') ).to be_nil } - it { expect( Experian::DataDictionary.lookup('0119','D') ).to be_nil } + it { expect(Experian::DataDictionary.lookup('0119', '')).to be_nil } + it { expect(Experian::DataDictionary.lookup('0119', 'D')).to be_nil } end - end