This is kinda interesting. Does it raise the error when setting `only_if` ? 

I'd think something like 

```
resource.only_if("echo hi")
lambda { resource.run_action(:blah) }.should raise_error(ArgumentError)
```