diff options
author | Adrien Thebo <git@somethingsinistral.net> | 2013-03-27 14:03:40 -0700 |
---|---|---|
committer | Adrien Thebo <git@somethingsinistral.net> | 2013-03-27 14:03:40 -0700 |
commit | 755d3d2de505d098faa323fa751497d7f4a3dad1 (patch) | |
tree | 7e2881f09efa19e7bc84e19ddfcf263e92b1627b /spec | |
parent | 4c695ede384501b9c516cc53bdfc6b547a6e5ea2 (diff) | |
parent | ff5dd5d75adb3723e106ca20bac4e68466395a56 (diff) |
Merge branch 'pull-136' into 2.x
Diffstat (limited to 'spec')
-rwxr-xr-x | spec/unit/puppet/parser/functions/max_spec.rb | 4 | ||||
-rwxr-xr-x | spec/unit/puppet/parser/functions/min_spec.rb | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/spec/unit/puppet/parser/functions/max_spec.rb b/spec/unit/puppet/parser/functions/max_spec.rb index 604927e..ff6f2b3 100755 --- a/spec/unit/puppet/parser/functions/max_spec.rb +++ b/spec/unit/puppet/parser/functions/max_spec.rb @@ -20,4 +20,8 @@ describe "the max function" do it "should be able to compare numbers" do scope.function_max([6,8,4]).should(eq(8)) end + + it "should be able to compare a number with a stringified number" do + scope.function_max([1,"2"]).should(eq("2")) + end end diff --git a/spec/unit/puppet/parser/functions/min_spec.rb b/spec/unit/puppet/parser/functions/min_spec.rb index 781422c..71d593e 100755 --- a/spec/unit/puppet/parser/functions/min_spec.rb +++ b/spec/unit/puppet/parser/functions/min_spec.rb @@ -20,4 +20,8 @@ describe "the min function" do it "should be able to compare numbers" do scope.function_min([6,8,4]).should(eq(4)) end + + it "should be able to compare a number with a stringified number" do + scope.function_min([1,"2"]).should(eq(1)) + end end |