Sha256: 2b2fe600df05e2ba8f7cc404441404e137f7b499b48c1caf5cc4ea19772f82f7

Contents?: true

Size: 460 Bytes

Versions: 31

Compression:

Stored size: 460 Bytes

Contents

describe 'Catalog controller', type: :routing do
  describe 'routing' do
    routes { Spotlight::Engine.routes }

    it 'routes to #edit' do
      expect(get('/1/catalog/dq287tq6352/edit')).to route_to('spotlight/catalog#edit', exhibit_id: '1', id: 'dq287tq6352')
    end

    it 'routes to #manifest' do
      expect(get('/1/catalog/1-1/manifest.json')).to route_to('spotlight/catalog#manifest', exhibit_id: '1', id: '1-1', format: 'json')
    end
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
blacklight-spotlight-2.3.3 spec/routing/spotlight/exhibit_catalog_spec.rb
blacklight-spotlight-2.3.2 spec/routing/spotlight/exhibit_catalog_spec.rb
blacklight-spotlight-2.3.1 spec/routing/spotlight/exhibit_catalog_spec.rb
blacklight-spotlight-2.3.0 spec/routing/spotlight/exhibit_catalog_spec.rb
blacklight-spotlight-2.2.1 spec/routing/spotlight/exhibit_catalog_spec.rb
blacklight-spotlight-2.2.0 spec/routing/spotlight/exhibit_catalog_spec.rb
blacklight-spotlight-2.1.0 spec/routing/spotlight/exhibit_catalog_spec.rb
blacklight-spotlight-2.0.2 spec/routing/spotlight/exhibit_catalog_spec.rb
blacklight-spotlight-2.0.1 spec/routing/spotlight/exhibit_catalog_spec.rb
blacklight-spotlight-2.0.0 spec/routing/spotlight/exhibit_catalog_spec.rb
blacklight-spotlight-2.0.0.rc6 spec/routing/spotlight/exhibit_catalog_spec.rb
blacklight-spotlight-2.0.0.rc5 spec/routing/spotlight/exhibit_catalog_spec.rb
blacklight-spotlight-2.0.0.rc4 spec/routing/spotlight/exhibit_catalog_spec.rb
blacklight-spotlight-2.0.0.rc3 spec/routing/spotlight/exhibit_catalog_spec.rb
blacklight-spotlight-2.0.0.rc2 spec/routing/spotlight/exhibit_catalog_spec.rb
blacklight-spotlight-2.0.0.rc1 spec/routing/spotlight/exhibit_catalog_spec.rb
blacklight-spotlight-1.5.1 spec/routing/spotlight/exhibit_catalog_spec.rb
blacklight-spotlight-1.4.1 spec/routing/spotlight/exhibit_catalog_spec.rb
blacklight-spotlight-1.4.0 spec/routing/spotlight/exhibit_catalog_spec.rb
blacklight-spotlight-1.3.0 spec/routing/spotlight/exhibit_catalog_spec.rb