Skip to content

Commit

Permalink
MiniTest -> Minitest
Browse files Browse the repository at this point in the history
`MiniTest` was changed to `Minitest` in 5.0.0:

> Renamed MiniTest to Minitest. Your pinkies will thank me. (aliased to MiniTest)

In 5.19.0 the following was changed:

> Only load minitest/unit (aka ancient MiniTest compatibility layer) if ENV

So test broke under >= 5.19.0.
  • Loading branch information
walro committed Aug 21, 2023
1 parent 1dfca9a commit 0a3b7f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/sparoid_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def test_it_sends_message_with_empty_cache_file
end

def test_it_resolves_public_ip_only_once_per_instance
dns = MiniTest::Mock.new
dns = Minitest::Mock.new
dns.expect :getresource, Resolv::IPv4.create("1.1.1.1"), ["myip.opendns.com", Resolv::DNS::Resource::IN::A]
Resolv::DNS.stub(:open, ->(_, &blk) { blk.call dns }) do
s = Sparoid::Instance.new
Expand Down

0 comments on commit 0a3b7f3

Please sign in to comment.