diff options
author | kennyj <kennyj@gmail.com> | 2012-06-10 23:26:55 +0900 |
---|---|---|
committer | Sugino Yasuhiro <suginoyasuhiro@gmail.com> | 2012-06-12 00:29:45 +0900 |
commit | 358c5e893ae08a21b89cf6478d98fa3ec23d8f99 (patch) | |
tree | 71532117d66a3fa0ab9f928a614417add4f4049e /railties | |
parent | ca1edd44c94be6770842ccea8bec2e58e823a21e (diff) | |
download | rails-358c5e893ae08a21b89cf6478d98fa3ec23d8f99.tar.gz rails-358c5e893ae08a21b89cf6478d98fa3ec23d8f99.tar.bz2 rails-358c5e893ae08a21b89cf6478d98fa3ec23d8f99.zip |
Added a testcase for #6690.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/test/application/rake_test.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/railties/test/application/rake_test.rb b/railties/test/application/rake_test.rb index 8cf867da3c..eac471a07e 100644 --- a/railties/test/application/rake_test.rb +++ b/railties/test/application/rake_test.rb @@ -190,5 +190,16 @@ module ApplicationTests end end + def test_copy_templates + Dir.chdir(app_path) do + `bundle exec rake rails:templates:copy` + %w(controller mailer scaffold).each do |dir| + assert File.exists?(File.join(app_path, 'lib', 'templates', 'erb', dir)) + end + %w(controller helper scaffold_controller assets).each do |dir| + assert File.exists?(File.join(app_path, 'lib', 'templates', 'rails', dir)) + end + end + end end end |