mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
remove "test/mailers" directory when skipping action-mailer
Related to #26146
This commit is contained in:
parent
6107a40c0e
commit
a42ec22b0b
2 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue