mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix rake routes output in railties test
This commit is contained in:
parent
66237cd2b7
commit
a700917272
1 changed files with 4 additions and 2 deletions
|
@ -141,7 +141,9 @@ module ApplicationTests
|
|||
get '/cart', to: 'cart#show'
|
||||
end
|
||||
RUBY
|
||||
assert_equal "cart GET /cart(.:format) cart#show\n", Dir.chdir(app_path){ `rake routes` }
|
||||
|
||||
output = Dir.chdir(app_path){ `rake routes` }
|
||||
assert_equal "Prefix Verb URI Pattern Controller#Action\ncart GET /cart(.:format) cart#show\n", output
|
||||
end
|
||||
|
||||
def test_rake_routes_displays_message_when_no_routes_are_defined
|
||||
|
@ -156,7 +158,7 @@ module ApplicationTests
|
|||
Please add some routes in config/routes.rb.
|
||||
|
||||
For more information about routes, see the Rails guide: http://guides.rubyonrails.org/routing.html.
|
||||
MESSAGE
|
||||
MESSAGE
|
||||
end
|
||||
|
||||
def test_logger_is_flushed_when_exiting_production_rake_tasks
|
||||
|
|
Loading…
Reference in a new issue