Merge pull request #26157 from y-yagi/remove_test_mailers_when_skipping_action-mailer
remove "test/mailers" directory when skipping action-mailer
This commit is contained in:
commit
3fc0bbf008
@ -325,6 +325,7 @@ def delete_action_mailer_files_skipping_action_mailer
|
|||||||
remove_file "app/views/layouts/mailer.html.erb"
|
remove_file "app/views/layouts/mailer.html.erb"
|
||||||
remove_file "app/views/layouts/mailer.text.erb"
|
remove_file "app/views/layouts/mailer.text.erb"
|
||||||
remove_dir "app/mailers"
|
remove_dir "app/mailers"
|
||||||
|
remove_dir "test/mailers"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -381,6 +381,7 @@ def test_generator_if_skip_action_mailer_is_given
|
|||||||
assert_no_match(/config\.action_mailer/, content)
|
assert_no_match(/config\.action_mailer/, content)
|
||||||
end
|
end
|
||||||
assert_no_directory "app/mailers"
|
assert_no_directory "app/mailers"
|
||||||
|
assert_no_directory "test/mailers"
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_generator_has_assets_gems
|
def test_generator_has_assets_gems
|
||||||
|
Loading…
Reference in New Issue
Block a user