Skip to content

Commit 75b972e

Browse files
authored
Fix compatibility with Minitest 5.19+ (#289)
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
1 parent 175eab1 commit 75b972e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

lib/fog/test_helpers/minitest/assertions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require "fog/schema/data_validator"
22

3-
module MiniTest::Assertions
3+
module Minitest::Assertions
44
# Compares a hash's structure against a reference schema hash and returns true
55
# when they match. Fog::Schema::Datavalidator is used for the validation.
66
def assert_match_schema(actual, schema, message = nil, options = {})
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module MiniTest::Expectations
1+
module Minitest::Expectations
22
infect_an_assertion :assert_match_schema, :must_match_schema, :reverse
33
end

spec/service_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class Mock; def initialize(*_args); end; end
172172

173173
describe "when config object can configure the service itself" do
174174
it "ignores the global and its values" do
175-
@config = MiniTest::Mock.new
175+
@config = Minitest::Mock.new
176176
def @config.config_service?; true; end
177177
def @config.nil?; false; end
178178
def @config.==(other); object_id == other.object_id; end

0 commit comments

Comments
 (0)