From f122744e9a984e663eaad4ff31696f9a54e5af1b Mon Sep 17 00:00:00 2001 From: Steve Polito Date: Mon, 18 Mar 2024 19:57:11 -0400 Subject: [PATCH] [WIP] Attempt to fix CI failure Rails `main` is [currently][] set to `7.2.0.alpha`. However, `ci.yml` uses `'main'` for the `RAILS_VERSION`. [currently]: https://github.com/rails/rails/blob/5ab13c5a7798c2a9f96bebb1c68285dfb842d4f9/RAILS_VERSION --- lib/rspec/rails/example/system_example_group.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rspec/rails/example/system_example_group.rb b/lib/rspec/rails/example/system_example_group.rb index aaa8e66ab..3ffb5a4e2 100644 --- a/lib/rspec/rails/example/system_example_group.rb +++ b/lib/rspec/rails/example/system_example_group.rb @@ -137,7 +137,7 @@ def initialize(*args, &blk) self.class.before do # A user may have already set the driver, so only default if driver # is not set - if ::Rails::VERSION::STRING.to_f >= 7.2 + if ::Rails::VERSION::STRING == "main" driven_by(:selenium_chrome_headless) unless @driver else driven_by(:selenium) unless @driver