It looks like `request.accept` could return nil. If you update this to the following, I think it should fix the breaking test:

```ruby
header_match = req.accept.try(:match, /version=([\d\.]+)/)
```