mocking functions

Unit Testing Puppet with rspec-puppet: Mocking Classes and Functions

I’ve created a sample repo on GitHub┬áthat has a mini tutorial and examples of how to mock functions, classes, and defined types. This way you you can isolate the specific thing that you want to test (a class, a defined type, a custom function) without inheriting complexity from dependencies.

It’s still in its early stages so bugs and weird things are likely to crop up, but it’s a start!

I wont repeat anything here, this is just a placeholder if anyone finds this page first