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