Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

regression test for bug introduced in [6a6b439] [Ian White] [#22 stat…

…e:resolved]
  • Loading branch information...
commit 37599d16f2374179ebf001aeb79ff121e3d67519 1 parent ee1d508
rick authored
Showing with 13 additions and 0 deletions.
  1. +13 −0 actionpack/test/controller/base_test.rb
13 actionpack/test/controller/base_test.rb
View
@@ -167,4 +167,17 @@ def test_default_url_options_are_used_if_set
ensure
ActionController::Routing::Routes.load!
end
+end
+
+class EnsureNamedRoutesWorksTicket22BugTest < Test::Unit::TestCase
+ def test_named_routes_still_work
+ ActionController::Routing::Routes.draw do |map|
+ map.resources :things
+ end
+ EmptyController.send :include, ActionController::UrlWriter
+
+ assert_equal '/things', EmptyController.new.send(:things_path)
+ ensure
+ ActionController::Routing::Routes.load!
+ end
end
Please sign in to comment.
Something went wrong with that request. Please try again.