Sha256: ace63df1c5520493592df2d666835bde1d86fa034f6785312e625deacb38c9a2

Contents?: true

Size: 1.17 KB

Versions: 35

Compression:

Stored size: 1.17 KB

Contents

require 'spec_helper_integration'

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

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

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

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

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

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

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

Version data entries

35 entries across 35 versions & 3 rubygems

Version Path
doorkeeper-mongodb-4.2.0 spec/routing/scoped_routes_spec.rb
doorkeeper-sequel-1.5.0 spec/routing/scoped_routes_spec.rb
doorkeeper-4.4.3 spec/routing/scoped_routes_spec.rb
doorkeeper-4.4.2 spec/routing/scoped_routes_spec.rb
doorkeeper-4.4.1 spec/routing/scoped_routes_spec.rb
doorkeeper-4.4.0 spec/routing/scoped_routes_spec.rb
doorkeeper-mongodb-4.1.0 spec/routing/scoped_routes_spec.rb
doorkeeper-4.3.2 spec/routing/scoped_routes_spec.rb
doorkeeper-4.3.1 spec/routing/scoped_routes_spec.rb
doorkeeper-4.3.0 spec/routing/scoped_routes_spec.rb
doorkeeper-sequel-1.4.0 spec/routing/scoped_routes_spec.rb
doorkeeper-mongodb-4.0.1 spec/routing/scoped_routes_spec.rb
doorkeeper-mongodb-4.0.0 spec/routing/scoped_routes_spec.rb
doorkeeper-sequel-1.3.1 spec/routing/scoped_routes_spec.rb
doorkeeper-sequel-1.3.0 spec/routing/scoped_routes_spec.rb
doorkeeper-sequel-1.2.3 spec/routing/scoped_routes_spec.rb
doorkeeper-sequel-1.2.2 spec/routing/scoped_routes_spec.rb
doorkeeper-4.2.6 spec/routing/scoped_routes_spec.rb
doorkeeper-4.2.5 spec/routing/scoped_routes_spec.rb
doorkeeper-sequel-1.2.1 spec/routing/scoped_routes_spec.rb