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