$ gem install rspec-puppet
If you don’t have Puppet installed as a system package, you’ll also need to
$ gem install puppet
Go to your module, and run this handy script to prepare it for testing
$ cd path/to/your/module $ rspec-puppet-init
If this fails or you wish to prepare your module manually, follow these instructions.
Now, proceed to the tutorial!