Add RUBY_VERSION conditional

This commit is contained in:
Sean Doyle 2023-08-02 09:56:08 -04:00
parent 9a53234695
commit 425f100f08
2 changed files with 11 additions and 3 deletions

View File

@ -15,7 +15,12 @@ gem "rake", ">= 13"
gem "sprockets-rails", ">= 2.0.0"
gem "propshaft", ">= 0.1.7"
gem "capybara", ">= 3.39"
gem "selenium-webdriver", ">= 4.11.0"
if RUBY_VERSION < "3"
gem "selenium-webdriver", "<= 4.9.0"
gem "webdrivers"
else
gem "selenium-webdriver", ">= 4.11.0"
end
gem "rack-cache", "~> 1.2"
gem "stimulus-rails"

View File

@ -59,7 +59,10 @@ end
<%- if depends_on_system_test? -%>
group :test do
# Use system testing [https://guides.rubyonrails.org/testing.html#system-testing]
gem "capybara", ">= 3.39"
gem "selenium-webdriver", ">= 4.11.0"
gem "capybara"
gem "selenium-webdriver"
<%- if RUBY_VERSION < "3.0" -%>
gem "webdrivers"
<% end %>
end
<%- end -%>