Sha256: 394aef5de011bcc9ce49580dfd843a5289700b71266601a671d96886dc47928e
Contents?: true
Size: 1.46 KB
Versions: 5
Compression:
Stored size: 1.46 KB
Contents
require 'spec_helper_routing' describe Gaku::Students::SimpleGradesController do routes { Gaku::Core::Engine.routes } describe 'member' do it 'routes to #edit' do expect(get: '/students/1/simple_grades/1/edit').to route_to( controller: 'gaku/students/simple_grades', action: 'edit', student_id: '1', id: '1' ) end it 'routes to #destroy' do expect(delete: '/students/1/simple_grades/1').to route_to( controller: 'gaku/students/simple_grades', action: 'destroy', student_id: '1', id: '1' ) end it 'routes to #update' do expect(patch: '/students/1/simple_grades/1').to route_to( controller: 'gaku/students/simple_grades', action: 'update', student_id: '1', id: '1' ) end end describe 'collection' do it 'routes to #new' do expect(get: '/students/1/simple_grades/new').to route_to( controller: 'gaku/students/simple_grades', action: 'new', student_id: '1' ) end it 'routes to #create' do expect(post: '/students/1/simple_grades').to route_to( controller: 'gaku/students/simple_grades', action: 'create', student_id: '1' ) end it 'routes to #index' do expect(get: '/students/1/simple_grades').to route_to( controller: 'gaku/students/simple_grades', action: 'index', student_id: '1' ) end end end
Version data entries
5 entries across 5 versions & 1 rubygems