Re: [Puppet Users] Still mud-wrestling with spec testing

2015-11-28 Thread Martin Alfke
I assume you have Rakefile, spec/spec_helper.rb and .fixtures.yml in place as well? On 27 Nov 2015, at 21:23, Peter Berghold wrote: > So, > > Now that my schedule has some slack in it I've turned my attention back to > doing spec testing of my Puppet modules.

Re: [Puppet Users] Still mud-wrestling with spec testing

2015-11-28 Thread Gareth Rushgrove
Hi Peter On 27 November 2015 at 20:23, Peter Berghold wrote: > So, > > Now that my schedule has some slack in it I've turned my attention back to > doing spec testing of my Puppet modules. Taking a really really simple > module that I wrote as an example I started in

Re: [Puppet Users] Still mud-wrestling with spec testing

2015-11-28 Thread Rich Burroughs
+1 for Gareth's skeleton, it's a great way to get started with testing. It comes with rspec-puppet and Beaker set up. I ended up updating some modules recently to use the latest version of it and I was very happy with it. Rich On Sat, Nov 28, 2015 at 10:29 AM Gareth Rushgrove

[Puppet Users] Still mud-wrestling with spec testing

2015-11-27 Thread Peter Berghold
So, Now that my schedule has some slack in it I've turned my attention back to doing spec testing of my Puppet modules. Taking a really really simple module that I wrote as an example I started in again. Here is the one and only file making up the class. -- init.pp