Skip to content

Commit

Permalink
It's Minitest now, not MiniTest
Browse files Browse the repository at this point in the history
  • Loading branch information
bblimke committed Aug 13, 2023
1 parent 02a0465 commit ece01dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions minitest/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
require 'minitest/autorun'
require 'webmock/minitest'

test_class = defined?(MiniTest::Test) ? MiniTest::Test : MiniTest::Unit::TestCase
test_class = defined?(Minitest::Test) ? Minitest::Test : MiniTest::Unit::TestCase

test_class.class_eval do

Expand All @@ -28,7 +28,7 @@ def assert_raise_with_message(e, message, &block)
end

def assert_fail(message, &block)
assert_raise_with_message(MiniTest::Assertion, message, &block)
assert_raise_with_message(Minitest::Assertion, message, &block)
end

end
2 changes: 1 addition & 1 deletion minitest/test_webmock.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
require File.expand_path(File.dirname(__FILE__) + '/test_helper')
require File.expand_path(File.dirname(__FILE__) + '/../test/shared_test')

test_class = defined?(MiniTest::Test) ? MiniTest::Test : MiniTest::Unit::TestCase
test_class = defined?(Minitest::Test) ? Minitest::Test : MiniTest::Unit::TestCase


class MiniTestWebMock < test_class
Expand Down

0 comments on commit ece01dc

Please sign in to comment.