mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Default route was removed from default route config, patch up failing tests.
This commit is contained in:
parent
715dd10961
commit
880688a499
1 changed files with 18 additions and 0 deletions
|
@ -28,6 +28,12 @@ module ApplicationTests
|
|||
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 @@ module ApplicationTests
|
|||
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 @@ module ApplicationTests
|
|||
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue