I like to upgrade the ruby version from 2.4.2 to 2.5.0 in my rails application.
All specs/tests fail where I use turbolinks. 
Is there a known issue with turbolinks and ruby 2.5.0?
Here is the output on the terminal.
Failure/Error: expect(request).to redirect_to company_salesmen_path(salesman.company)
NoMethodError:
    undefined method `get?' for 302:Integer
  # /Users/dennish/.rvm/gems/ruby-2.5.0/gems/turbolinks-5.1.0/lib/turbolinks/assertions.rb:37:in `turbolinks_request?'
  # /Users/dennish/.rvm/gems/ruby-2.5.0/gems/turbolinks-5.1.0/lib/turbolinks/assertions.rb:6:in `assert_redirected_to'
  # ./spec/requests/salesmen_spec.rb:206:in `block (3 levels) in <top (required)>'
This is the spec:
describe 'DELETE /salesman/:id' do
  subject(:request) do
    delete salesman_path(salesman), headers: auth_headers
  end
  let!(:salesman) { create :salesman }
  it 'destroys salesman' do
    expect { request }.to change { Salesman.count }.by(-1)
  end
  it 'redirects to index' do
    expect(request).to redirect_to company_salesmen_path(salesman.company)
  end
end