From 2cef20bc9ad662a4d1fe7d47ba985dbe307eca26 Mon Sep 17 00:00:00 2001 From: Christian Schmidt Date: Sun, 17 Sep 2023 14:36:43 +0200 Subject: [PATCH] Override existing RAILS_ENV --- spec/rails_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index aaf587f49b2..5a6b7dc76bb 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true -ENV['RAILS_ENV'] ||= 'test' +ENV['RAILS_ENV'] = 'test' # This needs to be defined before Rails is initialized RUN_SYSTEM_SPECS = ENV.fetch('RUN_SYSTEM_SPECS', false)