Sha256: 6c6e92a3c5d2055b6497a9f7545cc14ce2cdf562646a2c2a06291039aed58b0c

Contents?: true

Size: 722 Bytes

Versions: 4

Compression:

Stored size: 722 Bytes

Contents

require 'spec_helper'

describe Devise::Oauth2Providable::AuthorizationsController do
  before :all do
    Devise::Oauth2Providable::Engine.load_engine_routes
  end
  describe 'routing' do
    it 'routes POST /oauth2/authorizations' do
      post('/oauth2/authorizations').should route_to('devise/oauth2_providable/authorizations#create')
    end
    it 'routes GET /oauth2/authorize' do
      get('/oauth2/authorize').should route_to('devise/oauth2_providable/authorizations#new')
    end
    it 'routes POST /oauth2/authorize' do
      #FIXME: this is valid, but the route is not being loaded into the test
      post('/oauth2/authorize').should route_to('devise/oauth2_providable/authorizations#new')
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
devise_oauth2_providable-1.1.1 spec/routing/authorizations_routing_spec.rb
devise_oauth2_providable-1.1.0 spec/routing/authorizations_routing_spec.rb
devise_oauth2_providable-1.0.5 spec/routing/authorizations_routing_spec.rb
devise_oauth2_providable-1.0.4 spec/routing/authorizations_routing_spec.rb