diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-06-11 09:40:39 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-06-11 09:40:39 -0700 |
commit | 04a7426a2e2567a0e2101c98711393fdfc40160e (patch) | |
tree | 318e2ccecdedf84c47f70bfa3f7c405d8740f6ea /railties/test | |
parent | 2eb4ebe308a027b1a0a64e9b0bf24d8e225590a4 (diff) | |
parent | 358c5e893ae08a21b89cf6478d98fa3ec23d8f99 (diff) | |
download | rails-04a7426a2e2567a0e2101c98711393fdfc40160e.tar.gz rails-04a7426a2e2567a0e2101c98711393fdfc40160e.tar.bz2 rails-04a7426a2e2567a0e2101c98711393fdfc40160e.zip |
Merge pull request #6690 from suginoy/fix-templates-copy
Fix: 'rake rails:templates:copy' doesn't work
Diffstat (limited to 'railties/test')
-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 |