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:
parent
afdc2bcc43
commit
16a257d4d0
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue