Sha256: 6c5890a5c98dd05811d97d6450023f50f2ed3402ec5a854d63df1e898d2dca18

Contents?: true

Size: 1.11 KB

Versions: 12

Compression:

Stored size: 1.11 KB

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

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
mno-enterprise-api-3.4.0 spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb
mno-enterprise-api-3.3.3 spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb
mno-enterprise-api-3.3.2 spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb
mno-enterprise-api-3.2.1 spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb
mno-enterprise-api-3.3.1 spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb
mno-enterprise-api-3.3.0 spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb
mno-enterprise-api-3.2.0 spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb
mno-enterprise-api-3.1.4 spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb
mno-enterprise-api-3.1.3 spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb
mno-enterprise-api-3.1.2 spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb
mno-enterprise-api-3.1.1 spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb
mno-enterprise-api-3.1.0 spec/routing/mno_enterprise/jpi/v1/admin/users_controller_routing_spec.rb