Sha256: ea0205c971228a90978e70c36747960a35f55c260553d577dd8628ff3f9731c1

Contents?: true

Size: 1.18 KB

Versions: 1

Compression:

Stored size: 1.18 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

1 entries across 1 versions & 1 rubygems

Version Path
couchkeeper-0.6.7 spec/routing/default_routes_spec.rb