aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/system_test_case.rb
diff options
context:
space:
mode:
authorJoe Francis <joe@lostapathy.com>2017-10-23 13:01:42 -0500
committerJoe Francis <joe@lostapathy.com>2017-10-23 13:01:42 -0500
commitb6a0e43216653f1ed1dcd3c6ac8cb7f73297c6da (patch)
tree9f216e3e0f6d6a0d9d7a51f08cfeb613244e0372 /actionpack/lib/action_dispatch/system_test_case.rb
parent8c7aa4c7bcb4ae42db8c573ba64a5eabdf54ecd1 (diff)
downloadrails-b6a0e43216653f1ed1dcd3c6ac8cb7f73297c6da.tar.gz
rails-b6a0e43216653f1ed1dcd3c6ac8cb7f73297c6da.tar.bz2
rails-b6a0e43216653f1ed1dcd3c6ac8cb7f73297c6da.zip
specify minimum capybara version for system tests
Upgraded rails applications may have a Gemfile without a new enough capybara to run system tests. Setting a version here gives the user a more direct error message than they get otherwise. Resolves #30952
Diffstat (limited to 'actionpack/lib/action_dispatch/system_test_case.rb')
-rw-r--r--actionpack/lib/action_dispatch/system_test_case.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/system_test_case.rb b/actionpack/lib/action_dispatch/system_test_case.rb
index 496328bd1d..58cea7b779 100644
--- a/actionpack/lib/action_dispatch/system_test_case.rb
+++ b/actionpack/lib/action_dispatch/system_test_case.rb
@@ -1,5 +1,7 @@
# frozen_string_literal: true
+gem "capybara", "~> 2.13"
+
require "capybara/dsl"
require "capybara/minitest"
require "action_controller"