Use `expect` here instead:

```ruby
expect { chef_run }.to_not raise_error
```