Sha256: 23d5500f8ec491d5263ffac678a98136060d9629c7fb9692bb4b31759982813e

Contents?: true

Size: 1.03 KB

Versions: 6

Compression:

Stored size: 1.03 KB

Contents

require 'rails_helper'

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

    it 'routes to #index' do
      expect(get('/jpi/v1/impac/dashboards')).to route_to('mno_enterprise/jpi/v1/impac/dashboards#index')
    end

    it 'routes to #create' do
      expect(post('/jpi/v1/impac/dashboards')).to route_to('mno_enterprise/jpi/v1/impac/dashboards#create')
    end

    it 'routes to #show' do
      expect(get('/jpi/v1/impac/dashboards/2')).to route_to('mno_enterprise/jpi/v1/impac/dashboards#show', id: '2')
    end

    it 'routes to #update' do
      expect(put('/jpi/v1/impac/dashboards/2')).to route_to('mno_enterprise/jpi/v1/impac/dashboards#update', id: '2')
      expect(patch('/jpi/v1/impac/dashboards/2')).to route_to('mno_enterprise/jpi/v1/impac/dashboards#update', id: '2')
    end

    it 'routes to #destroy' do
      expect(delete('/jpi/v1/impac/dashboards/2')).to route_to('mno_enterprise/jpi/v1/impac/dashboards#destroy', id: '2')
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mno-enterprise-api-3.3.3 spec/routing/mno_enterprise/jpi/v1/impac/dashboards_controller_routing_spec.rb
mno-enterprise-api-3.3.2 spec/routing/mno_enterprise/jpi/v1/impac/dashboards_controller_routing_spec.rb
mno-enterprise-api-3.2.1 spec/routing/mno_enterprise/jpi/v1/impac/dashboards_controller_routing_spec.rb
mno-enterprise-api-3.3.1 spec/routing/mno_enterprise/jpi/v1/impac/dashboards_controller_routing_spec.rb
mno-enterprise-api-3.3.0 spec/routing/mno_enterprise/jpi/v1/impac/dashboards_controller_routing_spec.rb
mno-enterprise-api-3.2.0 spec/routing/mno_enterprise/jpi/v1/impac/dashboards_controller_routing_spec.rb