We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It'd be nice to mock a Puppet DSL function or a Puppet v4 Ruby API function while testing a plan with BoltSpec.
Ideally it should be as clean as possible:
allow(<some Puppet object>).to receive(:function_name_to_mock).with(args).and_return(fake_result)
When testing a Puppet class/defined resource it's possible to workaround the issue with pre_condition.. but in BoltSpec I see no way to do this..
pre_condition
I can wrap a function call with a plan but it's too weird IMHO..
The text was updated successfully, but these errors were encountered:
Thanks this has been requested before. #1812
Sorry, something went wrong.
Ouch.. maybe better to reopen that one and close this then..
No branches or pull requests
Use Case
It'd be nice to mock a Puppet DSL function or a Puppet v4 Ruby API function while testing a plan with BoltSpec.
Describe the Solution You Would Like
Ideally it should be as clean as possible:
When testing a Puppet class/defined resource it's possible to workaround the issue with
pre_condition
.. but in BoltSpec I see no way to do this..Describe Alternatives You've Considered
I can wrap a function call with a plan but it's too weird IMHO..
The text was updated successfully, but these errors were encountered: