On Mon, Jun 4, 2012 at 9:06 AM, Jeff McCune <[email protected]> wrote: > On Sun, Jun 3, 2012 at 8:06 AM, Markus Falb <[email protected]> wrote: >> Hi, >> I was playing with rspec and every time I find a possible improvement >> that could be made in spec_helper or rakefile I have to change it in >> every module that is using rspec tests. So maybe these things could be >> centralized, I thought to myself. >> >> I found the following module, actually. >> >> https://github.com/puppetlabs/puppetlabs-module_spec_helper > > I'll leave the description to Branan but please be aware that we're > actively and currently working to centralize all of this into a single > repository named puppetlabs_spec_helper. The goal of this repository > is to provide a single place that abstracts away the details of > initializing Puppet for spec testing. This includes initializing > Puppet for use with modules being spec tested. > > Here's the "main" repository: > https://github.com/puppetlabs/puppetlabs_spec_helper > > And the pull request where Branan is migrating the module spec helper > into the puppetlabs_spec_helper: > https://github.com/puppetlabs/puppetlabs_spec_helper/pull/4
This isn't quite ready yet until we publish the gem. When it's published, you just need a single gem file dependency: gem 'puppetlabs_spec_helper', '>= 0.1.0' Here's a module example, where you can see the entire rakefile and spec_helper have been simplified into a single line: https://github.com/puppetlabs/puppetlabs-mysql/pull/79/files Thanks, Nan -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
