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