Sha256: e457a82d2f1c9691cedcec56535161d06934cf9f82924bcc95cbb6c6c7319fc8
Contents?: true
Size: 808 Bytes
Versions: 11
Compression:
Stored size: 808 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 end end
Version data entries
11 entries across 11 versions & 1 rubygems