From 1799dca54479f830a1c9d2d189cb109b02fa6467 Mon Sep 17 00:00:00 2001 From: Kim Burgestrand Date: Mon, 27 Nov 2023 08:49:46 +0100 Subject: [PATCH] Define `Rails::VERSION` before requiring rspec-rails Order in Gemfile is well-defined. This is sufficient to define the Rails version constant, which is required to be present before rspec-rails or loading will crash with a missing constant. --- Gemfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index b21657f0..418812d1 100644 --- a/Gemfile +++ b/Gemfile @@ -7,11 +7,13 @@ gemspec gem "phlex", github: "phlex-ruby/phlex" gem "phlex-testing-capybara", github: "phlex-ruby/phlex-testing-capybara" -gem "rspec-rails" gem "combustion" gem "rubocop" gem "solargraph" gem "view_component" gem "appraisal", github: "excid3/appraisal", branch: "fix-bundle-env" gem "yard" + +# Ensure rails is loaded before rspec-rails. gem "rails" +gem "rspec-rails"