Sha256: 3b2a1f8c60bf328b1d118c203c61e36efad54f513062248c9192016053eb26d1

Contents?: true

Size: 569 Bytes

Versions: 30

Compression:

Stored size: 569 Bytes

Contents

require 'rails_helper'

module MnoEnterprise
  RSpec.describe Devise::SessionsController, type: :routing do
    routes { MnoEnterprise::Engine.routes }
    
    it 'routes to #new' do
      expect(get('/auth/users/sign_in')).to route_to("mno_enterprise/auth/sessions#new")
    end
    
    it 'routes to #create' do
      expect(post('/auth/users/sign_in')).to route_to("mno_enterprise/auth/sessions#create")
    end
    
    it 'routes to #destroy' do
      expect(delete('/auth/users/sign_out')).to route_to("mno_enterprise/auth/sessions#destroy")
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
mno-enterprise-api-3.4.0 spec/routing/devise/sessions_routing_spec.rb
mno-enterprise-api-3.3.3 spec/routing/devise/sessions_routing_spec.rb
mno-enterprise-api-3.3.2 spec/routing/devise/sessions_routing_spec.rb
mno-enterprise-api-3.2.1 spec/routing/devise/sessions_routing_spec.rb
mno-enterprise-api-3.3.1 spec/routing/devise/sessions_routing_spec.rb
mno-enterprise-api-3.3.0 spec/routing/devise/sessions_routing_spec.rb
mno-enterprise-api-3.2.0 spec/routing/devise/sessions_routing_spec.rb
mno-enterprise-api-3.1.4 spec/routing/devise/sessions_routing_spec.rb
mno-enterprise-api-3.0.7 spec/routing/devise/sessions_routing_spec.rb
mno-enterprise-api-2.0.9 spec/routing/devise/sessions_routing_spec.rb
mno-enterprise-api-3.1.3 spec/routing/devise/sessions_routing_spec.rb
mno-enterprise-api-3.0.6 spec/routing/devise/sessions_routing_spec.rb
mno-enterprise-api-2.0.8 spec/routing/devise/sessions_routing_spec.rb
mno-enterprise-api-3.1.2 spec/routing/devise/sessions_routing_spec.rb
mno-enterprise-api-3.0.5 spec/routing/devise/sessions_routing_spec.rb
mno-enterprise-api-2.0.7 spec/routing/devise/sessions_routing_spec.rb
mno-enterprise-api-2.0.6 spec/routing/devise/sessions_routing_spec.rb
mno-enterprise-api-2.0.5 spec/routing/devise/sessions_routing_spec.rb
mno-enterprise-api-3.1.1 spec/routing/devise/sessions_routing_spec.rb
mno-enterprise-api-3.0.4 spec/routing/devise/sessions_routing_spec.rb