```
expect { resource.only_if("echo hi") }.to raise_error(ArgumentError }
```