I was considering:

```ruby
expect(example.exception.message).to match(
  /Passing a block within an example is now deprecated./
)
```