aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEileen M. Uchitelle <eileencodes@users.noreply.github.com>2017-11-30 12:22:40 -0500
committerGitHub <noreply@github.com>2017-11-30 12:22:40 -0500
commitcf0a942a40da2065f26a929e1d0f4df25329e768 (patch)
treeda650efc9980a80e32f5fedb3aa92304c91cf366
parentf7e3c686685fb89e67293440d24356f93fa34847 (diff)
parenteb9ff5fd39ca3af20cb95b723ee622ceef10310d (diff)
downloadrails-cf0a942a40da2065f26a929e1d0f4df25329e768.tar.gz
rails-cf0a942a40da2065f26a929e1d0f4df25329e768.tar.bz2
rails-cf0a942a40da2065f26a929e1d0f4df25329e768.zip
Merge pull request #31300 from aried3r/ar/move_test_dependencies_to_test_group
Move system test dependencies to test group
-rw-r--r--railties/lib/rails/generators/rails/app/templates/Gemfile.tt17
1 files changed, 10 insertions, 7 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/Gemfile.tt b/railties/lib/rails/generators/rails/app/templates/Gemfile.tt
index 61026f5182..e3ed3e7c11 100644
--- a/railties/lib/rails/generators/rails/app/templates/Gemfile.tt
+++ b/railties/lib/rails/generators/rails/app/templates/Gemfile.tt
@@ -41,13 +41,6 @@ gem 'bootsnap', '>= 1.1.0', require: false
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
- <%- if depends_on_system_test? -%>
- # Adds support for Capybara system testing and selenium driver
- gem 'capybara', '~> 2.15'
- gem 'selenium-webdriver'
- # Easy installation and use of chromedriver to run system tests with Chrome
- gem 'chromedriver-helper'
- <%- end -%>
end
group :development do
@@ -70,6 +63,16 @@ group :development do
<% end -%>
<% end -%>
end
+
+<%- if depends_on_system_test? -%>
+group :test do
+ # Adds support for Capybara system testing and selenium driver
+ gem 'capybara', '~> 2.15'
+ gem 'selenium-webdriver'
+ # Easy installation and use of chromedriver to run system tests with Chrome
+ gem 'chromedriver-helper'
+end
+<%- end -%>
<% end -%>
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem