summaryrefslogtreecommitdiff
path: root/spec/unit/parser/functions/is_integer_spec.rb
diff options
context:
space:
mode:
authorKen Barber <ken@bob.sh>2011-07-28 15:38:19 +0100
committerKen Barber <ken@bob.sh>2011-07-28 15:38:19 +0100
commita55930368afe2e8177608472653c4696eccec92f (patch)
treef8c01004920fd982c7b0e50fba472b18171ad068 /spec/unit/parser/functions/is_integer_spec.rb
parentfde64f37c98291f4a5b9ee1fcf634288e42b730a (diff)
downloadpuppet-stdlib-a55930368afe2e8177608472653c4696eccec92f.tar.gz
puppet-stdlib-a55930368afe2e8177608472653c4696eccec92f.tar.bz2
(#2) - Added is_float and is_integer functionality.
Diffstat (limited to 'spec/unit/parser/functions/is_integer_spec.rb')
-rw-r--r--spec/unit/parser/functions/is_integer_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/parser/functions/is_integer_spec.rb b/spec/unit/parser/functions/is_integer_spec.rb
index 596bd33..faf6f2d 100644
--- a/spec/unit/parser/functions/is_integer_spec.rb
+++ b/spec/unit/parser/functions/is_integer_spec.rb
@@ -19,12 +19,12 @@ describe "the is_integer function" do
end
it "should return true if an integer" do
- result = @scope.function_is_integer([3])
+ result = @scope.function_is_integer(["3"])
result.should(eq(true))
end
it "should return false if a float" do
- result = @scope.function_is_integer([3.2])
+ result = @scope.function_is_integer(["3.2"])
result.should(eq(false))
end