I tried this after seeing some of the opscode cookbooks following this pattern, i.e.:

https://github.com/opscode-cookbooks/yum/blob/master/recipes/test.rb

It is lighter-weight (vs creating an embedded testing cookbook) but I don't like how it mingles test code with actual.

What do you think?