From fefa8ae9a172835fb6b8aef7d1dd46d58eecd49f Mon Sep 17 00:00:00 2001 From: Arun Agrawal Date: Thu, 7 Nov 2013 19:52:33 +0100 Subject: Fixed plugin_generator test Template replay needs to happen after bundle. As we are doing TemplateRecording in apply_rails_template. here are few commits for changes 8beb42cfbc41753ae4dbb91e16abcd1fb7d00356 9104702be61253f9448ca070a22fc86bb4299555 --- railties/lib/rails/generators/rails/plugin/plugin_generator.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'railties/lib/rails') diff --git a/railties/lib/rails/generators/rails/plugin/plugin_generator.rb b/railties/lib/rails/generators/rails/plugin/plugin_generator.rb index f6f529b80a..dbe1e37d8e 100644 --- a/railties/lib/rails/generators/rails/plugin/plugin_generator.rb +++ b/railties/lib/rails/generators/rails/plugin/plugin_generator.rb @@ -185,6 +185,7 @@ task default: :test end public_task :set_default_accessors! + public_task :apply_rails_template public_task :create_root def create_root_files @@ -241,7 +242,6 @@ task default: :test build(:leftovers) end - public_task :apply_rails_template, :run_bundle def name @name ||= begin @@ -255,6 +255,9 @@ task default: :test end end + public_task :run_bundle + public_task :replay_template + protected def app_templates_dir -- cgit v1.2.3