summaryrefslogtreecommitdiff
path: root/spec/unit
diff options
context:
space:
mode:
authorstephen <stephen@puppetlabs.com>2013-01-03 14:02:58 +0000
committerJeff McCune <jeff@puppetlabs.com>2013-01-03 13:37:55 -0800
commitb86f5dc1293ad431581afbb8f294560f3cf34d43 (patch)
tree32c39211e131e76f0712d09d01117f7af0ef97ff /spec/unit
parent190b9438c58eab2322bdf216be1aaae109d14072 (diff)
Add test/validation for is_integer if created from an arithmetical operation
Diffstat (limited to 'spec/unit')
-rw-r--r--spec/unit/puppet/parser/functions/is_integer_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/unit/puppet/parser/functions/is_integer_spec.rb b/spec/unit/puppet/parser/functions/is_integer_spec.rb
index 5afbba4..4335795 100644
--- a/spec/unit/puppet/parser/functions/is_integer_spec.rb
+++ b/spec/unit/puppet/parser/functions/is_integer_spec.rb
@@ -26,4 +26,9 @@ describe "the is_integer function" do
result = scope.function_is_integer(["asdf"])
result.should(eq(false))
end
+
+ it "should return true if an integer is created from an arithmetical operation" do
+ result = scope.function_is_integer([3*2])
+ result.should(eq(true))
+ end
end