Sha256: 5f62d1c2085a5a136575f51bdcf0725504da2fb9804539e3234fe12ff58750ce

Contents?: true

Size: 1.46 KB

Versions: 11

Compression:

Stored size: 1.46 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
    expect(post('/oauth/revoke')).to route_to('doorkeeper/tokens#revoke')
  end

  it 'POST /oauth/introspect routes to tokens controller' do
    expect(post('/oauth/introspect')).to route_to('doorkeeper/tokens#introspect')
  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 authorized tokeninfo controller' do
    expect(get('/oauth/token/info')).to route_to('doorkeeper/token_info#show')
  end
end

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
doorkeeper-mongodb-4.2.0 spec/routing/default_routes_spec.rb
doorkeeper-sequel-1.5.0 spec/routing/default_routes_spec.rb
doorkeeper-4.4.3 spec/routing/default_routes_spec.rb
doorkeeper-4.4.2 spec/routing/default_routes_spec.rb
doorkeeper-4.4.1 spec/routing/default_routes_spec.rb
doorkeeper-4.4.0 spec/routing/default_routes_spec.rb
doorkeeper-mongodb-4.1.0 spec/routing/default_routes_spec.rb
doorkeeper-4.3.2 spec/routing/default_routes_spec.rb
doorkeeper-4.3.1 spec/routing/default_routes_spec.rb
doorkeeper-4.3.0 spec/routing/default_routes_spec.rb
doorkeeper-sequel-1.4.0 spec/routing/default_routes_spec.rb