Sha256: 998581649a071f9b6db948a77b71d6b875f5ac2f12ed6ddb47a6595644400945

Contents?: true

Size: 522 Bytes

Versions: 12

Compression:

Stored size: 522 Bytes

Contents

require 'spec_helper'

describe "Routing" do
  describe "Paths Generated by Custom Routes:" do
    it "should map {:controller => 'catalog', :id => '111', :action => 'librarian_view'} to /catalog/111/librarian_view" do
      expect({ :get => "/catalog/111/librarian_view" }).to route_to(:controller => 'catalog', :action => 'librarian_view', :id => "111")
      expect({ :get => librarian_view_solr_document_path('111') }).to route_to(:controller => 'catalog', :action => 'librarian_view', :id => "111")
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
blacklight-marc-8.1.4 spec/routing/routes_spec.rb
blacklight-marc-8.1.3 spec/routing/routes_spec.rb
blacklight-marc-8.1.2 spec/routing/routes_spec.rb
blacklight-marc-8.1.1 spec/routing/routes_spec.rb
blacklight-marc-8.1.0 spec/routing/routes_spec.rb
blacklight-marc-8.0.0 spec/routing/routes_spec.rb
blacklight-marc-7.2.0 spec/routing/routes_spec.rb
blacklight-marc-7.1.1 spec/routing/routes_spec.rb
blacklight-marc-7.1.0 spec/routing/routes_spec.rb
blacklight-marc-7.0.1 spec/routing/routes_spec.rb
blacklight-marc-7.0.0 spec/routing/routes_spec.rb
blacklight-marc-7.0.0.rc1 spec/routing/routes_spec.rb