Sha256: e457a82d2f1c9691cedcec56535161d06934cf9f82924bcc95cbb6c6c7319fc8

Contents?: true

Size: 808 Bytes

Versions: 11

Compression:

Stored size: 808 Bytes

Contents

require 'rails_helper'

module MnoEnterprise
  RSpec.describe Jpi::V1::Admin::UsersController, type: :routing do
    routes { MnoEnterprise::Engine.routes }

    it 'routes to #index' do
      expect(get('/jpi/v1/admin/users')).to route_to("mno_enterprise/jpi/v1/admin/users#index", format: "json")
    end

    it 'routes to #show' do
      expect(get('/jpi/v1/admin/users/1')).to route_to("mno_enterprise/jpi/v1/admin/users#show", format: "json", id: '1')
    end

    it 'routes to #update' do
      expect(put('/jpi/v1/admin/users/1')).to route_to("mno_enterprise/jpi/v1/admin/users#update", id: '1', format: 'json')
    end

    it 'routes to #destroy' do
      expect(delete('/jpi/v1/admin/users/1')).to route_to("mno_enterprise/jpi/v1/admin/users#destroy", id: '1', format: 'json')
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
mno-enterprise-api-2.0.9 spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb
mno-enterprise-api-2.0.8 spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb
mno-enterprise-api-2.0.7 spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb
mno-enterprise-api-2.0.6 spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb
mno-enterprise-api-2.0.5 spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb
mno-enterprise-api-2.0.4 spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb
mno-enterprise-api-2.0.3 spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb
mno-enterprise-api-2.0.2 spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb
mno-enterprise-api-2.0.1 spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb
mno-enterprise-api-3.0.0 spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb
mno-enterprise-api-2.0.0 spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb