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-2.2.1 spec/requests/protected_resources/metal_spec.rb
doorkeeper-2.2.0 spec/requests/protected_resources/metal_spec.rb