Sha256: 4c305ebf3b957e749a5dbb1e8ea2561088673b758f1ad581c1428e47f5afef55

Contents?: true

Size: 606 Bytes

Versions: 16

Compression:

Stored size: 606 Bytes

Contents

describe "file routes", type: :routing do
  routes { Sufia::Engine.routes }

  it 'creates a featured_work' do
    expect(post: '/works/7/featured_work').to route_to(controller: 'featured_works', action: 'create', id: '7')
  end
  it 'removes a featured_work' do
    expect(delete: '/works/7/featured_work').to route_to(controller: 'featured_works', action: 'destroy', id: '7')
  end

  it 'updates a collection of featured works' do
    expect(featured_work_lists_path).to eq '/featured_works'
    expect(post: '/featured_works').to route_to(controller: 'featured_work_lists', action: 'create')
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
sufia-7.4.1 spec/routing/featured_works_route_spec.rb
sufia-7.4.0 spec/routing/featured_works_route_spec.rb
sufia-7.3.1 spec/routing/featured_works_route_spec.rb
sufia-7.3.0 spec/routing/featured_works_route_spec.rb
sufia-7.3.0.rc3 spec/routing/featured_works_route_spec.rb
sufia-7.3.0.rc2 spec/routing/featured_works_route_spec.rb
sufia-7.3.0.rc1 spec/routing/featured_works_route_spec.rb
sufia-7.2.0 spec/routing/featured_works_route_spec.rb
sufia-7.1.0 spec/routing/featured_works_route_spec.rb
sufia-7.0.0 spec/routing/featured_works_route_spec.rb
sufia-7.0.0.rc2 spec/routing/featured_works_route_spec.rb
sufia-7.0.0.rc1 spec/routing/featured_works_route_spec.rb
sufia-7.0.0.beta4 spec/routing/featured_works_route_spec.rb
sufia-7.0.0.beta3 spec/routing/featured_works_route_spec.rb
sufia-7.0.0.beta2 spec/routing/featured_works_route_spec.rb
sufia-7.0.0.beta1 spec/routing/featured_works_route_spec.rb