Sha256: 0a17f749e47e4345e3bfc76bd850071e7bf1bfda7edc229899a51e8e140d2122
Contents?: true
Size: 1.19 KB
Versions: 1
Compression:
Stored size: 1.19 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 it 'routes to #copy' do expect(post('/jpi/v1/impac/dashboards/2/copy')).to route_to('mno_enterprise/jpi/v1/impac/dashboards#copy', id: '2') end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mno-enterprise-api-3.4.0 | spec/routing/mno_enterprise/jpi/v1/impac/dashboards_controller_routing_spec.rb |