Sha256: 1eaec37b525001461e9c5a84d581b26a6f8c7a7f1a739491f99cc73aa7f23194

Contents?: true

Size: 624 Bytes

Versions: 10

Compression:

Stored size: 624 Bytes

Contents

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

  it 'creates a featured_work' do
    expect(post: '/works/7/featured_work').to route_to(controller: 'hyrax/featured_works', action: 'create', id: '7')
  end
  it 'removes a featured_work' do
    expect(delete: '/works/7/featured_work').to route_to(controller: 'hyrax/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: 'hyrax/featured_work_lists', action: 'create')
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
hyrax-1.1.1 spec/routing/featured_works_route_spec.rb
hyrax-1.1.0 spec/routing/featured_works_route_spec.rb
hyrax-1.0.5 spec/routing/featured_works_route_spec.rb
hyrax-1.0.4 spec/routing/featured_works_route_spec.rb
hyrax-1.0.3 spec/routing/featured_works_route_spec.rb
hyrax-1.0.2 spec/routing/featured_works_route_spec.rb
hyrax-1.0.1 spec/routing/featured_works_route_spec.rb
hyrax-1.0.0.rc2 spec/routing/featured_works_route_spec.rb
hyrax-1.0.0.rc1 spec/routing/featured_works_route_spec.rb
test_hyrax-0.0.1.alpha spec/routing/featured_works_route_spec.rb