Re: [Puppet Users] Stubbing functions in Puppet rspec

2016-08-05 Thread Peter Berghold
ooo... that looks to be an RSpec specification for a custom type/provider? I'm going to need that! Thanks! On Fri, Aug 5, 2016 at 9:13 AM Trevor Vaughan wrote: > Hi Peter, > > See if this helps > https://github.com/onyxpoint/puppet-gpasswd/blob/master/spec/unit/provider/group/gpasswd_spec.rb

Re: [Puppet Users] Stubbing functions in Puppet rspec

2016-08-05 Thread Trevor Vaughan
Hi Peter, See if this helps https://github.com/onyxpoint/puppet-gpasswd/blob/master/spec/unit/provider/group/gpasswd_spec.rb Thanks, Trevor On Fri, Aug 5, 2016 at 8:04 AM, Peter Berghold wrote: > I have this wonderful module that calls various custom functions that I've > written that I'm try

[Puppet Users] Stubbing functions in Puppet rspec

2016-08-05 Thread Peter Berghold
I have this wonderful module that calls various custom functions that I've written that I'm trying to adopt RSpec testing for. After seeing it crash and burn with "function unknown" errors I took a rather meandering path and arrived here: https://github.com/TomPoulton/rspec-puppet-unit-testing So