Sha256: b4d049e7fdc60ce9e52732866f9e324dacb5d5200170c68626f4b901f2a271d0

Contents?: true

Size: 963 Bytes

Versions: 7

Compression:

Stored size: 963 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

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
mno-enterprise-api-3.0.7 spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb
mno-enterprise-api-3.0.6 spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb
mno-enterprise-api-3.0.5 spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb
mno-enterprise-api-3.0.4 spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb
mno-enterprise-api-3.0.3 spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb
mno-enterprise-api-3.0.2 spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb
mno-enterprise-api-3.0.1 spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb