diff options
author | José Valim <jose.valim@gmail.com> | 2011-05-05 03:32:55 -0700 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2011-05-05 03:32:55 -0700 |
commit | 5e1960ea200274ec2157f5fae1c91ee722b56498 (patch) | |
tree | 9ae27d81aa99eb152575e714415f4e395ff7e3c0 /railties/test/application | |
parent | 008b178a90cf6a9eb70015373cc39b8c6f40ed35 (diff) | |
parent | 97f9000cf2c4cfad91b074c8fd08aee2ea954ee5 (diff) | |
download | rails-5e1960ea200274ec2157f5fae1c91ee722b56498.tar.gz rails-5e1960ea200274ec2157f5fae1c91ee722b56498.tar.bz2 rails-5e1960ea200274ec2157f5fae1c91ee722b56498.zip |
Merge pull request #394 from splattael/fix_rake_routes_shows_custom_assets
Display custom asset routes in `rake routes`
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 59e5ef4dee..a8bcf7beaf 100644 --- a/railties/test/application/rake_test.rb +++ b/railties/test/application/rake_test.rb @@ -64,6 +64,15 @@ module ApplicationTests assert_match 'cart GET /cart(.:format)', Dir.chdir(app_path){ `rake routes` } end + def test_rake_routes_shows_custom_assets + app_file "config/routes.rb", <<-RUBY + AppTemplate::Application.routes.draw do + get '/custom/assets', :to => 'custom_assets#show' + end + RUBY + assert_match 'custom_assets GET /custom/assets(.:format)', Dir.chdir(app_path){ `rake routes` } + end + def test_model_and_migration_generator_with_change_syntax Dir.chdir(app_path) do `rails generate model user username:string password:string` |