Sha256: 83adf988e5ddac144a54a2be286a25cd04ad90690ae35cf637689c0454461893

Contents?: true

Size: 418 Bytes

Versions: 13

Compression:

Stored size: 418 Bytes

Contents

require 'spec_helper_integration'

describe 'ActionController::Metal API' do
  before do
    @client   = FactoryBot.create(:application)
    @resource = User.create!(name: 'Joe', password: 'sekret')
    @token    = client_is_authorized(@client, @resource)
  end

  it 'client requests protected resource with valid token' do
    get "/metal.json?access_token=#{@token.token}"
    should_have_json 'ok', true
  end
end

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
doorkeeper-mongodb-4.2.0 spec/requests/protected_resources/metal_spec.rb
doorkeeper-sequel-1.5.0 spec/requests/protected_resources/metal_spec.rb
doorkeeper-4.4.3 spec/requests/protected_resources/metal_spec.rb
doorkeeper-4.4.2 spec/requests/protected_resources/metal_spec.rb
doorkeeper-4.4.1 spec/requests/protected_resources/metal_spec.rb
doorkeeper-4.4.0 spec/requests/protected_resources/metal_spec.rb
doorkeeper-mongodb-4.1.0 spec/requests/protected_resources/metal_spec.rb
doorkeeper-4.3.2 spec/requests/protected_resources/metal_spec.rb
doorkeeper-4.3.1 spec/requests/protected_resources/metal_spec.rb
doorkeeper-4.3.0 spec/requests/protected_resources/metal_spec.rb
doorkeeper-sequel-1.4.0 spec/requests/protected_resources/metal_spec.rb
doorkeeper-mongodb-4.0.1 spec/requests/protected_resources/metal_spec.rb
doorkeeper-mongodb-4.0.0 spec/requests/protected_resources/metal_spec.rb