From a7009172728fbc107cdae1e107003601dcb8fa76 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Tue, 19 Feb 2013 09:21:03 -0300 Subject: Fix rake routes output in railties test --- railties/test/application/rake_test.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'railties/test/application') 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 -- cgit v1.2.3