Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-09-14 | (MODULES-2516) Adds an is_a() function | David Schmitt | |
The data type system is very hard to understand. Many people don't understand why type_of([1,2,3]) == Array will fail, but type_of([1,2,3]) <= Array passes. This does a simpler validation that doesn't rely on explicit data types. Instead, use $foo = [1,2,3] if $foo.is_a(Array) { notify { 'This is an array': } } This is based on code by Ben Ford <ben.ford@puppetlabs.com>. * Added acceptance tests * Added dispatch * Improved unit tests * Added docs to README | |||
2015-06-01 | Convert tests to use plain rspec-puppet | David 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-12 | Remove all the pops stuff | Hunter Haugen | |
The rspec-puppet matchers don't allow to check the return types, but this is a pretty rare thing to need to do anyway, so probably not worth patching rspec-puppet | |||
2015-05-05 | specs: move function specs to where rspec-puppet expects them | David Schmitt | |