On Jul 18, 2011, at 12:18 AM, Tim Sharpe wrote:

> We have a generic create_resource matcher than can be used however for a 
> nicer experience I also want to create specific matchers for the built in 
> types.
> 
> it { should create_resource('package', 'mysql-server').with_param('ensure', 
> 'present') }
> vs
> it { should create_package('mysql-server').with_ensure('present') }


As mentioned by others, it should be straightforward to build something generic 
that matches 'create_<foo>' with any resource type, so we aren't building 
custom matchers for every type.

We'd love to have a blog post on this at http://puppetlabs.com/blog/.

-- 
The only really good place to buy lumber is at a store where the lumber
has already been cut and attached together in the form of furniture,
finished, and put inside boxes.         --Dave Barry
---------------------------------------------------------------------
Luke Kanies | http://puppetlabs.com | http://about.me/lak
Join us in PDX for PuppetConf: http://bit.ly/puppetconfsig



-- 
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].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to