Fix resource_spec.rb

These are trivial fixes, but nonetheless...
Merge pull request #1263 from srenatus/patch-1

Fix resource_spec.rb: it's only_if and not_if