diff options
author | Andrew White <andyw@pixeltrix.co.uk> | 2010-11-09 05:10:39 +0000 |
---|---|---|
committer | Andrew White <andyw@pixeltrix.co.uk> | 2010-11-09 05:24:10 +0000 |
commit | ef46b9f21a275249d1b0cf9926ffb879b0ae2c44 (patch) | |
tree | aa2f8a092c0718ac66778de55f63470465847736 /railties/test/application | |
parent | 4e0477c9b75683372f662a614ae91b158120ebe8 (diff) | |
download | rails-ef46b9f21a275249d1b0cf9926ffb879b0ae2c44.tar.gz rails-ef46b9f21a275249d1b0cf9926ffb879b0ae2c44.tar.bz2 rails-ef46b9f21a275249d1b0cf9926ffb879b0ae2c44.zip |
Strip regexp anchors from rake routes output [#5934 state:resolved]
Diffstat (limited to 'railties/test/application')
-rw-r--r-- | railties/test/application/rake_test.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/railties/test/application/rake_test.rb b/railties/test/application/rake_test.rb index 8e527236ea..719550f9d9 100644 --- a/railties/test/application/rake_test.rb +++ b/railties/test/application/rake_test.rb @@ -38,5 +38,14 @@ module ApplicationTests assert_match "Code LOC: 5 Test LOC: 0 Code to Test Ratio: 1:0.0", Dir.chdir(app_path){ `rake stats` } end + + def test_rake_routes_output_strips_anchors_from_http_verbs + app_file "config/routes.rb", <<-RUBY + AppTemplate::Application.routes.draw do + get '/cart', :to => 'cart#show' + end + RUBY + assert_match 'cart GET /cart(.:format)', Dir.chdir(app_path){ `rake routes` } + end end end |