You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppet...@googlegroups.com
Hi,
I have a rspec-puppet test suite for a module that uses custom types whose provider requires a ruby gem. Is there an easy way to mock or stub the type?
I have the following snippet in my spec file (using mocha):
This mocks my custom type but breaks all built-in types (like groups). Using a Spy looks like the obvious solution but I could not find a way to do that with mocha.