Skip to content

Releases: rubocop/rubocop-minitest

RuboCop Minitest 0.35.0

10 Mar 08:06
Compare
Choose a tag to compare

New features

Bug fixes

  • #300: Fix an error for Minitest/AssertEmptyLiteral when only passing an empty literal. (@earlopain)

Changes

  • #303: Require RuboCop 1.61 to use AutoCorrect: Contextual. (@koic)
  • #304: Require RuboCop AST >= 1.31.1 to support Prism as a Ruby Parser. (@koic)

RuboCop Minitest 0.34.5

20 Jan 08:00
Compare
Choose a tag to compare

Bug fixes

  • #299: Fix an error for Style/UselessAssertion when passing a single argument to methods to accept two arguments. (@earlopain)

Changes

  • #298: Extend Minitest/AssertKindOf to also correct assert(object.is_a?(Class)). (@amomchilov)

RuboCop Minitest 0.34.4

09 Jan 04:34
Compare
Choose a tag to compare

Bug fixes

  • #292: Ensure all kinds of assignments are correctly handled when counting assertions. (@G-Rath)

RuboCop Minitest 0.34.3

01 Jan 06:02
Compare
Choose a tag to compare

Bug fixes

  • #287: Don't error on empty blocks when linting assert_raises. (@G-Rath)
  • #289: Don't count assertions twice when their return value is being assigned. (@G-Rath)

RuboCop Minitest 0.34.2

25 Dec 00:58
Compare
Choose a tag to compare

Bug fixes

  • #283: Fix an error for Minitest/MultipleAssertions when using || assigning a value to a variable. (@koic)

RuboCop Minitest 0.34.1

16 Dec 06:01
Compare
Choose a tag to compare

Bug fixes

  • #281: Fix an error when assigning a value to an object attribute. (@koic)

RuboCop Minitest 0.34.0 (The RubyConf Taiwan 2023 Edition)

16 Dec 01:39
Compare
Choose a tag to compare

New features

  • #272: Add new Minitest/RedundantMessageArgument cop. (@koic)
  • #279: Add new Minitest/NonExecutableTestMethod cop. (@koic)

Bug fixes

  • #275: Make Minitest/AssertMatch aware of assert_operator when running with Ruby 2.7. (@koic)
  • #271: Fix a false positive for Minitest/EmptyLineBeforeAssertionMethods and assert_raises. (@fatkodima)

Changes

  • #270: Ignore offenses inside redundant parentheses. (@sambostock)
  • #274: Require RuboCop AST 1.30.0+. (@koic)
  • #276: Enhance AssertSame/RefuteSame to check for object_id comparison. (@fatkodima)

RuboCop Minitest 0.33.0

21 Oct 06:37
Compare
Choose a tag to compare

New features

  • #266: Make Minitest/AssertEqual aware of assert_operator. (@koic)
  • #268: Make Minitest/AssertMatch aware of assert_operator. (@koic)
  • #267: Make Minitest/RefuteEqual aware of assert_operator and refute_operator. (@koic)
  • #269: Make Minitest/RefuteMatch aware of refute_operator and assert_operator. (@koic)

Changes

  • #265: Make Minitest/RefuteEqual aware of refute(expected == actual). (@koic)

RuboCop Minitest 0.32.2

27 Sep 02:08
Compare
Choose a tag to compare

Bug fixes

  • #263: Fix an error for Minitest/AssertOperator and Minitest/RefuteOperator when using unary operation argument. (@koic)

Changes

  • #264: Make Minitest/AssertOperator and Minitest/RefuteOperator allow index access with []. (@flavorjones)

RuboCop Minitest 0.32.1

24 Sep 11:18
Compare
Choose a tag to compare

Bug fixes

  • #261: Fix an error for Minitest/AssertOperator and Minitest/RefuteOperator when using variable argument. (@koic)