Skip to content

Commit ed4e847

Browse files
committed
Cut 0.33.0
1 parent dc49783 commit ed4e847

File tree

5 files changed

+23
-2
lines changed

5 files changed

+23
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111

1212
## master (unreleased)
1313

14+
## 0.33.0 (2023-10-21)
15+
1416
### New features
1517

1618
* [#266](https://github.com/rubocop/rubocop-minitest/pull/266): Make `Minitest/AssertEqual` aware of `assert_operator`. ([@koic][])

docs/antora.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ name: rubocop-minitest
22
title: RuboCop Minitest
33
# We always provide version without patch here (e.g. 1.1),
44
# as patch versions should not appear in the docs.
5-
version: ~
5+
version: '0.33'
66
nav:
77
- modules/ROOT/nav.adoc

docs/modules/ROOT/pages/cops_minitest.adoc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ over `assert(expected == actual)`.
7979
----
8080
# bad
8181
assert("rubocop-minitest" == actual)
82+
assert_operator("rubocop-minitest", :==, actual)
8283
8384
# good
8485
assert_equal("rubocop-minitest", actual)
@@ -243,6 +244,7 @@ instead of using `assert(matcher.match(string))`.
243244
assert(matcher.match(string))
244245
assert(matcher.match?(string))
245246
assert(matcher =~ string)
247+
assert_operator(matcher, :=~, string)
246248
assert(matcher.match(string), 'message')
247249
248250
# good
@@ -1261,6 +1263,9 @@ over `assert(expected != actual)` or `assert(! expected == actual)`.
12611263
----
12621264
# bad
12631265
assert("rubocop-minitest" != actual)
1266+
refute("rubocop-minitest" == actual)
1267+
assert_operator("rubocop-minitest", :!=, actual)
1268+
refute_operator("rubocop-minitest", :==, actual)
12641269
12651270
# good
12661271
refute_equal("rubocop-minitest", actual)
@@ -1470,6 +1475,8 @@ instead of using `refute(matcher.match(string))`.
14701475
refute(matcher.match(string))
14711476
refute(matcher.match?(string))
14721477
refute(matcher =~ string)
1478+
refute_operator(matcher, :=~, string)
1479+
assert_operator(matcher, :!~, string)
14731480
refute(matcher.match(string), 'message')
14741481
14751482
# good

lib/rubocop/minitest/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module RuboCop
44
module Minitest
55
# This module holds the RuboCop Minitest version information.
66
module Version
7-
STRING = '0.32.2'
7+
STRING = '0.33.0'
88

99
def self.document_version
1010
STRING.match('\d+\.\d+').to_s

relnotes/v0.33.0.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
### New features
2+
3+
* [#266](https://github.com/rubocop/rubocop-minitest/pull/266): Make `Minitest/AssertEqual` aware of `assert_operator`. ([@koic][])
4+
* [#268](https://github.com/rubocop/rubocop-minitest/pull/268): Make `Minitest/AssertMatch` aware of `assert_operator`. ([@koic][])
5+
* [#267](https://github.com/rubocop/rubocop-minitest/pull/267): Make `Minitest/RefuteEqual` aware of `assert_operator` and `refute_operator`. ([@koic][])
6+
* [#269](https://github.com/rubocop/rubocop-minitest/pull/269): Make `Minitest/RefuteMatch` aware of `refute_operator` and `assert_operator`. ([@koic][])
7+
8+
### Changes
9+
10+
* [#265](https://github.com/rubocop/rubocop-minitest/pull/265): Make `Minitest/RefuteEqual` aware of `refute(expected == actual)`. ([@koic][])
11+
12+
[@koic]: https://github.com/koic

0 commit comments

Comments
 (0)