diff --git a/CHANGELOG.md b/CHANGELOG.md index 31095369..f762aad7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## master (unreleased) +## 0.20.1 (2022-06-13) + ### Bug fixes * [#175](https://github.com/rubocop/rubocop-minitest/pull/175): Fix raise error when using assert with block. ([@ippachi][]) diff --git a/docs/antora.yml b/docs/antora.yml index 02c36842..5305208f 100644 --- a/docs/antora.yml +++ b/docs/antora.yml @@ -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.20' nav: - modules/ROOT/nav.adoc diff --git a/docs/modules/ROOT/pages/cops_minitest.adoc b/docs/modules/ROOT/pages/cops_minitest.adoc index 86d32204..9b419b3c 100644 --- a/docs/modules/ROOT/pages/cops_minitest.adoc +++ b/docs/modules/ROOT/pages/cops_minitest.adoc @@ -619,7 +619,7 @@ and autocorrects them to use expect format. === Examples -==== EnforcedStyle: _ +==== EnforcedStyle: any (default) [source,ruby] ---- @@ -628,6 +628,11 @@ musts.must_equal expected_musts wonts.wont_match expected_wonts musts.must_raise TypeError +# good +_(musts).must_equal expected_musts +_(wonts).wont_match expected_wonts +_ { musts }.must_raise TypeError + expect(musts).must_equal expected_musts expect(wonts).wont_match expected_wonts expect { musts }.must_raise TypeError @@ -635,14 +640,9 @@ expect { musts }.must_raise TypeError value(musts).must_equal expected_musts value(wonts).wont_match expected_wonts value { musts }.must_raise TypeError - -# good -_(musts).must_equal expected_musts -_(wonts).wont_match expected_wonts -_ { musts }.must_raise TypeError ---- -==== EnforcedStyle: any (default) +==== EnforcedStyle: _ [source,ruby] ---- @@ -651,11 +651,6 @@ musts.must_equal expected_musts wonts.wont_match expected_wonts musts.must_raise TypeError -# good -_(musts).must_equal expected_musts -_(wonts).wont_match expected_wonts -_ { musts }.must_raise TypeError - expect(musts).must_equal expected_musts expect(wonts).wont_match expected_wonts expect { musts }.must_raise TypeError @@ -663,6 +658,11 @@ expect { musts }.must_raise TypeError value(musts).must_equal expected_musts value(wonts).wont_match expected_wonts value { musts }.must_raise TypeError + +# good +_(musts).must_equal expected_musts +_(wonts).wont_match expected_wonts +_ { musts }.must_raise TypeError ---- ==== EnforcedStyle: expect diff --git a/lib/rubocop/minitest/version.rb b/lib/rubocop/minitest/version.rb index 835f24a9..219d1431 100644 --- a/lib/rubocop/minitest/version.rb +++ b/lib/rubocop/minitest/version.rb @@ -4,7 +4,7 @@ module RuboCop module Minitest # This module holds the RuboCop Minitest version information. module Version - STRING = '0.20.0' + STRING = '0.20.1' def self.document_version STRING.match('\d+\.\d+').to_s diff --git a/relnotes/v0.20.1.md b/relnotes/v0.20.1.md new file mode 100644 index 00000000..274fe33d --- /dev/null +++ b/relnotes/v0.20.1.md @@ -0,0 +1,5 @@ +### Bug fixes + +* [#175](https://github.com/rubocop/rubocop-minitest/pull/175): Fix raise error when using assert with block. ([@ippachi][]) + +[@ippachi]: https://github.com/ippachi