Skip to content

Commit

Permalink
Cut 0.25.1
Browse files Browse the repository at this point in the history
  • Loading branch information
koic committed Dec 25, 2022
1 parent d9e0050 commit ba2ed64
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## master (unreleased)

## 0.25.1 (2022-12-25)

### Changes

* [#206](https://github.com/rubocop/rubocop-minitest/issues/206): Make `Minitest/AssertWithExpectedArgument` aware of message variable. ([@koic][])
Expand Down
2 changes: 1 addition & 1 deletion docs/antora.yml
Original file line number Diff line number Diff line change
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.25'
nav:
- modules/ROOT/nav.adoc
5 changes: 5 additions & 0 deletions docs/modules/ROOT/pages/cops_minitest.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,9 @@ assert(actual, 'message')
Tries to detect when a user accidentally used
`assert` when they meant to use `assert_equal`.

NOTE: The second argument to the `assert` method named `message` and `msg` is allowed.
Because their names are inferred as message arguments.

=== Safety

This cop is unsafe because it is not possible to determine
Expand All @@ -579,6 +582,8 @@ assert(expected, actual)
assert_equal(3, my_list.length)
assert_equal(expected, actual)
assert(foo, 'message')
assert(foo, message)
assert(foo, msg)
----

== Minitest/AssertionInLifecycleHook
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/minitest/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module RuboCop
module Minitest
# This module holds the RuboCop Minitest version information.
module Version
STRING = '0.25.0'
STRING = '0.25.1'

def self.document_version
STRING.match('\d+\.\d+').to_s
Expand Down
5 changes: 5 additions & 0 deletions relnotes/v0.25.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
### Changes

* [#206](https://github.com/rubocop/rubocop-minitest/issues/206): Make `Minitest/AssertWithExpectedArgument` aware of message variable. ([@koic][])

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

0 comments on commit ba2ed64

Please sign in to comment.