aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/generators
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-04-09 10:48:56 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-04-12 21:09:15 +0900
commita6d907e5880e15c641fc457f7e96187fe1e8509d (patch)
tree3cdb220f81da193688659a9adee8489063134a30 /railties/lib/rails/generators
parentf785ad786ae49dd6f7a2f1d77c44ea17008c6656 (diff)
downloadrails-a6d907e5880e15c641fc457f7e96187fe1e8509d.tar.gz
rails-a6d907e5880e15c641fc457f7e96187fe1e8509d.tar.bz2
rails-a6d907e5880e15c641fc457f7e96187fe1e8509d.zip
Don't generate system test files if `skip_system_test` option is specified
Diffstat (limited to 'railties/lib/rails/generators')
-rw-r--r--railties/lib/rails/generators/rails/app/templates/config/application.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/application.rb b/railties/lib/rails/generators/rails/app/templates/config/application.rb
index d5d214052f..0b1d22228e 100644
--- a/railties/lib/rails/generators/rails/app/templates/config/application.rb
+++ b/railties/lib/rails/generators/rails/app/templates/config/application.rb
@@ -34,6 +34,10 @@ module <%= app_const_base %>
# Middleware like session, flash, cookies can be added back manually.
# Skip views, helpers and assets when generating a new resource.
config.api_only = true
+<%- elsif !depends_on_system_test? -%>
+
+ # Don't generate system test files.
+ config.generators.system_tests = nil
<%- end -%>
end
end