Skip to content

Commit 6a2bd04

Browse files
committed
Un-pend a test for catalog URLs with slashes in the document ID
Ref #911 Solr documents with a slash in the ID seem to route correctly without additional changes now. I tested by adding a document to the index and then checking its catalog URL; Rails's link_to seems to automatically generate a link with an encoded slash. Unfortunately this does not apply to a period, so full URLs won't work.
1 parent 3e3e63c commit 6a2bd04

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

spec/routing/catalog_routing_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
end
5555

5656
it "routes ids with a literal '/" do
57-
skip "This works if you configure your routing to have very liberal constraints on :id.. not sure how to go about testing it though"
5857
expect(get: solr_document_path(SolrDocument.new(id: 'and/or'))).to route_to(controller: 'catalog', action: 'show', id: 'and/or')
5958
end
6059
end

0 commit comments

Comments
 (0)