- #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: (BREAKING) 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)