Sha256: 3dca11c48084e4117ca4f6c65911c07aea13be7a268b2a338d31172b26793d17

Contents?: true

Size: 1.01 KB

Versions: 23

Compression:

Stored size: 1.01 KB

Contents

require 'rails_helper'

module MnoEnterprise
  RSpec.describe Jpi::V1::CurrentUsersController, type: :routing do
    routes { MnoEnterprise::Engine.routes }
    
    it 'routes to #show' do
      expect(get('/jpi/v1/current_user')).to route_to("mno_enterprise/jpi/v1/current_users#show")
    end
    
    it 'routes to #update' do
      expect(put('/jpi/v1/current_user')).to route_to("mno_enterprise/jpi/v1/current_users#update")
    end
    
    it 'routes to #update_password' do
      expect(put('/jpi/v1/current_user/update_password')).to route_to("mno_enterprise/jpi/v1/current_users#update_password")
    end
    
    # it 'routes to #create_deletion_request' do
    #   expect(post('/jpi/v1/current_user/deletion_request')).to route_to("mno_enterprise/jpi/v1/current_users#create_deletion_request")
    # end
    #
    # it 'routes to #cancel_deletion_request' do
    #   expect(delete('/jpi/v1/current_user/deletion_request')).to route_to("mno_enterprise/jpi/v1/current_users#cancel_deletion_request")
    # end
  end
end

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
mno-enterprise-api-3.1.4 spec/routing/mno_enterprise/jpi/v1/current_users_controller_routing_spec.rb
mno-enterprise-api-3.0.7 spec/routing/mno_enterprise/jpi/v1/current_users_controller_routing_spec.rb
mno-enterprise-api-2.0.9 spec/routing/mno_enterprise/jpi/v1/current_users_controller_routing_spec.rb
mno-enterprise-api-3.1.3 spec/routing/mno_enterprise/jpi/v1/current_users_controller_routing_spec.rb
mno-enterprise-api-3.0.6 spec/routing/mno_enterprise/jpi/v1/current_users_controller_routing_spec.rb
mno-enterprise-api-2.0.8 spec/routing/mno_enterprise/jpi/v1/current_users_controller_routing_spec.rb
mno-enterprise-api-3.1.2 spec/routing/mno_enterprise/jpi/v1/current_users_controller_routing_spec.rb
mno-enterprise-api-3.0.5 spec/routing/mno_enterprise/jpi/v1/current_users_controller_routing_spec.rb
mno-enterprise-api-2.0.7 spec/routing/mno_enterprise/jpi/v1/current_users_controller_routing_spec.rb
mno-enterprise-api-2.0.6 spec/routing/mno_enterprise/jpi/v1/current_users_controller_routing_spec.rb
mno-enterprise-api-2.0.5 spec/routing/mno_enterprise/jpi/v1/current_users_controller_routing_spec.rb
mno-enterprise-api-3.1.1 spec/routing/mno_enterprise/jpi/v1/current_users_controller_routing_spec.rb
mno-enterprise-api-3.0.4 spec/routing/mno_enterprise/jpi/v1/current_users_controller_routing_spec.rb
mno-enterprise-api-2.0.4 spec/routing/mno_enterprise/jpi/v1/current_users_controller_routing_spec.rb
mno-enterprise-api-3.1.0 spec/routing/mno_enterprise/jpi/v1/current_users_controller_routing_spec.rb
mno-enterprise-api-3.0.3 spec/routing/mno_enterprise/jpi/v1/current_users_controller_routing_spec.rb
mno-enterprise-api-2.0.3 spec/routing/mno_enterprise/jpi/v1/current_users_controller_routing_spec.rb
mno-enterprise-api-3.0.2 spec/routing/mno_enterprise/jpi/v1/current_users_controller_routing_spec.rb
mno-enterprise-api-2.0.2 spec/routing/mno_enterprise/jpi/v1/current_users_controller_routing_spec.rb
mno-enterprise-api-3.0.1 spec/routing/mno_enterprise/jpi/v1/current_users_controller_routing_spec.rb