Sha256: 178658ee56cff760e9fe390f3ba0ad556e7f4266063c69322ed065bd7d7cb9f1

Contents?: true

Size: 628 Bytes

Versions: 6

Compression:

Stored size: 628 Bytes

Contents

require 'spec_helper'

describe "file routes", type: :routing do
  routes { Sufia::Engine.routes }
  it 'creates a featured_work' do
    expect(post: '/files/1/featured_work').to route_to(controller: 'featured_works', action: 'create', id: '1')
  end
  it 'removes a featured_work' do
    expect(delete: '/files/1/featured_work').to route_to(controller: 'featured_works', action: 'destroy', id: '1')
  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

6 entries across 6 versions & 1 rubygems

Version Path
sufia-6.7.0 spec/routing/featured_works_route_spec.rb
sufia-6.6.1 spec/routing/featured_works_route_spec.rb
sufia-6.6.0 spec/routing/featured_works_route_spec.rb
sufia-6.5.0 spec/routing/featured_works_route_spec.rb
sufia-6.4.0 spec/routing/featured_works_route_spec.rb
sufia-6.3.0 spec/routing/featured_works_route_spec.rb