aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/generators
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-02-12 21:13:40 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2016-02-15 22:13:32 +0900
commit0146a055c001d0e48eaa5c5df8ccc8a5d15f6708 (patch)
tree250f86268858d797fe280a4d6f1d7e4849fb91b3 /railties/test/generators
parent737b718ea0c88d3f6c139343f957f386e06fffc9 (diff)
downloadrails-0146a055c001d0e48eaa5c5df8ccc8a5d15f6708.tar.gz
rails-0146a055c001d0e48eaa5c5df8ccc8a5d15f6708.tar.bz2
rails-0146a055c001d0e48eaa5c5df8ccc8a5d15f6708.zip
generate mailer views in Rails API
View files is necessary to send mail, it should be generated even Rails API. Fixes #23617
Diffstat (limited to 'railties/test/generators')
-rw-r--r--railties/test/generators/api_app_generator_test.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/test/generators/api_app_generator_test.rb b/railties/test/generators/api_app_generator_test.rb
index 1ea5661006..8e1cd0891a 100644
--- a/railties/test/generators/api_app_generator_test.rb
+++ b/railties/test/generators/api_app_generator_test.rb
@@ -73,6 +73,8 @@ class ApiAppGeneratorTest < Rails::Generators::TestCase
app/controllers
app/mailers
app/models
+ app/views/layouts/mailer.html.erb
+ app/views/layouts/mailer.text.erb
config/environments
config/initializers
config/locales
@@ -94,7 +96,7 @@ class ApiAppGeneratorTest < Rails::Generators::TestCase
def skipped_files
%w(app/assets
app/helpers
- app/views
+ app/views/layouts/application.html.erb
config/initializers/assets.rb
config/initializers/cookies_serializer.rb
config/initializers/session_store.rb