Sha256: 4b83aa437c5424fa8d3781c1601fd2d8b1711e72a14b7a195f6c1dc85e1e162c

Contents?: true

Size: 868 Bytes

Versions: 22

Compression:

Stored size: 868 Bytes

Contents

require 'spec_helper'

describe 'oauth routing', type: :routing do
  routes { BookingSync::Engine.routes }
  it 'has a bookingsync auth callback route' do
    expect(get: '/auth/bookingsync/callback').to route_to(controller: 'sessions', action: 'create')
  end

  it "doesn't capture auth callback routes for other providers" do
    expect(get: '/auth/facebook/callback').to_not route_to(controller: 'sessions',
      action: 'create')
  end

  it 'has a auth failure route' do
    expect(get: '/auth/failure').to route_to(controller: 'sessions',
      action: 'failure')
  end

  it 'has a signout route' do
    expect(get: '/signout').to route_to(controller: 'sessions',
      action: 'destroy')
  end

  it 'has a signout named route', :inject_locale_to_routes do
    expect(get: signout_path).to route_to(controller: 'sessions',
      action: 'destroy')
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
bookingsync-engine-6.0.1 spec/routing/oauth_routing_spec.rb
bookingsync-engine-6.0.0 spec/routing/oauth_routing_spec.rb
bookingsync-engine-5.1.0 spec/routing/oauth_routing_spec.rb
bookingsync-engine-5.0.0 spec/routing/oauth_routing_spec.rb
bookingsync-engine-4.0.3 spec/routing/oauth_routing_spec.rb
bookingsync-engine-4.0.2 spec/routing/oauth_routing_spec.rb
bookingsync-engine-4.0.1 spec/routing/oauth_routing_spec.rb
bookingsync-engine-4.0.0 spec/routing/oauth_routing_spec.rb
bookingsync-engine-3.0.2 spec/routing/oauth_routing_spec.rb
bookingsync-engine-3.0.1 spec/routing/oauth_routing_spec.rb
bookingsync-engine-3.0.0 spec/routing/oauth_routing_spec.rb
bookingsync-engine-2.0.2 spec/routing/oauth_routing_spec.rb
bookingsync-engine-2.0.1 spec/routing/oauth_routing_spec.rb
bookingsync-engine-2.0.0 spec/routing/oauth_routing_spec.rb
bookingsync-engine-1.1.0 spec/routing/oauth_routing_spec.rb
bookingsync-engine-1.0.2 spec/routing/oauth_routing_spec.rb
bookingsync-engine-1.0.1 spec/routing/oauth_routing_spec.rb
bookingsync-engine-1.0.0 spec/routing/oauth_routing_spec.rb
bookingsync-engine-0.5.0 spec/routing/oauth_routing_spec.rb
bookingsync-engine-0.4.6 spec/routing/oauth_routing_spec.rb