summaryrefslogtreecommitdiff
path: root/spec/unit
AgeCommit message (Collapse)Author
2011-07-28(#2) unstub is_numeric function.Ken Barber
2011-07-28(#2) - unstubbed is_valid_ip_addressKen Barber
2011-07-28(#1) - added new test for upcase.Ken Barber
2011-07-28(#2) - Added is_float and is_integer functionality.Ken Barber
2011-07-27(#8665) Change type from append_line to whole_lineDan Bode
Changed the type name from append_line to whole_line. After feedback that having a type with a verb in the name was confusing.
2011-07-26(#8628) Add append_line native typeDan Bode
This commit adds a native type that can check if a line exists and append it to a file. This use case seems common enough to warrant its inclusion into stdlib. Reviewed-by: Jeff McCune
2011-07-24(#1) - fleshed out some more tests.Ken Barber
2011-06-30Few more tests.Ken Barber
2011-06-29Add some more functional tests.Ken Barber
2011-06-29New abs test.Ken Barber
2011-06-29Added tests for each function, fixing functions as we hit bugs.Ken Barber
2011-06-29Added kwalify function.Ken Barber
2011-06-21(#8010) Add validate_hash spec testsJeff McCune
These tests run through a number of example cases and exercise the behavior of the validate_hash function. To run, simple execute rspec validate_hash_spec.rb
2011-06-21(#8010) Add getvar() rvalue functionJeff McCune
This isn't directly related to #8010, but rather indirectly fills the need to allow the end user to configure where data values are looked up. This allows the namespace to be passed as a class parameter. A module may then quickly and easily look up data from the user-defined namespace.
2011-06-15(#3) Add simple unit test for anchor typeJeff McCune
Unlike the whit type the anchor type derives from, we are not hacking the stringify method. We expect the resource to be named simply Anchor[foo::bar] where the name is "foo::bar".
2011-06-03Add additional tests to validate_bool() specJeff McCune
2011-06-03Add spec test for validate_bool functionJeff McCune
This is an interesting spec test for module developers. It illustrates how to cause Puppet to test the function from the Puppet DSL rather than the Ruby DSL, fully exercising the system from the perspective of the end user. (Note how Puppet[:code] is set, then the scope reset, then the compile method called.) Paired-with: Dan Bode <dan@puppetlabs.com>