Sha256: 7efdf41fac9290021f26fe994a406b5db42591a41241fd861aced54e7ff8beaa

Contents?: true

Size: 419 Bytes

Versions: 22

Compression:

Stored size: 419 Bytes

Contents

require 'spec_helper_integration'

describe 'ActionController::Metal API' do
  before do
    @client   = FactoryGirl.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

22 entries across 22 versions & 2 rubygems

Version Path
doorkeeper-sequel-1.3.1 spec/requests/protected_resources/metal_spec.rb
doorkeeper-sequel-1.3.0 spec/requests/protected_resources/metal_spec.rb
doorkeeper-sequel-1.2.3 spec/requests/protected_resources/metal_spec.rb
doorkeeper-sequel-1.2.2 spec/requests/protected_resources/metal_spec.rb
doorkeeper-4.2.6 spec/requests/protected_resources/metal_spec.rb
doorkeeper-4.2.5 spec/requests/protected_resources/metal_spec.rb
doorkeeper-sequel-1.2.1 spec/requests/protected_resources/metal_spec.rb
doorkeeper-4.2.0 spec/requests/protected_resources/metal_spec.rb
doorkeeper-4.1.0 spec/requests/protected_resources/metal_spec.rb
doorkeeper-4.0.0 spec/requests/protected_resources/metal_spec.rb
doorkeeper-4.0.0.rc4 spec/requests/protected_resources/metal_spec.rb
doorkeeper-4.0.0.rc3 spec/requests/protected_resources/metal_spec.rb
doorkeeper-4.0.0.rc2 spec/requests/protected_resources/metal_spec.rb
doorkeeper-4.0.0.rc1 spec/requests/protected_resources/metal_spec.rb
doorkeeper-3.1.0 spec/requests/protected_resources/metal_spec.rb
doorkeeper-3.0.1 spec/requests/protected_resources/metal_spec.rb
doorkeeper-2.2.2 spec/requests/protected_resources/metal_spec.rb
doorkeeper-3.0.0 spec/requests/protected_resources/metal_spec.rb
doorkeeper-3.0.0.rc2 spec/requests/protected_resources/metal_spec.rb
doorkeeper-3.0.0.rc1 spec/requests/protected_resources/metal_spec.rb