Displaying 1 result from an estimated 1 matches for "uriclassifiertext".
2007 Apr 20
2
order of registering uri''s matters for URIClassifier ?
...===============================================
Jeremy Hinegardner jeremy at hinegardner.org
-------------- next part --------------
require ''test/unit''
require ''rubygems''
require ''mongrel''
include Mongrel
class URIClassifierText < Test::Unit::TestCase
def test_classifier_order
u = URIClassifier.new
root = "/"
path = "/path"
u.register(path,1)
u.register(root,2)
["/before", "/way_past"].each do |uri|
sn,pi,h = u.reso...