Permalink
Browse files

Fix rake routes output in railties test

  • Loading branch information...
1 parent 66237cd commit a7009172728fbc107cdae1e107003601dcb8fa76 @carlosantoniodasilva carlosantoniodasilva committed Feb 19, 2013
Showing with 4 additions and 2 deletions.
  1. +4 −2 railties/test/application/rake_test.rb
@@ -141,7 +141,9 @@ def test_rake_routes_calls_the_route_inspector
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 @@ def test_rake_routes_displays_message_when_no_routes_are_defined
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

0 comments on commit a700917

Please sign in to comment.