Sha256: a5f3c89df1f2245a2e82ac3075b4c0cf0f415743d428eb54d766a68043219de6
Contents?: true
Size: 1.63 KB
Versions: 1
Compression:
Stored size: 1.63 KB
Contents
require 'spec_helper_integration' describe 'Custom controller for routes' do it 'GET /space/oauth/authorize routes to custom authorizations controller' do get('/space/oauth/authorize').should route_to('custom_authorizations#new') end it 'POST /space/oauth/authorize routes to custom authorizations controller' do post('/space/oauth/authorize').should route_to('custom_authorizations#create') end it 'DELETE /space/oauth/authorize routes to custom authorizations controller' do delete('/space/oauth/authorize').should route_to('custom_authorizations#destroy') end it 'POST /space/oauth/token routes to tokens controller' do post('/space/oauth/token').should route_to('custom_authorizations#create') end it 'GET /space/oauth/applications routes to applications controller' do get('/space/oauth/applications').should route_to('custom_authorizations#index') end it 'GET /space/oauth/token/info routes to the token_info controller' do get('/space/oauth/token/info').should route_to('custom_authorizations#show') end it 'POST /outer_space/oauth/token is not be routable' do post('/outer_space/oauth/token').should_not be_routable end it 'GET /outer_space/oauth/authorize routes to custom authorizations controller' do get('/outer_space/oauth/authorize').should be_routable end it 'GET /outer_space/oauth/applications is not routable' do get('/outer_space/oauth/applications').should_not be_routable end it 'GET /outer_space/oauth/token_info is not routable' do get('/outer_space/oauth/token/info').should_not be_routable end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
couchkeeper-0.6.7 | spec/routing/custom_controller_routes_spec.rb |