Sha256: 2798fa44a69e53bc62242b0465fbf51a14458c966e87e3d4e69a572efed0cd2a

Contents?: true

Size: 1.31 KB

Versions: 16

Compression:

Stored size: 1.31 KB

Contents

require 'spec_helper_integration'

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

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

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

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

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

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

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

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

end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
doorkeeper-2.1.4 spec/routing/default_routes_spec.rb
doorkeeper-1.4.2 spec/routing/default_routes_spec.rb
doorkeeper-2.1.3 spec/routing/default_routes_spec.rb
doorkeeper-2.1.2 spec/routing/default_routes_spec.rb
doorkeeper-2.1.1 spec/routing/default_routes_spec.rb
doorkeeper-2.1.0 spec/routing/default_routes_spec.rb
doorkeeper-2.0.1 spec/routing/default_routes_spec.rb
doorkeeper-1.4.1 spec/routing/default_routes_spec.rb
doorkeeper-2.0.0 spec/routing/default_routes_spec.rb
doorkeeper-2.0.0.rc3 spec/routing/default_routes_spec.rb
doorkeeper-2.0.0.rc2 spec/routing/default_routes_spec.rb
doorkeeper-2.0.0.alpha1 spec/routing/default_routes_spec.rb
doorkeeper-1.4.0 spec/routing/default_routes_spec.rb
doorkeeper-1.3.1 spec/routing/default_routes_spec.rb
doorkeeper-1.3.0 spec/routing/default_routes_spec.rb
doorkeeper-1.2.0 spec/routing/default_routes_spec.rb