summaryrefslogtreecommitdiff
path: root/spec/functions/validate_numeric_spec.rb
AgeCommit message (Collapse)Author
2015-06-01Convert tests to use plain rspec-puppetDavid Schmitt
Tests in the new style produces the following documentation output: abs should not eq nil should run abs() and raise an Puppet::ParseError should run abs(-34) and return 34 should run abs("-34") and return 34 should run abs(34) and return 34 should run abs("34") and return 34
2015-05-27validate_integer, validate_numeric: explicitely reject hashes in arraysDavid Schmitt
Without this patch, Ruby 1.8's Hash#to_s behaviour causes [{1=>2}] to be treated as "12" when validating values.
2015-04-23specs: loosen certain error expectations to make tests pass on future parserDavid Schmitt
2014-12-04Add new functions validate_numeric() and validate_integer().Oliver Bertuch