1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Ensure app/mailers is removed when skipping action-mailer

Closes #26145
This commit is contained in:
Brian Cardarella 2016-08-12 21:24:46 -04:00
parent afdc2bcc43
commit 16a257d4d0
2 changed files with 2 additions and 0 deletions

View file

@ -324,6 +324,7 @@ module Rails
remove_file "app/mailers/application_mailer.rb"
remove_file "app/views/layouts/mailer.html.erb"
remove_file "app/views/layouts/mailer.text.erb"
remove_dir "app/mailers"
end
end

View file

@ -380,6 +380,7 @@ class AppGeneratorTest < Rails::Generators::TestCase
assert_file "config/environments/production.rb" do |content|
assert_no_match(/config\.action_mailer/, content)
end
assert_no_directory "app/mailers"
end
def test_generator_has_assets_gems