summaryrefslogtreecommitdiff
path: root/spec/unit/parser/functions/num2bool_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/parser/functions/num2bool_spec.rb')
-rw-r--r--spec/unit/parser/functions/num2bool_spec.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/unit/parser/functions/num2bool_spec.rb b/spec/unit/parser/functions/num2bool_spec.rb
index 2f6435d..6585273 100644
--- a/spec/unit/parser/functions/num2bool_spec.rb
+++ b/spec/unit/parser/functions/num2bool_spec.rb
@@ -20,7 +20,12 @@ describe "the num2bool function" do
it "should return true if 1" do
result = @scope.function_num2bool(["1"])
- result.should(eq(true))
+ result.should(be_true)
+ end
+
+ it "should return false if 0" do
+ result = @scope.function_num2bool(["0"])
+ result.should(be_false)
end
end