ChefSpec runs your cookbook but without converging the node that your examples are being executed on. This allows you to write specs that make assertions about the created resources given the combination of your recipes and arbitrary node attributes that you provide.
Examples and documentation on using ChefSpec are hosted on Relish.
This is alpha-quality at the moment. The API is likely to change substantially. ChefSpec is currently tested with Chef 0.9.18, 0.10.2 and 0.10.4 on MRI 1.8.7, 1.9.2 and 1.9.3.
$ bundle install $ bundle exec rake
MIT - see the accompanying LICENSE file for details.
Additional matchers and bugfixes are welcome! Please fork and submit a pull request on an individual branch per change.