Age | Commit message (Collapse) | Author |
|
|
|
|
|
|
|
|
|
|
|
(#11156) Fix module path fixtures so rspec works in most rubies
|
|
Previously this module was using an experimental pattern using mktmpdir for
creating its module path for rspec-puppet to use, which has since been
deprecated in favour of a static directory. This was largely because ntp was
one of the earlier modules we tried to make work in Jenkins.
This change aligns the module to use the same pattern used in the rspec-
puppet setup stage:
https://github.com/rodjek/rspec-puppet/blob/master/lib/rspec-puppet/setup.rb
This should stop the problems with Ruby 1.8.5 complaining about a lack of
mktmpdir, and also make it more consistent with other modules in the wild.
|
|
|
|
Without this patch the spec_helper does not invoke
Puppet.settings.send(:initialize_everything_for_tests)
This is necessary to set default configuration settings, otherwise
exceptions are raised when testing against the Puppet master branch.
|
|
Without a manifests/site.pp file for Puppet to read we get rspec testing
errors. This patch creates a temporary directory and creates an empty site.pp
to avoid this.
|
|
This commit adds some unit tests for the
ntp class.
Also adds a rakefile for running the spec tests
|
|
|