spec/dentaku_spec.rb in dentaku-0.1.0 vs spec/dentaku_spec.rb in dentaku-0.1.1
- old
+ new
@@ -1,11 +1,11 @@
require 'dentaku'
describe Dentaku do
it 'should evaulate an expression' do
- Dentaku['5+3'].should eql(8)
+ Dentaku('5+3').should eql(8)
end
it 'should bind values to variables' do
- Dentaku['oranges > 7', {:oranges => 10}].should be_true
+ Dentaku('oranges > 7', {:oranges => 10}).should be_true
end
end