acrmp/chefspec — pull request #34 by dissonanz (2012-08-10 08:25:54+00:00)
Title: Support for resource conditionals (not_if and only_if)

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.