diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-10-19 23:32:06 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-10-19 23:32:17 -0500 |
commit | a1df2590744ed126981dfd5b5709ff6fd5dc6476 (patch) | |
tree | 1c01e2ba7465f554a2470155c46c0309dfe7615f /actionpack/test | |
parent | cbedcb06152ed6d7e7457334cd45af5ab24ef6ea (diff) | |
download | rails-a1df2590744ed126981dfd5b5709ff6fd5dc6476.tar.gz rails-a1df2590744ed126981dfd5b5709ff6fd5dc6476.tar.bz2 rails-a1df2590744ed126981dfd5b5709ff6fd5dc6476.zip |
Replace decaying routing internals w/ rack-mount
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/routing_test.rb | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/actionpack/test/controller/routing_test.rb b/actionpack/test/controller/routing_test.rb index 67448e66b9..cbfc8267f2 100644 --- a/actionpack/test/controller/routing_test.rb +++ b/actionpack/test/controller/routing_test.rb @@ -11,14 +11,6 @@ end ROUTING = ActionController::Routing -class ROUTING::RouteBuilder - attr_reader :warn_output - - def warn(msg) - (@warn_output ||= []) << msg - end -end - # See RFC 3986, section 3.3 for allowed path characters. class UriReservedCharactersRoutingTest < Test::Unit::TestCase def setup @@ -1626,25 +1618,6 @@ class RouteSetTest < ActiveSupport::TestCase assert_equal '/pages/show/hello+world', default_route_set.generate(expected, expected) end - def test_parameter_shell - page_url = ROUTING::Route.new - page_url.requirements = {:controller => 'pages', :action => 'show', :id => /\d+/} - assert_equal({:controller => 'pages', :action => 'show'}, page_url.parameter_shell) - end - - def test_defaults - route = ROUTING::RouteBuilder.new.build '/users/:id.:format', :controller => "users", :action => "show", :format => "html" - assert_equal( - { :controller => "users", :action => "show", :format => "html" }, - route.defaults) - end - - def test_builder_complains_without_controller - assert_raise(ArgumentError) do - ROUTING::RouteBuilder.new.build '/contact', :contoller => "contact", :action => "index" - end - end - def test_build_empty_query_string assert_uri_equal '/foo', default_route_set.generate({:controller => 'foo'}) end |