-
Notifications
You must be signed in to change notification settings - Fork 203
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
Getting an error when using '.with()' #19
Comments
Sorry about the delay. Are you running the latest version of rspec-puppet? The |
No worries. Yeah, I'm using the latest version (0.1.1). |
So, looking at my above comment, it's pretty obvious that I was just missing the inner {} braces on the with statement. This definitely works for me now, sorry about that :) |
binford2k
pushed a commit
to binford2k/rspec-puppet
that referenced
this issue
Jul 20, 2022
Ensure FacterImpl consistency between example groups
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's my test:
it do should contain_service('autofs').with(
'ensure' => 'running',
'enable' => 'true',
'hasstatus' => 'true'
) end
When I run the tests, I get:
Failures:
Failure/Error: it do should contain_service('autofs').with(
NoMethodError:
undefined method `with' for #RSpec::Puppet::ManifestMatchers::CreateGeneric:0x7f112fba2ad8
./modules/autofs/spec/classes/base_spec.rb:13
I was following the example exactly, so I'm not sure what's wrong.
-Andy
The text was updated successfully, but these errors were encountered: