spec/ast/function_spec.rb in dentaku-3.2.0 vs spec/ast/function_spec.rb in dentaku-3.2.1

- old
+ new

@@ -52,13 +52,13 @@ it 'casts a String to a BigDecimal without a leading zero' do expect(described_class.numeric('-.2')).to eq -0.2 end it 'raises an error if the value could not be cast to a Numeric' do - expect { described_class.numeric('flarble') }.to raise_error TypeError - expect { described_class.numeric('-') }.to raise_error TypeError - expect { described_class.numeric('') }.to raise_error TypeError - expect { described_class.numeric(nil) }.to raise_error TypeError - expect { described_class.numeric('7.') }.to raise_error TypeError - expect { described_class.numeric(true) }.to raise_error TypeError + expect { described_class.numeric('flarble') }.to raise_error Dentaku::ArgumentError + expect { described_class.numeric('-') }.to raise_error Dentaku::ArgumentError + expect { described_class.numeric('') }.to raise_error Dentaku::ArgumentError + expect { described_class.numeric(nil) }.to raise_error Dentaku::ArgumentError + expect { described_class.numeric('7.') }.to raise_error Dentaku::ArgumentError + expect { described_class.numeric(true) }.to raise_error Dentaku::ArgumentError end end