Skip to content

Commit

Permalink
Fix compatibility with Minitest 5.19+
Browse files Browse the repository at this point in the history
The `MiniTest` was renamed to `Minitest`:

minitest/minitest@9a57c52

And the `MiniTest` constant is now loaded just when `MT_COMPAT` environment variable is set:

minitest/minitest@a2c6c18
  • Loading branch information
voxik committed Aug 3, 2023
1 parent 2ea29be commit 254f80a
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion test/helper_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require("test_helper")

class HelperTest < MiniTest::Test
class HelperTest < Minitest::Test
include(CompileCacheISeqHelper)
include(TmpdirHelper)

Expand Down
2 changes: 1 addition & 1 deletion test/load_path_cache/cache_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

module Bootsnap
module LoadPathCache
class CacheTest < MiniTest::Test
class CacheTest < Minitest::Test
include LoadPathCacheHelper

def setup
Expand Down
2 changes: 1 addition & 1 deletion test/load_path_cache/change_observer_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

module Bootsnap
module LoadPathCache
class ChangeObserverTest < MiniTest::Test
class ChangeObserverTest < Minitest::Test
include LoadPathCacheHelper

def setup
Expand Down
2 changes: 1 addition & 1 deletion test/load_path_cache/core_ext/kernel_require_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_uses_the_same_duck_type_as_require
end
end

class KernelLoadTest < MiniTest::Test
class KernelLoadTest < Minitest::Test
def setup
@initial_dir = Dir.pwd
@dir1 = File.realpath(Dir.mktmpdir)
Expand Down
2 changes: 1 addition & 1 deletion test/load_path_cache/loaded_features_index_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

module Bootsnap
module LoadPathCache
class LoadedFeaturesIndexTest < MiniTest::Test
class LoadedFeaturesIndexTest < Minitest::Test
include LoadPathCacheHelper

def setup
Expand Down
2 changes: 1 addition & 1 deletion test/load_path_cache/path_scanner_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

module Bootsnap
module LoadPathCache
class PathScannerTest < MiniTest::Test
class PathScannerTest < Minitest::Test
include LoadPathCacheHelper

DLEXT = RbConfig::CONFIG["DLEXT"]
Expand Down
2 changes: 1 addition & 1 deletion test/load_path_cache/path_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

module Bootsnap
module LoadPathCache
class PathTest < MiniTest::Test
class PathTest < Minitest::Test
include LoadPathCacheHelper

def setup
Expand Down
2 changes: 1 addition & 1 deletion test/load_path_cache/store_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

module Bootsnap
module LoadPathCache
class StoreTest < MiniTest::Test
class StoreTest < Minitest::Test
include LoadPathCacheHelper

def setup
Expand Down
2 changes: 1 addition & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def self.fetch(*)
end
end

module MiniTest
module Minitest
class Test
module Help
class << self
Expand Down

0 comments on commit 254f80a

Please sign in to comment.