Sha256: e8c963c50df77ae3b10569d4456e12bca985a73163f06ffbf854225e3df81c08
Contents?: true
Size: 1.17 KB
Versions: 4
Compression:
Stored size: 1.17 KB
Contents
require 'rails_helper' module CitizenBudgetModel RSpec.describe OrganizationsController, type: :routing do describe 'routing' do routes { Engine.routes } it 'routes to #index' do expect(get: '/organizations').to route_to('citizen_budget_model/organizations#index') end it 'routes to #new' do expect(get: '/organizations/new').to route_to('citizen_budget_model/organizations#new') end it 'routes to #show' do expect(get: '/organizations/1').to route_to('citizen_budget_model/organizations#show', id: '1') end it 'routes to #edit' do expect(get: '/organizations/1/edit').to route_to('citizen_budget_model/organizations#edit', id: '1') end it 'routes to #create' do expect(post: '/organizations').to route_to('citizen_budget_model/organizations#create') end it 'routes to #update' do expect(put: '/organizations/1').to route_to('citizen_budget_model/organizations#update', id: '1') end it 'routes to #destroy' do expect(delete: '/organizations/1').to route_to('citizen_budget_model/organizations#destroy', id: '1') end end end end
Version data entries
4 entries across 4 versions & 1 rubygems