I think you can just move the . to the previous line, else move the whole `.to` and wrap the next line in brackets:
```
.to(
   match(/Passing a block within an example is now deprecated./)
)
```