spec/models/data_grid_spec.rb in marty-14.0.0 vs spec/models/data_grid_spec.rb in marty-14.3.0
- old
+ new
@@ -639,11 +639,11 @@
)
expect(res).to eq [22, 'G1']
end
- it 'should treat nil as missing attr' do
+ it 'should not treat nil as missing attr' do
expect do
res = lookup_grid_helper('infinity',
'G1',
'fico' => 720,
'state' => 'NM',
@@ -657,17 +657,17 @@
'fico' => 720,
'ltv' => 80,
)
end.to raise_error(RuntimeError, /matches > 1/)
- expect do
- res = lookup_grid_helper('infinity',
- 'G1',
- 'fico' => 720,
- 'state' => nil,
- 'ltv' => 80,
- )
- end.to raise_error(RuntimeError, /matches > 1/)
+ res = lookup_grid_helper('infinity',
+ 'G1',
+ 'fico' => 720,
+ 'state' => nil,
+ 'ltv' => 80,
+ )
+
+ expect(res).to eq [22, 'G1']
end
it 'should handle string NULLS' do
res = lookup_grid_helper('infinity',
'G1_with_nulls',