spec/ast/sum_spec.rb in dentaku-3.4.1 vs spec/ast/sum_spec.rb in dentaku-3.4.2

- old
+ new

@@ -33,10 +33,11 @@ it 'raises an error if no arguments are passed' do expect { calculator.evaluate!('SUM()') }.to raise_error(Dentaku::ArgumentError) end - it 'raises an error if an empty array is passed' do - expect { calculator.evaluate!('SUM(x)', x: []) }.to raise_error(Dentaku::ArgumentError) + it 'does not raise an error if an empty array is passed' do + result = calculator.evaluate!('SUM(x)', x: []) + expect(result).to eq(0) end end end