Ask Your Question

puppet-rspec: contain_class vs include_class vs create_class

asked 2013-05-15 02:21:37 -0600

I've been writing rpec tests using rspec-puppet and trying to figure out the difference between functions: * containclass * includeclass * create_class

What is the difference between them? Which one is preferred in which cases?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-12-09 23:43:44 -0600

gh gravatar image

If you are using rspec-puppet >= v1.0.0, then you should be using contain_class as include_class has been deprecated.

See Tim Sharpe's post about it -

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2013-05-15 02:21:37 -0600

Seen: 513 times

Last updated: Dec 09 '13