Skip to content

Releases: rubocop/rubocop-minitest

RuboCop Minitest 0.10.2

06 Jan 06:09
Compare
Choose a tag to compare

Bug fixes

  • #113: Fix an error for Minitest/AssertEqual and some cops when using assert with block argument. (@koic)

RuboCop Minitest 0.10.1

24 Jul 20:27
Compare
Choose a tag to compare

Bug fixes

  • #106: Fix an error for Minitest/AssertOutput when using gvar at top level. (@koic)

RuboCop Minitest 0.10.0

12 Jul 15:03
Compare
Choose a tag to compare

New features

  • #92: Add new Minitest/LiteralAsActualArgument cop. (@fatkodima, @tsmmark)
  • #95: Add new Minitest/AssertionInLifecycleHook cop. (@fatkodima)
  • #91: Add new Minitest/AssertInDelta and Minitest/RefuteInDelta cops. (@fatkodima)
  • #89: Add new Minitest/TestMethodName cop. (@fatkodima)
  • #83: New cops AssertPathExists and RefutePathExists check for use of assert_path_exists/refute_path_exists instead of assert(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 and RefuteKindOf check for use of assert_kind_of/refute_kind_of instead of assert(foo.kind_of?(Class))/refute(foo.kind_of?(Class)). (@fatkodima)
  • #85: Add autocorrect to Rails/AssertEmptyLiteral cop. (@fatkodima)

Changes

  • #104: Require RuboCop 0.87 or higher. (@koic)

RuboCop Minitest 0.9.0

13 Apr 12:41
Compare
Choose a tag to compare

Bug fixes

  • #75: Fix a false negative for Minitest/GlobalExpectations when using global expectation methods with no arguments. (@koic)

Changes

  • #73: The Minitest department works on file names end with _test.rb by default. (@koic)
  • #77: (BREAKING) Drop support for Ruby 2.3. (@koic)

RuboCop Minitest 0.8.1

06 Apr 04:46
Compare
Choose a tag to compare

Bug fixes

  • #72: Fix some false negatives for Minitest/GlobalExpectations. (@andrykonchin)

RuboCop Minitest 0.8.0

23 Mar 15:27
Compare
Choose a tag to compare

New features

  • #66: Support all expectations of Minitest::Expectations for Minitest/GlobalExpectations cop. (@koic)

Bug fixes

  • #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)

RuboCop Minitest 0.7.0

09 Mar 05:58
Compare
Choose a tag to compare

New features

  • #60: Add new cop Minitest/GlobalExpectations to check for deprecated global expectations. (@tejasbubane)

Bug fixes

  • #58: Fix a false negative for Minitest/AssertMatch and Minitest/RefuteMatch when an argument is enclosed in redundant parentheses. (@koic)
  • #59: Fix a false negative for Minitest/AssertRespondTo and Minitest/RefuteRespondTo when an argument is enclosed in redundant parentheses. (@koic)
  • #61: Fix a false negative for Minitest/AssertInstanceOf and Minitest/RefuteInstanceOf when an argument is enclosed in redundant parentheses. (@koic)
  • #62: Fix a false negative for Minitest/AssertEmpty and Minitest/RefuteEmpty when an argument is enclosed in redundant parentheses. (@koic)

RuboCop Minitest 0.6.2

19 Feb 01:35
Compare
Choose a tag to compare

Bug fixes

  • #55: Fix an error for Minitest/AssertIncludes when using local variable argument. (@koic)

RuboCop Minitest 0.6.1

18 Feb 11:28
Compare
Choose a tag to compare

Bug fixes

  • #52: Make Minitest/RefuteFalse cop aware of assert(!test). (@koic)
  • #52: Fix a false negative for Minitest/AssertIncludes and Minitest/RefuteIncludes when an argument is enclosed in redundant parentheses. (@koic)

RuboCop Minitest 0.6.0

07 Feb 02:24
Compare
Choose a tag to compare

New features

  • #49: New cops AssertMatch and RefuteMatch check for use of assert_match/refute_match instead of assert(foo.match(bar))/refute(foo.match(bar)). (@fsateler)