Permalink
Browse files

Default route was removed from default route config, patch up failing…

… tests.
  • Loading branch information...
1 parent 715dd10 commit 880688a499b4066d6654a4cd11b76d14cc62865e @josh josh committed Dec 21, 2009
Showing with 18 additions and 0 deletions.
  1. +18 −0 railties/test/application/routing_test.rb
@@ -28,6 +28,12 @@ def index
end
RUBY
+ app_file 'config/routes.rb', <<-RUBY
+ ActionController::Routing::Routes.draw do |map|
+ match ':controller(/:action)'
+ end
+ RUBY
+
get '/foo'
assert_equal 'foo', last_response.body
end
@@ -49,6 +55,12 @@ def index
end
RUBY
+ app_file 'config/routes.rb', <<-RUBY
+ ActionController::Routing::Routes.draw do |map|
+ match ':controller(/:action)'
+ end
+ RUBY
+
get '/foo'
assert_equal 'foo', last_response.body
@@ -75,6 +87,12 @@ def index
end
RUBY
+ app_file 'config/routes.rb', <<-RUBY
+ ActionController::Routing::Routes.draw do |map|
+ match ':controller(/:action)'
+ end
+ RUBY
+
get '/foo'
assert_equal 'foo', last_response.body

0 comments on commit 880688a

Please sign in to comment.