Rubocop Minitest Versions Save

Code style checking for Minitest files.

v0.35.0

2 months ago

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)

v0.34.5

4 months ago

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)

v0.34.4

4 months ago

Bug fixes

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

v0.34.3

4 months ago

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)

v0.34.2

4 months ago

Bug fixes

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

v0.34.1

5 months ago

Bug fixes

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

v0.34.0

5 months ago

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)

v0.33.0

7 months ago

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)

v0.32.2

7 months ago

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)

v0.32.1

7 months ago

Bug fixes

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