Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added a testcase for #6690.

  • Loading branch information...
commit 358c5e893ae08a21b89cf6478d98fa3ec23d8f99 1 parent ca1edd4
@kennyj kennyj authored suginoy committed
Showing with 11 additions and 0 deletions.
  1. +11 −0 railties/test/application/rake_test.rb
View
11 railties/test/application/rake_test.rb
@@ -190,5 +190,16 @@ def test_load_activerecord_base_when_we_use_observers
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
Please sign in to comment.
Something went wrong with that request. Please try again.