regression test for bug introduced in [6a6b4392c1] [Ian White] [#22 state:resolved]

This commit is contained in:
rick
2008-05-05 23:42:52 -07:00
parent ee1d508a6b
commit 37599d16f2

View File

@@ -167,4 +167,17 @@ class DefaultUrlOptionsTest < Test::Unit::TestCase
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