aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-10-17 16:43:17 -0500
committerJoshua Peek <josh@joshpeek.com>2009-10-17 17:35:20 -0500
commite00f57e20833a297efd1670890ebe5b030dbfdf1 (patch)
tree1dcb9c2db12e4acc1721fa07079fe4620f4a5dab /actionpack/test
parent20f0b33035aeb1ca8ca7bdfb98371b58c6fd10c1 (diff)
downloadrails-e00f57e20833a297efd1670890ebe5b030dbfdf1.tar.gz
rails-e00f57e20833a297efd1670890ebe5b030dbfdf1.tar.bz2
rails-e00f57e20833a297efd1670890ebe5b030dbfdf1.zip
No longer need this special routing exception message because these kinds of ambiguous generations are deprecated
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/controller/routing_test.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/actionpack/test/controller/routing_test.rb b/actionpack/test/controller/routing_test.rb
index 345039f5b2..7aced7b6f5 100644
--- a/actionpack/test/controller/routing_test.rb
+++ b/actionpack/test/controller/routing_test.rb
@@ -425,19 +425,6 @@ class LegacyRouteSetTests < Test::Unit::TestCase
assert_no_match /:controller=>"post"/, diff_match
end
- # this specifies the case where your formerly would get a very confusing error message with an empty diff
- def test_should_have_better_error_message_when_options_diff_is_empty
- rs.draw do |map|
- map.content '/content/:query', :controller => 'content', :action => 'show'
- end
-
- exception = assert_raise(ActionController::RoutingError) { rs.generate(:controller => 'content', :action => 'show', :use_route => "content") }
- assert_match %r[:action=>"show"], exception.message
- assert_match %r[:controller=>"content"], exception.message
- assert_match %r[you may have ambiguous routes, or you may need to supply additional parameters for this route], exception.message
- assert_match %r[content_url has the following required parameters: \["content", :query\] - are they all satisfied?], exception.message
- end
-
def test_dynamic_path_allowed
rs.draw do |map|
map.connect '*path', :controller => 'content', :action => 'show_file'