-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
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
query_nodes spec. #79
Comments
I'm having the same issue, was there any solution? |
@andrea-capri , if i remember correctly, i did this: I added this two lines in spec_helper.rb
It looks like this:
And i installed a gem whose name i can't remember. I think it was ruby-puppetdb Att, Israel Ribeiro |
Ah thanks, will try |
A bit late reply here, but I would prefer to just mock the function. It can for example be done by putting something like this in your spec file:
Hopefully rspec-puppet will include some functionality to do this in a simpler way in the future. |
Thanks Dalen, I did end up using mocks for my unit tests, just forgot to post it back here |
Hi, guys.
I'm trying to test a module which there's many query_nodes functions. I wanna know how to test this with rspec, when i run rspec, it returns something like this:
Do i have to install something?
This is Gemfile:
This is my rspec_helper:
Att,
Israel Ribeiro
The text was updated successfully, but these errors were encountered: