Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
regression test for bug introduced in [6a6b439] [Ian White] [#22 stat…
…e:resolved]
  • Loading branch information
rick committed May 6, 2008
1 parent ee1d508 commit 37599d1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions actionpack/test/controller/base_test.rb
Expand Up @@ -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

0 comments on commit 37599d1

Please sign in to comment.