spec/dentaku_spec.rb in dentaku-1.2.4 vs spec/dentaku_spec.rb in dentaku-1.2.5
- old
+ new
@@ -4,10 +4,10 @@
it 'evaulates an expression' do
expect(Dentaku('5+3')).to eql(8)
end
it 'binds values to variables' do
- expect(Dentaku('oranges > 7', {:oranges => 10})).to be_truthy
+ expect(Dentaku('oranges > 7', oranges: 10)).to be_truthy
end
it 'evaulates a nested function' do
expect(Dentaku('roundup(roundup(3 * cherries) + raspberries)', cherries: 1.5, raspberries: 0.9)).to eql(6)
end