Skip to content

Commit

Permalink
Cut 0.33.0
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Oct 21, 2023
1 parent dc49783 commit ed4e847
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -11,6 +11,8 @@

## master (unreleased)

## 0.33.0 (2023-10-21)

### New features

* [#266](https://github.com/rubocop/rubocop-minitest/pull/266): Make `Minitest/AssertEqual` aware of `assert_operator`. ([@koic][])
Expand Down
2 changes: 1 addition & 1 deletion docs/antora.yml
Expand Up @@ -2,6 +2,6 @@ name: rubocop-minitest
title: RuboCop Minitest
# We always provide version without patch here (e.g. 1.1),
# as patch versions should not appear in the docs.
version: ~
version: '0.33'
nav:
- modules/ROOT/nav.adoc
7 changes: 7 additions & 0 deletions docs/modules/ROOT/pages/cops_minitest.adoc
Expand Up @@ -79,6 +79,7 @@ over `assert(expected == actual)`.
----
# bad
assert("rubocop-minitest" == actual)
assert_operator("rubocop-minitest", :==, actual)
# good
assert_equal("rubocop-minitest", actual)
Expand Down Expand Up @@ -243,6 +244,7 @@ instead of using `assert(matcher.match(string))`.
assert(matcher.match(string))
assert(matcher.match?(string))
assert(matcher =~ string)
assert_operator(matcher, :=~, string)
assert(matcher.match(string), 'message')
# good
Expand Down Expand Up @@ -1261,6 +1263,9 @@ over `assert(expected != actual)` or `assert(! expected == actual)`.
----
# bad
assert("rubocop-minitest" != actual)
refute("rubocop-minitest" == actual)
assert_operator("rubocop-minitest", :!=, actual)
refute_operator("rubocop-minitest", :==, actual)
# good
refute_equal("rubocop-minitest", actual)
Expand Down Expand Up @@ -1470,6 +1475,8 @@ instead of using `refute(matcher.match(string))`.
refute(matcher.match(string))
refute(matcher.match?(string))
refute(matcher =~ string)
refute_operator(matcher, :=~, string)
assert_operator(matcher, :!~, string)
refute(matcher.match(string), 'message')
# good
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/minitest/version.rb
Expand Up @@ -4,7 +4,7 @@ module RuboCop
module Minitest
# This module holds the RuboCop Minitest version information.
module Version
STRING = '0.32.2'
STRING = '0.33.0'

def self.document_version
STRING.match('\d+\.\d+').to_s
Expand Down
12 changes: 12 additions & 0 deletions relnotes/v0.33.0.md
@@ -0,0 +1,12 @@
### New features

* [#266](https://github.com/rubocop/rubocop-minitest/pull/266): Make `Minitest/AssertEqual` aware of `assert_operator`. ([@koic][])
* [#268](https://github.com/rubocop/rubocop-minitest/pull/268): Make `Minitest/AssertMatch` aware of `assert_operator`. ([@koic][])
* [#267](https://github.com/rubocop/rubocop-minitest/pull/267): Make `Minitest/RefuteEqual` aware of `assert_operator` and `refute_operator`. ([@koic][])
* [#269](https://github.com/rubocop/rubocop-minitest/pull/269): Make `Minitest/RefuteMatch` aware of `refute_operator` and `assert_operator`. ([@koic][])

### Changes

* [#265](https://github.com/rubocop/rubocop-minitest/pull/265): Make `Minitest/RefuteEqual` aware of `refute(expected == actual)`. ([@koic][])

[@koic]: https://github.com/koic

0 comments on commit ed4e847

Please sign in to comment.