diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-02-19 09:21:03 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-02-19 09:21:03 -0300 |
commit | a7009172728fbc107cdae1e107003601dcb8fa76 (patch) | |
tree | 3da3ffde17ecb4916f1adbbf6afcba2a9dfafcee /railties/test | |
parent | 66237cd2b732b33bbc8d7fcca2899174c4866242 (diff) | |
download | rails-a7009172728fbc107cdae1e107003601dcb8fa76.tar.gz rails-a7009172728fbc107cdae1e107003601dcb8fa76.tar.bz2 rails-a7009172728fbc107cdae1e107003601dcb8fa76.zip |
Fix rake routes output in railties test
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/application/rake_test.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/railties/test/application/rake_test.rb b/railties/test/application/rake_test.rb index f457ff9251..09f2ad1209 100644 --- a/railties/test/application/rake_test.rb +++ b/railties/test/application/rake_test.rb @@ -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 |