Sha256: a9eb295b308ed01d1bde299db1a7801a7423ea6585d9333a7b0f4aa71451fe59

Contents?: true

Size: 434 Bytes

Versions: 22

Compression:

Stored size: 434 Bytes

Contents

require 'spec_helper_integration'

feature 'ActionController::Metal API' do
  background do
    @client   = FactoryGirl.create(:application)
    @resource = User.create!(:name => "Joe", :password => "sekret")
    @token    = client_is_authorized(@client, @resource)
  end

  scenario '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 & 1 rubygems

Version Path
doorkeeper-1.1.0 spec/requests/protected_resources/metal_spec.rb
doorkeeper-1.0.0 spec/requests/protected_resources/metal_spec.rb
doorkeeper-1.0.0.rc2 spec/requests/protected_resources/metal_spec.rb
doorkeeper-1.0.0.rc1 spec/requests/protected_resources/metal_spec.rb
doorkeeper-0.7.4 spec/requests/protected_resources/metal_spec.rb
doorkeeper-0.7.3 spec/requests/protected_resources/metal_spec.rb
doorkeeper-0.7.2 spec/requests/protected_resources/metal_spec.rb
doorkeeper-0.7.1 spec/requests/protected_resources/metal_spec.rb
doorkeeper-0.7.0 spec/requests/protected_resources/metal_spec.rb
doorkeeper-0.6.7 spec/requests/protected_resources/metal_spec.rb
doorkeeper-0.6.6 spec/requests/protected_resources/metal_spec.rb
doorkeeper-0.6.5 spec/requests/protected_resources/metal_spec.rb
doorkeeper-0.6.4 spec/requests/protected_resources/metal_spec.rb
doorkeeper-0.6.3 spec/requests/protected_resources/metal_spec.rb
doorkeeper-0.6.2 spec/requests/protected_resources/metal_spec.rb
doorkeeper-0.6.1 spec/requests/protected_resources/metal_spec.rb
doorkeeper-0.6.0 spec/requests/protected_resources/metal_spec.rb
doorkeeper-0.6.0.rc1 spec/requests/protected_resources/metal_spec.rb
doorkeeper-0.5.0 spec/requests/protected_resources/metal_spec.rb
doorkeeper-0.5.0.rc1 spec/requests/protected_resources/metal_spec.rb