Sha256: 05539d71e0c56176c0a2a49c560b6c88280195a7e1f0188e53bc7c576e31bd7d

Contents?: true

Size: 324 Bytes

Versions: 4

Compression:

Stored size: 324 Bytes

Contents

require 'spec_helper'

describe Devise::Oauth2Providable::TokensController do
  before(:each) { @routes = Devise::Oauth2Providable::Engine.routes }

  describe 'routing' do
    it 'routes POST /oauth2/token' do
      post('/token').should route_to('devise/oauth2_providable/tokens#create', 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/tokens_routing_spec.rb
anjlab-devise-oauth2-providable-1.1.2 spec/routing/tokens_routing_spec.rb
anjlab-devise-oauth2-providable-1.1.1 spec/routing/tokens_routing_spec.rb
anjlab-devise-oauth2-providable-1.1.0 spec/routing/tokens_routing_spec.rb