From 1ce20398592b98421c2ea07a96f0a851f5af327c Mon Sep 17 00:00:00 2001 From: Andy Waite <13400+andyw8@users.noreply.github.com> Date: Tue, 21 Jan 2025 12:44:13 -0500 Subject: [PATCH] Require logger for Rails 7.0 issue --- bin/test | 1 + spec/dummy/bin/rails | 1 + 2 files changed, 2 insertions(+) diff --git a/bin/test b/bin/test index 58f2bbb62..3af4b124a 100755 --- a/bin/test +++ b/bin/test @@ -7,6 +7,7 @@ ENV["DEFAULT_TEST"] = "spec/**/*_spec.rb" require "bundler/setup" require "debug/prelude" +require "logger" # can remove soon since we plan to stop supporting Rails 7.0: https://github.com/rails/rails/issues/54260 require "active_support" # Remove this when we drop support to Rails 6. require "rails/test_unit/runner" diff --git a/spec/dummy/bin/rails b/spec/dummy/bin/rails index f8883e3fe..5b39b692d 100755 --- a/spec/dummy/bin/rails +++ b/spec/dummy/bin/rails @@ -11,4 +11,5 @@ APP_PATH = File.expand_path("../config/application", __dir__) ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"]) +require "logger" # can remove soon since we plan to stop supporting Rails 7.0: https://github.com/rails/rails/issues/54260 require "rails/engine/commands"