diff options
author | evanweaver <evanweaver@19e92222-5c0b-0410-8929-a290d50e31e9> | 2007-10-21 03:00:43 +0000 |
---|---|---|
committer | evanweaver <evanweaver@19e92222-5c0b-0410-8929-a290d50e31e9> | 2007-10-21 03:00:43 +0000 |
commit | 554c10e7b5b8adeba0922c73d526d3413c82347d (patch) | |
tree | 33909eb29744f89a7d5eeec62326b4185c73ceee /test | |
parent | 54569d08a50b409f066d05afe3735c18f99de072 (diff) | |
download | unicorn-554c10e7b5b8adeba0922c73d526d3413c82347d.tar.gz |
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@712 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'test')
-rw-r--r-- | test/test_uriclassifier.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/test_uriclassifier.rb b/test/test_uriclassifier.rb index 0075990..f222992 100644 --- a/test/test_uriclassifier.rb +++ b/test/test_uriclassifier.rb @@ -117,7 +117,7 @@ class URIClassifierTest < Test::Unit::TestCase uri_classifier.register(current, c) end - # try to resolve everything with no asserts as a fuzzing + # Try to resolve everything with no asserts as a fuzzing tests.each do |prefix| current = "" prefix.each_byte do |c| @@ -129,13 +129,13 @@ class URIClassifierTest < Test::Unit::TestCase end end - # assert that we find stuff + # Assert that we find stuff tests.each do |t| script_name, path_info, handler = uri_classifier.resolve(t) assert handler end - # assert we don't find stuff + # Assert we don't find stuff script_name, path_info, handler = uri_classifier.resolve("chicken") assert_nil handler assert_nil script_name @@ -145,7 +145,7 @@ class URIClassifierTest < Test::Unit::TestCase # Verifies that a root mounted ("/") handler resolves # such that path info matches the original URI. - # This is needed to accomodate real usage of handlers. + # This is needed to accommodate real usage of handlers. def test_root_mounted uri_classifier = URIClassifier.new root = "/" @@ -166,7 +166,7 @@ class URIClassifierTest < Test::Unit::TestCase # Verifies that a root mounted ("/") handler # is the default point, doesn't matter the order we use - # to resgister the URIs + # to register the URIs def test_classifier_order tests = ["/before", "/way_past"] root = "/" |