You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed a reoccuring question of people asking how to stub puppet functions when using rspec-puppet. We should get some documentation on this going. Below are the 2 mechanisms i've used for stubbing puppet functions.
There could be a tile on “Stubbing Dependencies” or “Stubbing Puppet Functions” on the website docs http://rspec-puppet.com/documentation/. If not a new tile not sure which one to put it in….
I've noticed a reoccuring question of people asking how to stub puppet functions when using rspec-puppet. We should get some documentation on this going. Below are the 2 mechanisms i've used for stubbing puppet functions.
Approach 1
Approach 2
Also based on conversations it sounds like the first approach is the one that most people should lean towards using for newer code.
The text was updated successfully, but these errors were encountered: