Sha256: 372e11db0cce9ddff3a5be89091328d22a21f2c99f3844f6fbc98093caffaf2b

Contents?: true

Size: 1.54 KB

Versions: 5

Compression:

Stored size: 1.54 KB

Contents

require 'spec_helper_routing'

describe Gaku::Students::StudentSpecialtiesController do

  routes { Gaku::Core::Engine.routes }

  describe 'member' do
    it 'routes to #edit' do
      expect(get: '/students/1/student_specialties/1/edit').to route_to(
        controller: 'gaku/students/student_specialties',
        action: 'edit',
        student_id: '1',
        id: '1'
      )
    end

    it 'routes to #destroy' do
      expect(delete: '/students/1/student_specialties/1').to route_to(
        controller: 'gaku/students/student_specialties',
        action: 'destroy',
        student_id: '1',
        id: '1'
      )
    end

    it 'routes to #update' do
      expect(patch: '/students/1/student_specialties/1').to route_to(
        controller: 'gaku/students/student_specialties',
        action: 'update',
        student_id: '1',
        id: '1'
      )
    end
  end

  describe 'collection' do
    it 'routes to #new' do
      expect(get: '/students/1/student_specialties/new').to route_to(
        controller: 'gaku/students/student_specialties',
        action: 'new',
        student_id: '1'
      )
    end

    it 'routes to #create' do
      expect(post: '/students/1/student_specialties').to route_to(
        controller: 'gaku/students/student_specialties',
        action: 'create',
        student_id: '1'
      )
    end

    it 'routes to #index' do
      expect(get: '/students/1/student_specialties').to route_to(
        controller: 'gaku/students/student_specialties',
        action: 'index',
        student_id: '1'
      )
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gaku-0.2.4 frontend/spec/routing/students/student_specialties_routes_spec.rb
gaku-0.2.3 frontend/spec/routing/students/student_specialties_routes_spec.rb
gaku-0.2.2 frontend/spec/routing/students/student_specialties_routes_spec.rb
gaku-0.2.1 frontend/spec/routing/students/student_specialties_routes_spec.rb
gaku-0.2.0 frontend/spec/routing/students/student_specialties_routes_spec.rb