Sha256: 5a57d88b1271c8eb19ae8b39ac571423d2fddfecf3c072ff8b19f769aef99cd1

Contents?: true

Size: 1.15 KB

Versions: 18

Compression:

Stored size: 1.15 KB

Contents

require 'spec_helper_integration'

describe 'Default routes' do
  it 'GET /oauth/authorize routes to authorizations controller' do
    get('/oauth/authorize').should route_to('doorkeeper/authorizations#new')
  end

  it 'POST /oauth/authorize routes to authorizations controller' do
    post('/oauth/authorize').should route_to('doorkeeper/authorizations#create')
  end

  it 'DELETE /oauth/authorize routes to authorizations controller' do
    delete('/oauth/authorize').should route_to('doorkeeper/authorizations#destroy')
  end

  it 'POST /oauth/token routes to tokens controller' do
    post('/oauth/token').should route_to('doorkeeper/tokens#create')
  end

  it 'GET /oauth/applications routes to applications controller' do
    get('/oauth/applications').should route_to('doorkeeper/applications#index')
  end

  it 'GET /oauth/authorized_applications routes to authorized applications controller' do
    get('/oauth/authorized_applications').should route_to('doorkeeper/authorized_applications#index')
  end

  it 'GET /oauth/token/info route to authorzed tokeninfo controller' do
    get('/oauth/token/info').should route_to('doorkeeper/token_info#show')    
  end

end

Version data entries

18 entries across 18 versions & 1 rubygems

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