Skip to content

Releases: rubocop/rubocop-minitest

RuboCop Minitest 0.32.0

23 Sep 00:46
Compare
Choose a tag to compare

New features

  • #255: Add new Minitest/AssertOperator and Minitest/RefuteOperator cops. (@koic)

Bug fixes

  • #259: Fix autocorrection for Minitest/LiteralAsActualArgument, Minitest/AssertPathExists, and Minitest/RefutePathExists cops to preserve the presence or absence of argument parentheses. (@koic)

RuboCop Minitest 0.31.1

03 Sep 06:28
Compare
Choose a tag to compare

Bug fixes

  • #256: Fix a false positive for Minitest/RefuteEqual when assert(!expected == actual). (@koic)

RuboCop Minitest 0.31.0

06 May 00:31
Compare
Choose a tag to compare

New features

Changes

  • #250: (Breaking) Drop Ruby 2.6 support. (@koic)
  • #249: Handle assertions in conditionals branches in Minitest/MultipleAssertions cop. (@fatkodima)

RuboCop Minitest 0.30.0

06 Apr 08:40
Compare
Choose a tag to compare

New features

  • #248: Make Minitest/AssertInstanceOf and Minitest/RefuteInstanceOf aware of assert_equal(Class, object.class) and refute_equal(Class, object.class). (@koic)
  • #244: Make Minitest/GlobalExpectations aware of must_pattern_match and wont_pattern_match matchers. (@koic)
  • #216: Add new Minitest/NoTestCases cop. (@tejasbubane)

Bug fixes

  • #247: Prevent breaking change for assertion message in test. (@koic)

RuboCop Minitest 0.29.0

06 Mar 14:52
Compare
Choose a tag to compare

New features

RuboCop Minitest 0.28.0

20 Feb 05:13
Compare
Choose a tag to compare

New features

Changes

  • #239: Enhance AssertMatch/RefuteMatch to check match? and =~ methods. (@fatkodima)

RuboCop Minitest 0.27.0

30 Jan 02:21
Compare
Choose a tag to compare

New features

Bug fixes

  • #237: Fix a false positive for Minitest/UselessAssertion when using command execution. (@fatkodima)

Changes

  • #234: Mark Minitest/AssertTruthy as unsafe. (@koic)
  • #233: Mark Minitest/RefuteFalse as unsafe. (@koic)
  • #231: Change what is considered a test case by rubocop-minitest (public method without arguments with test_ name prefix). (@fatkodima)

RuboCop Minitest 0.26.1

17 Jan 03:54
Compare
Choose a tag to compare

Bug fixes

  • #225: Fix an error for Minitest/TestFileName when using empty file. (@koic)
  • #223: Fix a false positive for Minitest/MultipleAssertions when using assertion method with block. (@fatkodima)

RuboCop Minitest 0.26.0

14 Jan 23:48
Compare
Choose a tag to compare

New features

Bug fixes

  • #210: Fix a false positive for Minitest/EmptyLineBeforeAssertionMethodsTest when using assertion method with block arg before other assertion method. (@koic)

Changes

  • #209: Mark Minitest/AssertTruthy as unsafe autocorrection. (@koic)
  • #204: Raise severity of Minitest/AssertRaisesWithRegexpArgument, Minitest/AssertWithExpectedArgument, Minitest/GlobalExpectations, Minitest/SkipEnsure, and Minitest/UnreachableAssertion cops to warning. (@koic)

RuboCop Minitest 0.25.1

25 Dec 06:17
Compare
Choose a tag to compare

Changes

  • #206: Make Minitest/AssertWithExpectedArgument aware of message variable. (@koic)