Sha256: f5686872a134c1e84d904aec81b83589f2216e0bc0bcada99efa3796ae9f1c96

Contents?: true

Size: 614 Bytes

Versions: 5

Compression:

Stored size: 614 Bytes

Contents

require 'spec_helper'

describe Devise::Oauth2Providable::AuthorizationsController do
  describe 'routing' do
    it 'routes POST /oauth2/authorizations' do
      {:post => '/oauth2/authorizations'}.should route_to(:controller => 'oauth2/authorizations', :action => 'create')
    end
    it 'routes GET /oauth2/authorize' do
      {:get => '/oauth2/authorize'}.should route_to(:controller => 'oauth2/authorizations', :action => 'new')
    end
    it 'routes POST /oauth2/authorize' do
      {:post => '/oauth2/authorize'}.should route_to(:controller => 'oauth2/authorizations', :action => 'new')
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
devise_oauth2_providable-1.0.3 spec/routing/authorizations_routing_spec.rb
devise_oauth2_providable-1.0.2 spec/routing/authorizations_routing_spec.rb
devise_oauth2_providable-1.0.1 spec/routing/authorizations_routing_spec.rb
devise_oauth2_providable-1.0.0 spec/routing/authorizations_routing_spec.rb
devise_oauth2_providable-1.0.0.beta1 spec/routing/authorizations_routing_spec.rb