Skip to content

Instantly share code, notes, and snippets.

@nvalentine-puppetlabs
Last active August 29, 2015 14:02
Show Gist options
  • Save nvalentine-puppetlabs/b843ff4a83db6643ea29 to your computer and use it in GitHub Desktop.
Save nvalentine-puppetlabs/b843ff4a83db6643ea29 to your computer and use it in GitHub Desktop.
Puppet module testing resources

Resources

Reading

Tooling

How to un-f garethr's module skeleton rspec version nonsense

The problem

gareth's Gemfile attempts to pull in rspec-puppet master which then pulls in 3.x rspec-core which confuses the crap out of all of the rspec-core 2.x based tooling:

mkdir /tmp/modules
cd /tmp/modules
puppet module generate nrvale0-foo
cd foo
rake -T
< big gnarly stacktrace here >

The solution

So we checkout rspec-puppet and install only the release based on rspec 2.9.x:

cd /tmp && git clone https://github.com/rodjek/rspec-puppet
cd rspec-puppet
git checkout v1.0.1
gem build *.gemspec
gem install *.gem
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment