spec/calculator_spec.rb in dentaku-0.2.7 vs spec/calculator_spec.rb in dentaku-0.2.8
- old
+ new
@@ -76,8 +76,10 @@
it 'should include ROUND' do
calculator.evaluate('round(8.2)').should eq(8)
calculator.evaluate('round(8.8)').should eq(9)
calculator.evaluate('round(8.75, 1)').should eq(8.8)
+
+ calculator.evaluate('ROUND(apples * 0.93)', { :apples => 10 }).should eq(9)
end
end
end