Sha256: 62d413bb44b07492fd2aea2171d74e3b016fe354643b6170aeb6fe5454cb605d

Contents?: true

Size: 596 Bytes

Versions: 5

Compression:

Stored size: 596 Bytes

Contents

require 'spec_helper'

describe Oauth2::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-0.3.8 spec/rails_app/spec/routing/authorizations_routing_spec.rb
devise_oauth2_providable-0.3.7 spec/rails_app/spec/routing/authorizations_routing_spec.rb
devise_oauth2_providable-0.3.6 spec/rails_app/spec/routing/authorizations_routing_spec.rb
devise_oauth2_providable-0.3.5 spec/rails_app/spec/routing/authorizations_routing_spec.rb
devise_oauth2_providable-0.3.4 spec/rails_app/spec/routing/authorizations_routing_spec.rb