Sha256: 96ddce2175e4d7637970b62cb65b033c9a43292700bebdd39eac19431a1af357

Contents?: true

Size: 740 Bytes

Versions: 4

Compression:

Stored size: 740 Bytes

Contents

require 'spec_helper'

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
anjlab-devise-oauth2-providable-1.1.3 spec/routing/authorizations_routing_spec.rb
anjlab-devise-oauth2-providable-1.1.2 spec/routing/authorizations_routing_spec.rb
anjlab-devise-oauth2-providable-1.1.1 spec/routing/authorizations_routing_spec.rb
anjlab-devise-oauth2-providable-1.1.0 spec/routing/authorizations_routing_spec.rb