1
0
Fork 0
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:
Carlos Antonio da Silva 2013-02-19 09:21:03 -03:00
parent 66237cd2b7
commit a700917272

View file

@ -141,7 +141,9 @@ module ApplicationTests
get '/cart', to: 'cart#show' get '/cart', to: 'cart#show'
end end
RUBY 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 end
def test_rake_routes_displays_message_when_no_routes_are_defined def test_rake_routes_displays_message_when_no_routes_are_defined