Sha256: e8459650b5e3896a5e002516629f92b41fd46fee3032466dec20666f99e0c20f
Contents?: true
Size: 630 Bytes
Versions: 8
Compression:
Stored size: 630 Bytes
Contents
require 'spec_helper' describe "file routes" do routes { Sufia::Engine.routes } it 'should create a featured_work' do expect(post: '/files/1/featured_work').to route_to(controller: 'featured_works', action: 'create', id: '1') end it 'should remove a featured_work' do expect(delete: '/files/1/featured_work').to route_to(controller: 'featured_works', action: 'destroy', id: '1') end it 'should update 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
8 entries across 8 versions & 1 rubygems