rodjek/rspec-puppet — Issue #19: Getting an error when using '.with()'
Author: aknapp
Created: 2012-01-18 18:54:22+00:00
State: open

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:

1) autofs::base
Failure/Error: it do should contain_service('autofs').with(
NoMethodError:
undefined method `with' for #
# ./modules/autofs/spec/classes/base_spec.rb:13

I was following the example exactly, so I'm not sure what's wrong.

-Andy