Sha256: 9a75e578f154617bdaae6ddc265a63476d53708a42a38244224ac0cae1cf49f4
Contents?: true
Size: 1.58 KB
Versions: 14
Compression:
Stored size: 1.58 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
14 entries across 14 versions & 1 rubygems