Hi,
I'm trying to write a test case that expects an array to come back from a 
function and I want to make sure at least 2 elements exist 
"/usr/sbin/usermod" and "-e"

My code is:
        provider.expects(:execute).with(includes('/usr/sbin/usermod'), 
includes('-e'))

The error is:
       unexpected invocation: 
#<Puppet::Type::User::ProviderUseradd:0xb7090774>.execute(['/usr/sbin/usermod', 
'-e', '2038-01-24', 'myuser'])
       unsatisfied expectations:
       - expected exactly once, not yet invoked: 
#<Puppet::Type::User::ProviderUseradd:0xb7090774>.execute(includes('/usr/sbin/usermod'),
 
includes('-e'))

Any guidance is appreciated, thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
Visit this group at http://groups.google.com/group/puppet-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to