Sha256: 864f8c83fb217806df859af076286697fd773a36cdee94545e92ca8326c1bd24
Contents?: true
Size: 1.31 KB
Versions: 3
Compression:
Stored size: 1.31 KB
Contents
require 'rails_helper' module MnoEnterprise RSpec.describe Jpi::V1::Admin::Impac::DashboardTemplatesController, type: :routing do routes { MnoEnterprise::Engine.routes } it 'routes to #index' do expect(get('/jpi/v1/admin/impac/dashboard_templates')).to route_to('mno_enterprise/jpi/v1/admin/impac/dashboard_templates#index', format: 'json') end it 'routes to #create' do expect(post('/jpi/v1/admin/impac/dashboard_templates')).to route_to('mno_enterprise/jpi/v1/admin/impac/dashboard_templates#create', format: 'json') end it 'routes to #show' do expect(get('/jpi/v1/admin/impac/dashboard_templates/2')).to route_to('mno_enterprise/jpi/v1/admin/impac/dashboard_templates#show', id: '2', format: 'json') end it 'routes to #update' do expect(put('/jpi/v1/admin/impac/dashboard_templates/2')).to route_to('mno_enterprise/jpi/v1/admin/impac/dashboard_templates#update', id: '2', format: 'json') expect(patch('/jpi/v1/admin/impac/dashboard_templates/2')).to route_to('mno_enterprise/jpi/v1/admin/impac/dashboard_templates#update', id: '2', format: 'json') end it 'routes to #destroy' do expect(delete('/jpi/v1/admin/impac/dashboard_templates/2')).to route_to('mno_enterprise/jpi/v1/admin/impac/dashboard_templates#destroy', id: '2', format: 'json') end end end
Version data entries
3 entries across 3 versions & 1 rubygems