```ruby
require 'rails_helper'

module Kracken
  RSpec.describe 'token authenticatable resource requests', type: :request do

    def headers_with_token(token)
      { 'HTTP_AUTHORIZATION'=>"Token token=\"#{token}\"" }
    end

    let(:json){ Fixtures.auth_hash.to_json }

    describe "authenticatable resource", type: :request do
      it "will raise error if there is no token" do
        expect{get api_index_path}.to raise_error Kracken::TokenUnauthorized
      end

      it "is redirected to the oauth server if there is no current user" do
        stub_request(:get, "https://account.radiusnetworks.com/auth/radius/user.json?oauth_token=123")
          .to_return(status: 200, body: json)

        get api_index_path, nil, headers_with_token("123")

        expect(response.status).to be 200
      end
    end
  end
end
```

Fix Rails 5 deprecation warning for `get` request spec
user
```ruby
require 'rails_helper'

module Kracken
  RSpec.describe 'token authenticatable resource requests', type: :request do

    def headers_with_token(token)
      { 'HTTP_AUTHORIZATION'=>"Token token=\"#{token}\"" }
    end

    let(:json){ Fixtures.auth_hash.to_json }

    describe "authenticatable resource", type: :request do
      it "will raise error if there is no token" do
        expect{get api_index_path}.to raise_error Kracken::TokenUnauthorized
      end

      it "is redirected to the oauth server if there is no current user" do
        stub_request(:get, "https://account.radiusnetworks.com/auth/radius/user.json?oauth_token=123")
          .to_return(status: 200, body: json)

        get api_index_path, params: {}, headers: headers_with_token("123")

        expect(response.status).to be 200
      end
    end
  end
end
```
assistant