summaryrefslogtreecommitdiff
path: root/spec/shared_behaviours/path_parameters.rb
AgeCommit message (Collapse)AuthorFilesLines
2012-07-24Use rspec 2.11 compatible block syntaxPatrick Carlisle1-5/+5
In rspec 2.11, expectations on a block must take the form of expect...to or lambda...should. Other combinations of those are no longer accepted. This commit converts all mixed cases to use expect...to, as it seems to be the preferred syntax now.
2012-03-28(#12101) Add shared context for specs to imitate windows or posixPatrick Carlisle1-29/+2
Add "windows" and "posix" shared contexts to rspec. If you give :as_platform => :posix or :as_platform => :windows as argument to a describe block, it will automatically stub the relevant facts and path behavior to imitate windows or posix.
2012-01-24Revert "(#12101) Add shared context for specs to imitate windows or posix"Patrick Carlisle1-2/+29
This reverts commit edc544d73bc8f9f7de07de4b30e344d1f4db3178. This doesn't work with rspec < 2.6.0 and it's breaking continuous integration.
2012-01-24(#12101) Add shared context for specs to imitate windows or posixPatrick Carlisle1-29/+2
Add "windows" and "posix" shared contexts to rspec. If you give :as_platform => :posix or :as_platform => :windows as argument to a describe block, it will automatically stub the relevant facts and path behavior to imitate windows or posix.
2011-08-24(#8410) Use absolute_path? for Puppet::Parameter::Path validationNick Lewis1-18/+20
A Puppet::Parameter::Path's value is valid if it is fully qualified (or in the case of an array, if each of its elements is fully qualified). This class was previously using its own method to validate whether a path was fully qualified, which was different from the rules applied by absolute_path?. Now that we have a dedicated method for this, it is used here for consistency.
2011-04-13maint: clean up the spec test headers in bulk.Daniel Pittman1-0/+0
We now use a shebang of: #!/usr/bin/env rspec This enables the direct execution of spec tests again, which was lost earlier during the transition to more directly using the rspec2 runtime environment.
2011-03-15(#4884) Add consistent path validation and behaviorDaniel Pittman1-0/+185
Many path parameters were implementing their own inconsistent validation and behavior. Now those parameters can have a parent class that makes things a lot more consistent. Reviewed-by: Matt Robinson and Max Martin