Permalink
Browse files

Added a testcase for #6690.

  • Loading branch information...
1 parent 42259f6 commit 1681b2c54ca240af545d884e291029e77b70fb94 @kennyj committed Jun 10, 2012
Showing with 11 additions and 0 deletions.
  1. +11 −0 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

0 comments on commit 1681b2c

Please sign in to comment.