mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
regression test for bug introduced in [6a6b4392c1] [Ian White] [#22 state:resolved]
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user