Skip to content

Commit b3f109b

Browse files
committed
Cut 0.38.1
1 parent 0fcda28 commit b3f109b

File tree

5 files changed

+30
-2
lines changed

5 files changed

+30
-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.38.1 (2025-05-31)
15+
1416
### Bug fixes
1517

1618
* [#332](https://github.com/rubocop/rubocop-minitest/issues/332): Fix false positives for `Minitest/NoAssertions` when using matcher methods. ([@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.38'
66
nav:
77
- modules/ROOT/nav.adoc

docs/modules/ROOT/pages/cops_minitest.adoc

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,6 +1232,8 @@ end
12321232
12331233
Checks if test cases contain any assertion calls.
12341234
1235+
Matchers such as `must_equal` and `wont_match` are also treated as assertion methods.
1236+
12351237
[#examples-minitestnoassertions]
12361238
=== Examples
12371239
@@ -1249,6 +1251,23 @@ class FooTest < Minitest::Test
12491251
assert true
12501252
end
12511253
end
1254+
1255+
# bad
1256+
class FooTest < ActiveSupport::TestCase
1257+
describe 'foo' do
1258+
it 'test equal' do
1259+
end
1260+
end
1261+
end
1262+
1263+
# good
1264+
class FooTest < ActiveSupport::TestCase
1265+
describe 'foo' do
1266+
it 'test equal' do
1267+
musts.must_equal expected_musts
1268+
end
1269+
end
1270+
end
12521271
----
12531272
12541273
[#minitestnotestcases]

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.38.0'
7+
STRING = '0.38.1'
88

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

relnotes/v0.38.1.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
### Bug fixes
2+
3+
* [#332](https://github.com/rubocop/rubocop-minitest/issues/332): Fix false positives for `Minitest/NoAssertions` when using matcher methods. ([@koic][])
4+
* [#334](https://github.com/rubocop/rubocop-minitest/issues/334): Fix minitest extension for the cop generator. ([@rafaelfranca][])
5+
6+
[@koic]: https://github.com/koic
7+
[@rafaelfranca]: https://github.com/rafaelfranca

0 commit comments

Comments
 (0)