aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-08-14 11:19:16 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-08-14 11:19:16 +0900
commita42ec22b0b4a8e0f966d53d2cf60f07b1445077e (patch)
tree41a23fa342cb71c132e062f010af84b6c08afaec /railties
parent6107a40c0e4d05614493bddf33d5ae8d9ce8a8d2 (diff)
downloadrails-a42ec22b0b4a8e0f966d53d2cf60f07b1445077e.tar.gz
rails-a42ec22b0b4a8e0f966d53d2cf60f07b1445077e.tar.bz2
rails-a42ec22b0b4a8e0f966d53d2cf60f07b1445077e.zip
remove "test/mailers" directory when skipping action-mailer
Related to #26146
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/generators/rails/app/app_generator.rb1
-rw-r--r--railties/test/generators/app_generator_test.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/app_generator.rb b/railties/lib/rails/generators/rails/app/app_generator.rb
index a1b1649547..ebb8aa62da 100644
--- a/railties/lib/rails/generators/rails/app/app_generator.rb
+++ b/railties/lib/rails/generators/rails/app/app_generator.rb
@@ -325,6 +325,7 @@ module Rails
remove_file "app/views/layouts/mailer.html.erb"
remove_file "app/views/layouts/mailer.text.erb"
remove_dir "app/mailers"
+ remove_dir "test/mailers"
end
end
diff --git a/railties/test/generators/app_generator_test.rb b/railties/test/generators/app_generator_test.rb
index 3b149d6cf9..60b8cb2701 100644
--- a/railties/test/generators/app_generator_test.rb
+++ b/railties/test/generators/app_generator_test.rb
@@ -381,6 +381,7 @@ class AppGeneratorTest < Rails::Generators::TestCase
assert_no_match(/config\.action_mailer/, content)
end
assert_no_directory "app/mailers"
+ assert_no_directory "test/mailers"
end
def test_generator_has_assets_gems