rubocop-minitest 0.11.0 → 0.11.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 81e45de61660959fcc0e02a2dd6754d7042cb167b1ef5277d327563e8bb2277c
4
- data.tar.gz: 0f36c86abdde0b5b23dd2672f295a4383da2f5ff68b8414e96bb4f932c4eb7bc
3
+ metadata.gz: 2581fbadb9e19f8827cc513bb86e86b431295047c2f37401416793de014f1d52
4
+ data.tar.gz: 8dc80007c469db266b85d99e672a47e1f7c4c245dcbc713896232afc87a97818
5
5
  SHA512:
6
- metadata.gz: c643b9d4e81ce5f966e11cebe55c40359799130eba6591a52cf7b10dca759b289167ede842a89eb3bf0f62119fbc189a28e1da611cb82afaa825662bc271aa6a
7
- data.tar.gz: 15aab2f0884dd25ef98e61b1728736f21311004c06d1d8b86454bb2bc4f9367e31e558b8843315fb1f3d7502f11ffea5ec1cbfb5acddd966bf373c4ad0b01482
6
+ metadata.gz: f9e6da24df8a6dbd427a26f00a09a4a14eed05fccfd6bfc8c31e9195237f999a3c822fda7ada6c64467d07f2542a981d1b7851e6bd2ab04cf4ac4c7c343bdb47
7
+ data.tar.gz: debd9d0030d135360d6019e85cfdd5dd090ed50781f3c68cf4b8687f6e7ac8dc917124b866298159858fe359a1017f177b61269b310ac5aed76b8dade6577f93
data/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## master (unreleased)
4
4
 
5
+ ## 0.11.1 (2021-03-31)
6
+
7
+ ### Changes
8
+
9
+ * [#126](https://github.com/rubocop/rubocop-minitest/issues/126): Mark `Minitest/AssertWithExpectedArgument` as unsafe. ([@koic][])
10
+
5
11
  ## 0.11.0 (2021-03-22)
6
12
 
7
13
  ### New features
data/config/default.yml CHANGED
@@ -97,6 +97,7 @@ Minitest/AssertTruthy:
97
97
  Minitest/AssertWithExpectedArgument:
98
98
  Description: 'This cop tries to detect when a user accidentally used `assert` when they meant to use `assert_equal`.'
99
99
  Enabled: pending
100
+ Safe: false
100
101
  VersionAdded: '0.11'
101
102
 
102
103
  Minitest/GlobalExpectations:
@@ -447,7 +447,7 @@ assert(actual, 'message')
447
447
  | Enabled by default | Safe | Supports autocorrection | VersionAdded | VersionChanged
448
448
 
449
449
  | Pending
450
- | Yes
450
+ | No
451
451
  | No
452
452
  | 0.11
453
453
  | -
@@ -456,6 +456,9 @@ assert(actual, 'message')
456
456
  This cop tries to detect when a user accidentally used
457
457
  `assert` when they meant to use `assert_equal`.
458
458
 
459
+ It is marked as unsafe because it is not possible to determine
460
+ whether the second argument of `assert` is a message or not.
461
+
459
462
  === Examples
460
463
 
461
464
  [source,ruby]
@@ -6,6 +6,9 @@ module RuboCop
6
6
  # This cop tries to detect when a user accidentally used
7
7
  # `assert` when they meant to use `assert_equal`.
8
8
  #
9
+ # It is marked as unsafe because it is not possible to determine
10
+ # whether the second argument of `assert` is a message or not.
11
+ #
9
12
  # @example
10
13
  # # bad
11
14
  # assert(3, my_list.length)
@@ -4,7 +4,7 @@ module RuboCop
4
4
  module Minitest
5
5
  # This module holds the RuboCop Minitest version information.
6
6
  module Version
7
- STRING = '0.11.0'
7
+ STRING = '0.11.1'
8
8
 
9
9
  def self.document_version
10
10
  STRING.match('\d+\.\d+').to_s
@@ -0,0 +1,5 @@
1
+ ### Changes
2
+
3
+ * [#126](https://github.com/rubocop/rubocop-minitest/issues/126): Mark `Minitest/AssertWithExpectedArgument` as unsafe. ([@koic][])
4
+
5
+ [@koic]: https://github.com/koic
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-minitest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bozhidar Batsov
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2021-03-21 00:00:00.000000000 Z
13
+ date: 2021-03-30 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rubocop
@@ -134,6 +134,7 @@ files:
134
134
  - relnotes/v0.10.2.md
135
135
  - relnotes/v0.10.3.md
136
136
  - relnotes/v0.11.0.md
137
+ - relnotes/v0.11.1.md
137
138
  - relnotes/v0.2.0.md
138
139
  - relnotes/v0.2.1.md
139
140
  - relnotes/v0.3.0.md