- #172: Fix a false positive for
Minitest/AssertPredicate
andMinitest/RefutePredicate
when using numbered parameters. (@koic)
- #167: Fix potential for valid Ruby code to be unparsable in
Minitest/DuplicateTestRun
cop. (@gjtorikian)
- #164: Add new
Minitest/DuplicateTestRun
cop. (@ignacio-chiazzo)
- #162: Make
Minitest/AssertNil
(Minitest/RefuteNil
) aware ofassert_predicate(obj, :nil?)
(refute_predicate(obj, :nil?)
). (@koic)
- #159: Fix a false positive for
Minitest/UnreachableAssertion
when using only one assertion method inassert_raises
block. (@koic)
- #155: Provide
assert_offense
,assert_correction
, andassert_no_offenses
testing APIs for custom Minitest cop development. (@koic)
- #142: Fix
Minitest/GlobalExpectations
autocorrect when receiver is lambda. (@gi) - #150: Fix a false positive for
Minitest/AssertEmpty
andRefuteEmpty
cops when usingempty
method with any arguments. (@koic)
- #143: Fix an error for
Minitest/LiteralAsActualArgumentTest
when expected and actual arguments are literals. (@koic)
- #140: Make
Minitest/AssertNil
andMinitest/RefuteNil
aware ofassert(obj.nil?)
andrefute(obj.nil?)
. (@koic)
- #136: Support Active Support's
test
method forMinitest/MultipleAssertions
andMinitest/NoAssertions
cops. (@koic)
- #131: Fix an error for
Minitest/MultipleAssertions
and fixes a false positive fortest
block. (@koic)
- #124: Add new
Minitest/NoAssertions
cop. (@ghiculescu)
- #117: Add new cop
Minitest/AssertWithExpectedArgument
to check for unintended usages ofassert
instead ofassert_equal
. (@cstyles)
- #122: Fix
Minitest/TestMethodName
for tests with multiple assertions. (@ghiculescu)
- #118: (BREAKING) Fix
Minitest/AssertEmptyLiteral
by making it check forassert_equal([], array)
instead ofassert([], array)
. (@cstyles) - #125: Require RuboCop 0.90 or higher. (@koic)
- #115: Fix a false positive for
Minitest/TestMethodName
for when defining test method has an argument, and test method without assertion methods. (@koic)
- #113: Fix an error for
Minitest/AssertEqual
and some cops when usingassert
with block argument. (@koic)
- #92: Add new
Minitest/LiteralAsActualArgument
cop. (@fatkodima, @tsmmark) - #95: Add new
Minitest/AssertionInLifecycleHook
cop. (@fatkodima) - #91: Add new
Minitest/AssertInDelta
andMinitest/RefuteInDelta
cops. (@fatkodima) - #89: Add new
Minitest/TestMethodName
cop. (@fatkodima) - #83: New cops
AssertPathExists
andRefutePathExists
check for use ofassert_path_exists
/refute_path_exists
instead ofassert(File.exist?(path))
/refute(File.exist?(path))
. (@fatkodima) - #88: Add new
Minitest/MultipleAssertions
cop. (@fatkodima) - #87: Add new
Minitest/AssertSilent
cop. (@fatkodima) - #96: Add new
Minitest/UnspecifiedException
cop. (@fatkodima) - #98: Add new
Minitest/AssertOutput
cop. (@fatkodima) - #84: New cops
AssertKindOf
andRefuteKindOf
check for use ofassert_kind_of
/refute_kind_of
instead ofassert(foo.kind_of?(Class))
/refute(foo.kind_of?(Class))
. (@fatkodima) - #85: Add autocorrect to
Rails/AssertEmptyLiteral
cop. (@fatkodima)
- #75: Fix a false negative for
Minitest/GlobalExpectations
when using global expectation methods with no arguments. (@koic)
- #73: The Minitest department works on file names end with
_test.rb
by default. (@koic) - #77: (Compatibility) Drop support for Ruby 2.3. (@koic)
- #72: Fix some false negatives for
Minitest/GlobalExpectations
. (@andrykonchin)
- #66: Support all expectations of
Minitest::Expectations
forMinitest/GlobalExpectations
cop. (@koic)
- #60: Fix
Minitest/GlobalExpectations
autocorrection for chained methods. (@tejasbubane) - #69: Fix a false negative for
Minitest/GlobalExpectations
cop when using a variable or a hash index for receiver. (@koic) - #71: Fix a false negative for
Minitest/AssertEqual
when an argument is enclosed in redundant parentheses. (@koic)
- #60: Add new cop
Minitest/GlobalExpectations
to check for deprecated global expectations. (@tejasbubane)
- #58: Fix a false negative for
Minitest/AssertMatch
andMinitest/RefuteMatch
when an argument is enclosed in redundant parentheses. (@koic) - #59: Fix a false negative for
Minitest/AssertRespondTo
andMinitest/RefuteRespondTo
when an argument is enclosed in redundant parentheses. (@koic) - #61: Fix a false negative for
Minitest/AssertInstanceOf
andMinitest/RefuteInstanceOf
when an argument is enclosed in redundant parentheses. (@koic) - #62: Fix a false negative for
Minitest/AssertEmpty
andMinitest/RefuteEmpty
when an argument is enclosed in redundant parentheses. (@koic)
- #52: Make
Minitest/RefuteFalse
cop aware ofassert(!test)
. (@koic) - #52: Fix a false negative for
Minitest/AssertIncludes
andMinitest/RefuteIncludes
when an argument is enclosed in redundant parentheses. (@koic)
- #49: New cops
AssertMatch
andRefuteMatch
check for use ofassert_match
/refute_match
instead ofassert(foo.match(bar))
/refute(foo.match(bar))
. (@fsateler)
- #42: Fix an incorrect autocorrect for some cops of
Minitest
department when using heredoc message. (@koic)
- #32: Add new
Minitest/AssertEmptyLiteral
cop. (@tejasbubane)
- #39: Fix an incorrect autocorrect for
Minitest/AssertRespondTo
andMinitest/RefuteRespondTo
when using assertion method callingrespond_to
with receiver omitted. (@koic)
- #29: Add new
Minitest/RefuteRespondTo
cop. (@herwinw) - #31: Add new
Minitest/AssertEqual
cop. (@herwinw) - #34: Add new
Minitest/AssertInstanceOf
cop. (@abhaynikam) - #35: Add new
Minitest/RefuteInstanceOf
cop. (@abhaynikam)
- #25: Add
Enabled: true
toMinitest
department config to suppressWarning: Minitest does not support Enabled parameter
. (@koic)
- #15: Add new
Minitest/RefuteIncludes
cop. (@abhaynikam) - #18: Add new
Minitest/RefuteFalse
cop. (@duduribeiro) - #20: Add new
Minitest/RefuteEmpty
cop. (@abhaynikam) - #21: Add new
Minitest/RefuteEqual
cop. (@duduribeiro) - #27: Add new
Minitest/AssertRespondTo
cop. (@duduribeiro)
- #19: Fix a false negative for
Minitest/AssertIncludes
when usinginclude
method in arguments ofassert
method. (@abhaynikam)
- #11: Add new
Minitest/RefuteNil
cop. (@tejasbubane) - #8: Add new
Minitest/AssertTruthy
cop. (@abhaynikam) - #9: Add new
Minitest/AssertIncludes
cop. (@abhaynikam) - #10: Add new
Minitest/AssertEmpty
cop. (@abhaynikam)
- Create RuboCop Minitest gem. (@koic)
- #6: Add new
Minitest/AssertNil
cop. (@duduribeiro)