acrmp/chefspec — pull request #35 by dissonanz (2012-08-10 09:21:28+00:00)
Title: Support for resource conditionals (not_if and only_if) (Fixed for chef ~0.9)

I've taken a stab at adding support for not_if and only_if conditionals in Chef resources.

The way that Chef::Resource handles should_skip in a run is as follows:

```ruby
return if should_skip?(action)
```

I've enabled chefspec to do the same thing. If the should_skip? method fails, the resource is not added to the ChefSpec::ChefRunner.resources array.