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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2581fbadb9e19f8827cc513bb86e86b431295047c2f37401416793de014f1d52
|
4
|
+
data.tar.gz: 8dc80007c469db266b85d99e672a47e1f7c4c245dcbc713896232afc87a97818
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9e6da24df8a6dbd427a26f00a09a4a14eed05fccfd6bfc8c31e9195237f999a3c822fda7ada6c64467d07f2542a981d1b7851e6bd2ab04cf4ac4c7c343bdb47
|
7
|
+
data.tar.gz: debd9d0030d135360d6019e85cfdd5dd090ed50781f3c68cf4b8687f6e7ac8dc917124b866298159858fe359a1017f177b61269b310ac5aed76b8dade6577f93
|
data/CHANGELOG.md
CHANGED
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
|
-
|
|
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)
|
data/relnotes/v0.11.1.md
ADDED
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.
|
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-
|
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
|