diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-08-29 10:46:25 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-08-29 10:46:25 +0000 |
commit | c4d2691ace083c2211bfe2ee9464cf36b3b454ab (patch) | |
tree | 1ee460f36c6a6f5731bf56b9f9b17628cb5fec52 /railties/test | |
parent | 5fdbac21e3b06e0190f12520e9522032b72caa6a (diff) | |
download | rails-c4d2691ace083c2211bfe2ee9464cf36b3b454ab.tar.gz rails-c4d2691ace083c2211bfe2ee9464cf36b3b454ab.tar.bz2 rails-c4d2691ace083c2211bfe2ee9464cf36b3b454ab.zip |
Railties: axe junk webrick dispatcher test
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4846 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/webrick_dispatcher_test.rb | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/railties/test/webrick_dispatcher_test.rb b/railties/test/webrick_dispatcher_test.rb deleted file mode 100644 index 7f5be65f4b..0000000000 --- a/railties/test/webrick_dispatcher_test.rb +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/env ruby - -$:.unshift(File.dirname(__FILE__) + "/../lib") - -require 'test/unit' -require 'webrick_server' - -class ParseUriTest < Test::Unit::TestCase - - def test_parse_uri_proper_behavior - assert_equal({:id=>"1", :controller=>"forum", :action=>"index"}, DispatchServlet.parse_uri('/forum/index/1')) - assert_equal({:controller=>"forum", :action=>"index"}, DispatchServlet.parse_uri('/forum')) - assert_equal({:controller=>"forum", :action=>"index"}, DispatchServlet.parse_uri('/forum/index')) - assert_equal({:controller=>"forum", :action=>"index"}, DispatchServlet.parse_uri('/forum/')) - assert_equal({:action=>"index", :module=>"admin", :controller=>"forum"}, DispatchServlet.parse_uri('/admin/forum/')) - end - - def test_parse_uri_failures - assert_equal false, DispatchServlet.parse_uri('/forum/index/1/') - assert_equal false, DispatchServlet.parse_uri('/') - assert_equal false, DispatchServlet.parse_uri('a') - assert_equal false, DispatchServlet.parse_uri('/forum//') - assert_equal false, DispatchServlet.parse_uri('/+forum/') - assert_equal false, DispatchServlet.parse_uri('forum/') - end - -end |