spec/ast/sum_spec.rb in dentaku-3.3.4 vs spec/ast/sum_spec.rb in dentaku-3.4.0

- old
+ new

@@ -32,7 +32,11 @@ let(:calculator) { Dentaku::Calculator.new } 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) + end end end