Skip to content

Commit

Permalink
fix: spelling of Minitest
Browse files Browse the repository at this point in the history
MiniTest got removed in 5.19
  • Loading branch information
doudou committed Aug 10, 2023
1 parent 32c51ef commit 0ee7f66
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
6 changes: 5 additions & 1 deletion lib/flexmock/minitest_integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,11 @@ def check(msg, &block)
end

def assertion_failed_error
MiniTest::Assertion
if defined?(::Minitest)
::Minitest::Assertion
else
MiniTest::Assertion
end
end

def check_failed_error
Expand Down
2 changes: 1 addition & 1 deletion lib/flexmock/test_unit_integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def check(msg, &block)
def assertion_failed_error
defined?(Test::Unit::AssertionFailedError) ?
Test::Unit::AssertionFailedError :
MiniTest::Assertion
Minitest::Assertion
end

def check_failed_error
Expand Down
4 changes: 2 additions & 2 deletions lib/flexmock/test_unit_testcase_extensions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def teardown
end
end

if defined?(MiniTest)
module MiniTest
if defined?(Minitest)
module Minitest
class Unit
class TestCase
FlexMock::GenericTestCase.define_extensions_on(self)
Expand Down
2 changes: 1 addition & 1 deletion lib/flexmock/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
class FlexMock
VERSION = "2.3.6"
VERSION = "2.3.7"
end

0 comments on commit 0ee7f66

Please sign in to comment.