Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Write RSpec examples for Opscode Chef cookbooks
Ruby

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
features
lib
spec
.gitignore
.travis.yml
CHANGELOG.md
Gemfile
Gemfile.lock
Guardfile
LICENSE
README.md
Rakefile
chefspec.gemspec

README.md

ChefSpec

ChefSpec is a gem that makes it easy to write RSpec examples for Opscode Chef cookbooks. Get fast feedback on cookbook changes before you spin up a node to do integration testing against.

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

Examples and documentation on using ChefSpec are hosted on Relish.

Compatibility

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 and 1.9.2.

Building

$ bundle install
$ bundle exec rake

Continuous Integration

Chefspec on Travis CI

Built on Travis

License

MIT - see the accompanying LICENSE file for details.

Changelog

To see what has changed in recent versions see the CHANGELOG. ChefSpec follows the Rubygems RationalVersioningPolicy.

Contributing

Additional matchers and bugfixes are welcome! Please fork and submit a pull request on an individual branch per change.

Something went wrong with that request. Please try again.