From ca1edd44c94be6770842ccea8bec2e58e823a21e Mon Sep 17 00:00:00 2001 From: Sugino Yasuhiro Date: Sat, 9 Jun 2012 16:45:18 +0900 Subject: fix stylesheet template dir --- railties/lib/rails/tasks/framework.rake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/railties/lib/rails/tasks/framework.rake b/railties/lib/rails/tasks/framework.rake index 206ce39773..f9cff5b627 100644 --- a/railties/lib/rails/tasks/framework.rake +++ b/railties/lib/rails/tasks/framework.rake @@ -20,7 +20,7 @@ namespace :rails do project_templates = "#{Rails.root}/lib/templates" default_templates = { "erb" => %w{controller mailer scaffold}, - "rails" => %w{controller helper scaffold_controller stylesheets} } + "rails" => %w{controller helper scaffold_controller assets} } default_templates.each do |type, names| local_template_type_dir = File.join(project_templates, type) -- cgit v1.2.3 From 358c5e893ae08a21b89cf6478d98fa3ec23d8f99 Mon Sep 17 00:00:00 2001 From: kennyj Date: Sun, 10 Jun 2012 23:26:55 +0900 Subject: Added a testcase for #6690. --- railties/test/application/rake_test.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- cgit v1.2.3