Skip to content

Commit

Permalink
Explicilty clear routes in spec app to prevent default catch-all rout…
Browse files Browse the repository at this point in the history
…e being defined at the top. This causes havoc with new Rails 2.3/3 route mapping behaviour
  • Loading branch information
ianwhite committed Sep 18, 2009
1 parent 7491225 commit dcb0b32
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spec/app.rb
Expand Up @@ -4,6 +4,7 @@
# Routing
##########

ActionController::Routing::Routes.clear!
ActionController::Routing::Routes.draw do |map|
# this tests :resource_path (or :erp), for named routes that map to resources
map.root :controller => 'forums', :action => 'index', :resource_path => '/forums'
Expand Down

0 comments on commit dcb0b32

Please sign in to comment.