Skip to content

Commit

Permalink
Fix minitest compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Jan 10, 2024
1 parent d9353f5 commit b43a3bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/query_comments_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b43a3bb

Please sign in to comment.