From b43a3bbda2ce2334417cca48ea3ea1291b8ddd5e Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Wed, 10 Jan 2024 20:27:47 +0100 Subject: [PATCH] Fix minitest compatibility --- test/query_comments_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/query_comments_test.rb b/test/query_comments_test.rb index a5cb9c9..e0c6ea3 100644 --- a/test/query_comments_test.rb +++ b/test/query_comments_test.rb @@ -25,8 +25,8 @@ def pool_db_config? require 'rails-api/action_controller/api' end -# Shim for compatibility with older versions of MiniTest -MiniTest::Test = MiniTest::Unit::TestCase unless defined?(MiniTest::Test) +# Shim for compatibility with older versions of Minitest +Minitest::Test = Minitest::Unit::TestCase unless defined?(Minitest::Test) # From version 4.1, ActiveRecord expects `Rails.env` to be # defined if `Rails` is defined @@ -99,7 +99,7 @@ def driver_only Marginalia::Railtie.insert -class MarginaliaTest < MiniTest::Test +class MarginaliaTest < Minitest::Test def setup # Touch the model to avoid spurious schema queries Post.first