minitest_to_rspec 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/.rubocop_todo.yml +151 -138
- data/.travis.yml +4 -4
- data/CHANGELOG.md +31 -0
- data/README.md +1 -4
- data/Rakefile +1 -12
- data/bin/console +3 -7
- data/lib/minitest_to_rspec/version.rb +1 -1
- data/minitest_to_rspec.gemspec +11 -8
- metadata +22 -50
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7dfd012dc992fee0a64b3310e03860db713af72c
|
|
4
|
+
data.tar.gz: c71cbc4244fd4a86c54199cd0260e661ea1fffff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b0d5dd27c5e125d83468062099fc91d0b1da02583088902b1aa415a6a54db35fd26b9ff399708e4ea818c2ab9054ab8e2418bb253ad2cbcbe5d79f0c1c4fc283
|
|
7
|
+
data.tar.gz: fcda174e34b5e8e3118b2662eb1d1cf3a4a6801bd75be0b6cc7f73628b6bfaf40159164f75012c0e4fababf6352736df3e979db4bbe4adddb301a50f7ba2d64a
|
data/.rubocop.yml
CHANGED
data/.rubocop_todo.yml
CHANGED
|
@@ -1,86 +1,31 @@
|
|
|
1
1
|
# This configuration was generated by
|
|
2
2
|
# `rubocop --auto-gen-config`
|
|
3
|
-
# on
|
|
3
|
+
# on 2017-10-24 17:20:57 -0400 using RuboCop version 0.51.0.
|
|
4
4
|
# The point is for the user to remove these configuration records
|
|
5
5
|
# one by one as the offenses are removed from the code base.
|
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
|
7
7
|
# versions of RuboCop, may require this file to be generated again.
|
|
8
8
|
|
|
9
|
-
# Offense count: 1
|
|
10
|
-
Lint/AmbiguousRegexpLiteral:
|
|
11
|
-
Exclude:
|
|
12
|
-
- 'spec/fixtures/07_assert_match/in.rb'
|
|
13
|
-
|
|
14
|
-
# Offense count: 1
|
|
15
|
-
Lint/Void:
|
|
16
|
-
Exclude:
|
|
17
|
-
- 'spec/fixtures/17_expects/out.rb'
|
|
18
|
-
|
|
19
|
-
# Offense count: 2
|
|
20
|
-
# Configuration parameters: CountComments.
|
|
21
|
-
Metrics/ClassLength:
|
|
22
|
-
Max: 241
|
|
23
|
-
|
|
24
|
-
# Offense count: 5
|
|
25
|
-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes.
|
|
26
|
-
# URISchemes: http, https
|
|
27
|
-
Metrics/LineLength:
|
|
28
|
-
Max: 92
|
|
29
|
-
|
|
30
|
-
# Offense count: 3
|
|
31
|
-
# Configuration parameters: CountComments.
|
|
32
|
-
Metrics/MethodLength:
|
|
33
|
-
Max: 18
|
|
34
|
-
|
|
35
|
-
# Offense count: 3
|
|
36
|
-
# Configuration parameters: CountComments.
|
|
37
|
-
Metrics/ModuleLength:
|
|
38
|
-
Max: 282
|
|
39
|
-
|
|
40
9
|
# Offense count: 1
|
|
41
10
|
# Cop supports --auto-correct.
|
|
42
|
-
|
|
11
|
+
# Configuration parameters: Include, TreatCommentsAsGroupSeparators.
|
|
12
|
+
# Include: **/*.gemspec
|
|
13
|
+
Gemspec/OrderedDependencies:
|
|
43
14
|
Exclude:
|
|
44
|
-
- '
|
|
15
|
+
- 'minitest_to_rspec.gemspec'
|
|
45
16
|
|
|
46
17
|
# Offense count: 11
|
|
47
18
|
# Cop supports --auto-correct.
|
|
48
19
|
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
|
49
20
|
# SupportedStyles: with_first_parameter, with_fixed_indentation
|
|
50
|
-
|
|
51
|
-
Exclude:
|
|
52
|
-
- 'lib/minitest_to_rspec/subprocessors/call.rb'
|
|
53
|
-
- 'spec/lib/subprocessors/klass_spec.rb'
|
|
54
|
-
|
|
55
|
-
# Offense count: 6
|
|
56
|
-
Style/AsciiIdentifiers:
|
|
57
|
-
Exclude:
|
|
58
|
-
- 'spec/fixtures/16_stabby_lambda/in.rb'
|
|
59
|
-
- 'spec/fixtures/16_stabby_lambda/out.rb'
|
|
60
|
-
|
|
61
|
-
# Offense count: 18
|
|
62
|
-
# Cop supports --auto-correct.
|
|
63
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
|
|
64
|
-
# SupportedStyles: line_count_based, semantic, braces_for_chaining
|
|
65
|
-
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
|
66
|
-
# FunctionalMethods: let, let!, subject, watch
|
|
67
|
-
# IgnoredMethods: lambda, proc, it
|
|
68
|
-
Style/BlockDelimiters:
|
|
21
|
+
Layout/AlignParameters:
|
|
69
22
|
Exclude:
|
|
70
|
-
- 'lib/minitest_to_rspec/model/iter.rb'
|
|
71
|
-
- 'lib/minitest_to_rspec/model/klass.rb'
|
|
72
23
|
- 'lib/minitest_to_rspec/subprocessors/call.rb'
|
|
73
|
-
- 'lib/minitest_to_rspec/subprocessors/iter.rb'
|
|
74
|
-
- 'spec/lib/cli_spec.rb'
|
|
75
|
-
- 'spec/lib/model/call_spec.rb'
|
|
76
|
-
- 'spec/lib/sexp_assertions_spec.rb'
|
|
77
|
-
- 'spec/lib/subprocessors/call_spec.rb'
|
|
78
|
-
- 'spec/lib/subprocessors/iter_spec.rb'
|
|
79
24
|
- 'spec/lib/subprocessors/klass_spec.rb'
|
|
80
25
|
|
|
81
26
|
# Offense count: 16
|
|
82
27
|
# Cop supports --auto-correct.
|
|
83
|
-
|
|
28
|
+
Layout/ClosingParenthesisIndentation:
|
|
84
29
|
Exclude:
|
|
85
30
|
- 'lib/minitest_to_rspec/subprocessors/base.rb'
|
|
86
31
|
- 'lib/minitest_to_rspec/subprocessors/call.rb'
|
|
@@ -89,36 +34,27 @@ Style/ClosingParenthesisIndentation:
|
|
|
89
34
|
- 'spec/lib/subprocessors/call_spec.rb'
|
|
90
35
|
- 'spec/lib/subprocessors/klass_spec.rb'
|
|
91
36
|
|
|
92
|
-
# Offense count: 9
|
|
93
|
-
Style/Documentation:
|
|
94
|
-
Exclude:
|
|
95
|
-
- 'spec/**/*'
|
|
96
|
-
- 'test/**/*'
|
|
97
|
-
- 'lib/minitest_to_rspec.rb'
|
|
98
|
-
- 'lib/minitest_to_rspec/cli.rb'
|
|
99
|
-
- 'lib/minitest_to_rspec/converter.rb'
|
|
100
|
-
- 'lib/minitest_to_rspec/errors.rb'
|
|
101
|
-
- 'lib/minitest_to_rspec/processor.rb'
|
|
102
|
-
- 'lib/minitest_to_rspec/subprocessors/base.rb'
|
|
103
|
-
- 'lib/minitest_to_rspec/subprocessors/call.rb'
|
|
104
|
-
- 'lib/minitest_to_rspec/subprocessors/iter.rb'
|
|
105
|
-
- 'lib/minitest_to_rspec/subprocessors/klass.rb'
|
|
106
|
-
|
|
107
37
|
# Offense count: 7
|
|
108
38
|
# Cop supports --auto-correct.
|
|
109
39
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
110
40
|
# SupportedStyles: leading, trailing
|
|
111
|
-
|
|
41
|
+
Layout/DotPosition:
|
|
112
42
|
Exclude:
|
|
113
43
|
- 'lib/minitest_to_rspec/cli.rb'
|
|
114
44
|
- 'lib/minitest_to_rspec/model/call.rb'
|
|
115
45
|
- 'lib/minitest_to_rspec/model/calls/returns.rb'
|
|
116
46
|
|
|
47
|
+
# Offense count: 1
|
|
48
|
+
# Cop supports --auto-correct.
|
|
49
|
+
Layout/EmptyLineAfterMagicComment:
|
|
50
|
+
Exclude:
|
|
51
|
+
- 'minitest_to_rspec.gemspec'
|
|
52
|
+
|
|
117
53
|
# Offense count: 5
|
|
118
54
|
# Cop supports --auto-correct.
|
|
119
55
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
120
56
|
# SupportedStyles: empty_lines, no_empty_lines
|
|
121
|
-
|
|
57
|
+
Layout/EmptyLinesAroundBlockBody:
|
|
122
58
|
Exclude:
|
|
123
59
|
- 'spec/lib/converter_spec.rb'
|
|
124
60
|
- 'spec/lib/model/calls/returns_spec.rb'
|
|
@@ -128,8 +64,8 @@ Style/EmptyLinesAroundBlockBody:
|
|
|
128
64
|
# Offense count: 2
|
|
129
65
|
# Cop supports --auto-correct.
|
|
130
66
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
131
|
-
# SupportedStyles: empty_lines, no_empty_lines
|
|
132
|
-
|
|
67
|
+
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
|
|
68
|
+
Layout/EmptyLinesAroundClassBody:
|
|
133
69
|
Exclude:
|
|
134
70
|
- 'lib/minitest_to_rspec/subprocessors/call.rb'
|
|
135
71
|
- 'lib/minitest_to_rspec/subprocessors/klass.rb'
|
|
@@ -137,8 +73,8 @@ Style/EmptyLinesAroundClassBody:
|
|
|
137
73
|
# Offense count: 8
|
|
138
74
|
# Cop supports --auto-correct.
|
|
139
75
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
140
|
-
# SupportedStyles: empty_lines, no_empty_lines
|
|
141
|
-
|
|
76
|
+
# SupportedStyles: empty_lines, empty_lines_except_namespace, empty_lines_special, no_empty_lines
|
|
77
|
+
Layout/EmptyLinesAroundModuleBody:
|
|
142
78
|
Exclude:
|
|
143
79
|
- 'lib/minitest_to_rspec/model/base.rb'
|
|
144
80
|
- 'lib/minitest_to_rspec/model/call.rb'
|
|
@@ -153,73 +89,157 @@ Style/EmptyLinesAroundModuleBody:
|
|
|
153
89
|
# Cop supports --auto-correct.
|
|
154
90
|
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
|
|
155
91
|
# SupportedStyles: consistent, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
|
|
156
|
-
|
|
92
|
+
Layout/FirstParameterIndentation:
|
|
157
93
|
Exclude:
|
|
158
94
|
- 'spec/lib/subprocessors/call_spec.rb'
|
|
159
95
|
- 'spec/lib/subprocessors/klass_spec.rb'
|
|
160
96
|
|
|
161
|
-
# Offense count:
|
|
97
|
+
# Offense count: 4
|
|
162
98
|
# Cop supports --auto-correct.
|
|
163
99
|
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
164
|
-
# SupportedStyles:
|
|
165
|
-
|
|
166
|
-
|
|
100
|
+
# SupportedStyles: auto_detection, squiggly, active_support, powerpack, unindent
|
|
101
|
+
Layout/IndentHeredoc:
|
|
102
|
+
Exclude:
|
|
103
|
+
- 'lib/minitest_to_rspec/cli.rb'
|
|
104
|
+
- 'lib/minitest_to_rspec/errors.rb'
|
|
105
|
+
- 'minitest_to_rspec.gemspec'
|
|
167
106
|
|
|
168
|
-
# Offense count:
|
|
169
|
-
#
|
|
170
|
-
|
|
171
|
-
|
|
107
|
+
# Offense count: 15
|
|
108
|
+
# Cop supports --auto-correct.
|
|
109
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
110
|
+
# SupportedStyles: symmetrical, new_line, same_line
|
|
111
|
+
Layout/MultilineMethodCallBraceLayout:
|
|
112
|
+
Exclude:
|
|
113
|
+
- 'lib/minitest_to_rspec/subprocessors/base.rb'
|
|
114
|
+
- 'lib/minitest_to_rspec/subprocessors/call.rb'
|
|
115
|
+
- 'lib/minitest_to_rspec/subprocessors/iter.rb'
|
|
116
|
+
- 'spec/lib/subprocessors/base_spec.rb'
|
|
117
|
+
- 'spec/lib/subprocessors/call_spec.rb'
|
|
118
|
+
- 'spec/lib/subprocessors/klass_spec.rb'
|
|
172
119
|
|
|
173
120
|
# Offense count: 1
|
|
174
121
|
# Cop supports --auto-correct.
|
|
175
|
-
|
|
176
|
-
# SupportedStyles: ruby19, ruby19_no_mixed_keys, hash_rockets
|
|
177
|
-
Style/HashSyntax:
|
|
122
|
+
Layout/SpaceInsideParens:
|
|
178
123
|
Exclude:
|
|
179
|
-
- '
|
|
124
|
+
- 'lib/minitest_to_rspec/subprocessors/call.rb'
|
|
180
125
|
|
|
181
126
|
# Offense count: 3
|
|
182
|
-
|
|
183
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
184
|
-
# SupportedStyles: line_count_dependent, lambda, literal
|
|
185
|
-
Style/Lambda:
|
|
127
|
+
Lint/BooleanSymbol:
|
|
186
128
|
Exclude:
|
|
187
|
-
- '
|
|
129
|
+
- 'lib/minitest_to_rspec/subprocessors/call.rb'
|
|
188
130
|
- 'spec/lib/subprocessors/call_spec.rb'
|
|
189
|
-
- 'spec/lib/subprocessors/iter_spec.rb'
|
|
190
131
|
|
|
191
132
|
# Offense count: 15
|
|
133
|
+
# Configuration parameters: CountComments, ExcludedMethods.
|
|
134
|
+
Metrics/BlockLength:
|
|
135
|
+
Max: 280
|
|
136
|
+
|
|
137
|
+
# Offense count: 2
|
|
138
|
+
# Configuration parameters: CountComments.
|
|
139
|
+
Metrics/ClassLength:
|
|
140
|
+
Max: 241
|
|
141
|
+
|
|
142
|
+
# Offense count: 5
|
|
143
|
+
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
|
144
|
+
# URISchemes: http, https
|
|
145
|
+
Metrics/LineLength:
|
|
146
|
+
Max: 92
|
|
147
|
+
|
|
148
|
+
# Offense count: 3
|
|
149
|
+
# Configuration parameters: CountComments.
|
|
150
|
+
Metrics/MethodLength:
|
|
151
|
+
Max: 18
|
|
152
|
+
|
|
153
|
+
# Offense count: 3
|
|
154
|
+
# Configuration parameters: CountComments.
|
|
155
|
+
Metrics/ModuleLength:
|
|
156
|
+
Max: 282
|
|
157
|
+
|
|
158
|
+
# Offense count: 30
|
|
159
|
+
# Configuration parameters: Blacklist.
|
|
160
|
+
# Blacklist: END, (?-mix:EO[A-Z]{1})
|
|
161
|
+
Naming/HeredocDelimiterNaming:
|
|
162
|
+
Exclude:
|
|
163
|
+
- 'lib/minitest_to_rspec/cli.rb'
|
|
164
|
+
- 'lib/minitest_to_rspec/errors.rb'
|
|
165
|
+
- 'minitest_to_rspec.gemspec'
|
|
166
|
+
- 'spec/lib/subprocessors/call_spec.rb'
|
|
167
|
+
- 'spec/lib/subprocessors/iter_spec.rb'
|
|
168
|
+
- 'spec/lib/subprocessors/klass_spec.rb'
|
|
169
|
+
|
|
170
|
+
# Offense count: 1
|
|
192
171
|
# Cop supports --auto-correct.
|
|
193
|
-
|
|
194
|
-
# SupportedStyles: symmetrical, new_line, same_line
|
|
195
|
-
Style/MultilineMethodCallBraceLayout:
|
|
172
|
+
Performance/StringReplacement:
|
|
196
173
|
Exclude:
|
|
197
|
-
- 'lib/minitest_to_rspec/
|
|
174
|
+
- 'lib/minitest_to_rspec/cli.rb'
|
|
175
|
+
|
|
176
|
+
# Offense count: 16
|
|
177
|
+
# Cop supports --auto-correct.
|
|
178
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
|
|
179
|
+
# SupportedStyles: line_count_based, semantic, braces_for_chaining
|
|
180
|
+
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
|
181
|
+
# FunctionalMethods: let, let!, subject, watch
|
|
182
|
+
# IgnoredMethods: lambda, proc, it
|
|
183
|
+
Style/BlockDelimiters:
|
|
184
|
+
Exclude:
|
|
185
|
+
- 'lib/minitest_to_rspec/model/iter.rb'
|
|
186
|
+
- 'lib/minitest_to_rspec/model/klass.rb'
|
|
198
187
|
- 'lib/minitest_to_rspec/subprocessors/call.rb'
|
|
199
188
|
- 'lib/minitest_to_rspec/subprocessors/iter.rb'
|
|
200
|
-
- 'spec/lib/
|
|
201
|
-
- 'spec/lib/
|
|
189
|
+
- 'spec/lib/cli_spec.rb'
|
|
190
|
+
- 'spec/lib/model/call_spec.rb'
|
|
191
|
+
- 'spec/lib/sexp_assertions_spec.rb'
|
|
192
|
+
- 'spec/lib/subprocessors/iter_spec.rb'
|
|
202
193
|
- 'spec/lib/subprocessors/klass_spec.rb'
|
|
203
194
|
|
|
204
|
-
# Offense count:
|
|
205
|
-
|
|
206
|
-
Style/MutableConstant:
|
|
195
|
+
# Offense count: 9
|
|
196
|
+
Style/Documentation:
|
|
207
197
|
Exclude:
|
|
198
|
+
- 'spec/**/*'
|
|
199
|
+
- 'test/**/*'
|
|
200
|
+
- 'lib/minitest_to_rspec.rb'
|
|
208
201
|
- 'lib/minitest_to_rspec/cli.rb'
|
|
209
202
|
- 'lib/minitest_to_rspec/converter.rb'
|
|
210
203
|
- 'lib/minitest_to_rspec/errors.rb'
|
|
211
|
-
- 'lib/minitest_to_rspec/
|
|
204
|
+
- 'lib/minitest_to_rspec/processor.rb'
|
|
205
|
+
- 'lib/minitest_to_rspec/subprocessors/base.rb'
|
|
212
206
|
- 'lib/minitest_to_rspec/subprocessors/call.rb'
|
|
213
|
-
- '
|
|
207
|
+
- 'lib/minitest_to_rspec/subprocessors/iter.rb'
|
|
208
|
+
- 'lib/minitest_to_rspec/subprocessors/klass.rb'
|
|
214
209
|
|
|
215
|
-
# Offense count:
|
|
210
|
+
# Offense count: 1
|
|
216
211
|
# Cop supports --auto-correct.
|
|
217
|
-
|
|
218
|
-
Style/PercentLiteralDelimiters:
|
|
212
|
+
Style/Encoding:
|
|
219
213
|
Exclude:
|
|
220
|
-
- '
|
|
214
|
+
- 'minitest_to_rspec.gemspec'
|
|
215
|
+
|
|
216
|
+
# Offense count: 6
|
|
217
|
+
# Configuration parameters: MinBodyLength.
|
|
218
|
+
Style/GuardClause:
|
|
219
|
+
Exclude:
|
|
220
|
+
- 'lib/minitest_to_rspec/cli.rb'
|
|
221
|
+
- 'lib/minitest_to_rspec/model/call.rb'
|
|
222
|
+
- 'lib/minitest_to_rspec/model/calls/returns.rb'
|
|
223
|
+
- 'lib/minitest_to_rspec/sexp_assertions.rb'
|
|
224
|
+
|
|
225
|
+
# Offense count: 2
|
|
226
|
+
# Cop supports --auto-correct.
|
|
227
|
+
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
228
|
+
# SupportedStyles: line_count_dependent, lambda, literal
|
|
229
|
+
Style/Lambda:
|
|
230
|
+
Exclude:
|
|
231
|
+
- 'spec/lib/subprocessors/call_spec.rb'
|
|
232
|
+
- 'spec/lib/subprocessors/iter_spec.rb'
|
|
233
|
+
|
|
234
|
+
# Offense count: 5
|
|
235
|
+
# Cop supports --auto-correct.
|
|
236
|
+
Style/MutableConstant:
|
|
237
|
+
Exclude:
|
|
238
|
+
- 'lib/minitest_to_rspec/cli.rb'
|
|
239
|
+
- 'lib/minitest_to_rspec/errors.rb'
|
|
221
240
|
- 'lib/minitest_to_rspec/model/calls/returns.rb'
|
|
222
241
|
- 'lib/minitest_to_rspec/subprocessors/call.rb'
|
|
242
|
+
- 'spec/lib/converter_spec.rb'
|
|
223
243
|
|
|
224
244
|
# Offense count: 5
|
|
225
245
|
# Cop supports --auto-correct.
|
|
@@ -235,42 +255,35 @@ Style/SignalException:
|
|
|
235
255
|
Exclude:
|
|
236
256
|
- 'spec/lib/cli_spec.rb'
|
|
237
257
|
|
|
238
|
-
# Offense count:
|
|
239
|
-
# Cop supports --auto-correct.
|
|
240
|
-
# Configuration parameters: SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters.
|
|
241
|
-
# SupportedStyles: space, no_space
|
|
242
|
-
Style/SpaceInsideBlockBraces:
|
|
243
|
-
EnforcedStyle: space
|
|
244
|
-
|
|
245
|
-
# Offense count: 1
|
|
258
|
+
# Offense count: 5
|
|
246
259
|
# Cop supports --auto-correct.
|
|
247
|
-
Style/
|
|
260
|
+
Style/StderrPuts:
|
|
248
261
|
Exclude:
|
|
249
|
-
- 'lib/minitest_to_rspec/
|
|
262
|
+
- 'lib/minitest_to_rspec/cli.rb'
|
|
250
263
|
|
|
251
|
-
# Offense count:
|
|
264
|
+
# Offense count: 335
|
|
252
265
|
# Cop supports --auto-correct.
|
|
253
266
|
# Configuration parameters: EnforcedStyle, SupportedStyles, ConsistentQuotesInMultiline.
|
|
254
267
|
# SupportedStyles: single_quotes, double_quotes
|
|
255
268
|
Style/StringLiterals:
|
|
256
269
|
Enabled: false
|
|
257
270
|
|
|
271
|
+
# Offense count: 8
|
|
272
|
+
# Cop supports --auto-correct.
|
|
273
|
+
# Configuration parameters: SupportedStyles.
|
|
274
|
+
# SupportedStyles: percent, brackets
|
|
275
|
+
Style/SymbolArray:
|
|
276
|
+
EnforcedStyle: percent
|
|
277
|
+
MinSize: 3
|
|
278
|
+
|
|
258
279
|
# Offense count: 1
|
|
259
280
|
# Cop supports --auto-correct.
|
|
260
|
-
# Configuration parameters: EnforcedStyleForMultiline,
|
|
261
|
-
#
|
|
281
|
+
# Configuration parameters: EnforcedStyleForMultiline, SupportedStylesForMultiline.
|
|
282
|
+
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
|
|
262
283
|
Style/TrailingCommaInArguments:
|
|
263
284
|
Exclude:
|
|
264
285
|
- 'lib/minitest_to_rspec/subprocessors/call.rb'
|
|
265
286
|
|
|
266
|
-
# Offense count: 2
|
|
267
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
268
|
-
# SupportedStyles: snake_case, camelCase
|
|
269
|
-
Style/VariableName:
|
|
270
|
-
Exclude:
|
|
271
|
-
- 'spec/fixtures/16_stabby_lambda/in.rb'
|
|
272
|
-
- 'spec/fixtures/16_stabby_lambda/out.rb'
|
|
273
|
-
|
|
274
287
|
# Offense count: 1
|
|
275
288
|
# Cop supports --auto-correct.
|
|
276
289
|
# Configuration parameters: MaxLineLength.
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,37 @@ Change Log
|
|
|
4
4
|
This project follows [semver 2.0.0][1] and the recommendations
|
|
5
5
|
of [keepachangelog.com][2].
|
|
6
6
|
|
|
7
|
+
Unreleased
|
|
8
|
+
-----
|
|
9
|
+
|
|
10
|
+
### Breaking Changes
|
|
11
|
+
|
|
12
|
+
- None
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- None
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- None
|
|
21
|
+
|
|
22
|
+
0.9.0 (2017-10-24)
|
|
23
|
+
-----
|
|
24
|
+
|
|
25
|
+
### Breaking Changes
|
|
26
|
+
|
|
27
|
+
- Drop support for ruby < 2.2
|
|
28
|
+
|
|
29
|
+
### Added
|
|
30
|
+
|
|
31
|
+
None
|
|
32
|
+
|
|
33
|
+
### Fixed
|
|
34
|
+
|
|
35
|
+
- [#4](https://github.com/jaredbeck/minitest_to_rspec/issues/4) - Constrain
|
|
36
|
+
dependency: sexp_processor < 4.8
|
|
37
|
+
|
|
7
38
|
0.8.0
|
|
8
39
|
-----
|
|
9
40
|
|
data/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Converts [minitest][8] files to [rspec][9].
|
|
4
4
|
|
|
5
|
-
[![Build Status][1]][2]
|
|
5
|
+
[![Build Status][1]][2]
|
|
6
6
|
|
|
7
7
|
- Selected assertions from [Test::Unit][26], [minitest][8],
|
|
8
8
|
and [ActiveSupport][27] are converted to [rspec-expectations][25].
|
|
@@ -118,11 +118,8 @@ This project would not be possible without [ruby_parser][14],
|
|
|
118
118
|
|
|
119
119
|
[1]: https://travis-ci.org/jaredbeck/minitest_to_rspec.svg?branch=master
|
|
120
120
|
[2]: https://travis-ci.org/jaredbeck/minitest_to_rspec
|
|
121
|
-
[3]: https://codeclimate.com/github/jaredbeck/minitest_to_rspec/badges/gpa.svg
|
|
122
|
-
[4]: https://codeclimate.com/github/jaredbeck/minitest_to_rspec
|
|
123
121
|
[5]: https://github.com/jaredbeck/minitest_to_rspec/blob/master/doc/supported_assertions.md
|
|
124
122
|
[6]: https://github.com/seattlerb/ruby2ruby
|
|
125
|
-
[7]: https://codeclimate.com/github/jaredbeck/minitest_to_rspec/badges/coverage.svg
|
|
126
123
|
[8]: https://github.com/jaredbeck/minitest_to_rspec/blob/master/doc/minitest.md
|
|
127
124
|
[9]: https://github.com/jaredbeck/minitest_to_rspec/blob/master/doc/rspec.md
|
|
128
125
|
[10]: http://www.rubydoc.info/gems/test-unit/3.0.9/Test/Unit/Assertions#assert_nothing_raised-instance_method
|
data/Rakefile
CHANGED
|
@@ -1,19 +1,8 @@
|
|
|
1
|
-
require 'cane/rake_task'
|
|
2
1
|
require 'rspec/core/rake_task'
|
|
3
2
|
require 'rubocop/rake_task'
|
|
4
3
|
|
|
5
4
|
RuboCop::RakeTask.new
|
|
6
5
|
|
|
7
|
-
desc 'Check quality metrics'
|
|
8
|
-
Cane::RakeTask.new(:quality) do |cane|
|
|
9
|
-
cane.max_violations = 0
|
|
10
|
-
cane.abc_glob = 'lib/**/*.rb'
|
|
11
|
-
cane.abc_max = 10
|
|
12
|
-
cane.no_doc = true
|
|
13
|
-
cane.style_glob = 'lib/**/*.rb'
|
|
14
|
-
cane.style_measure = 80
|
|
15
|
-
end
|
|
16
|
-
|
|
17
6
|
task(:spec).clear
|
|
18
7
|
RSpec::Core::RakeTask.new(:spec) do |t|
|
|
19
8
|
t.verbose = false
|
|
@@ -22,4 +11,4 @@ end
|
|
|
22
11
|
# Default task: lint then test
|
|
23
12
|
task default: [] # in case it hasn't been set
|
|
24
13
|
Rake::Task[:default].clear
|
|
25
|
-
task default: [:rubocop, :
|
|
14
|
+
task default: [:rubocop, :spec]
|
data/bin/console
CHANGED
data/minitest_to_rspec.gemspec
CHANGED
|
@@ -21,18 +21,21 @@ A command-line tool for converting minitest files to rspec.
|
|
|
21
21
|
f.match(%r{^(test|spec|features)/})
|
|
22
22
|
}
|
|
23
23
|
spec.require_paths = ["lib"]
|
|
24
|
-
spec.required_ruby_version = ">= 2.
|
|
24
|
+
spec.required_ruby_version = ">= 2.2.0"
|
|
25
25
|
|
|
26
26
|
spec.add_runtime_dependency "ruby_parser", "~> 3.8"
|
|
27
27
|
spec.add_runtime_dependency "ruby2ruby", "~> 2.3"
|
|
28
28
|
spec.add_runtime_dependency "trollop", "~> 2.1"
|
|
29
29
|
|
|
30
|
+
# Temporary runtime dependency. It seems there were breaking changes in
|
|
31
|
+
# sexp_processor between 4.7 and 4.10. When we have adapted to these breaking
|
|
32
|
+
# changes, we can lift this constraint.
|
|
33
|
+
# https://github.com/jaredbeck/minitest_to_rspec/issues/4
|
|
34
|
+
spec.add_runtime_dependency "sexp_processor", "< 4.8"
|
|
35
|
+
|
|
30
36
|
spec.add_development_dependency "bundler", "~> 1.7"
|
|
31
|
-
spec.add_development_dependency "
|
|
32
|
-
spec.add_development_dependency "
|
|
33
|
-
spec.add_development_dependency "
|
|
34
|
-
spec.add_development_dependency "
|
|
35
|
-
spec.add_development_dependency "rubocop", "~> 0.42.0"
|
|
36
|
-
spec.add_development_dependency "pry", "~> 0.10.1"
|
|
37
|
-
spec.add_development_dependency "pry-nav", "~> 0.2.4"
|
|
37
|
+
spec.add_development_dependency "byebug", "~> 9.1"
|
|
38
|
+
spec.add_development_dependency "rake", "~> 12.1"
|
|
39
|
+
spec.add_development_dependency "rspec", "~> 3.5"
|
|
40
|
+
spec.add_development_dependency "rubocop", "~> 0.51.0"
|
|
38
41
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: minitest_to_rspec
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.9.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jared Beck
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-10-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ruby_parser
|
|
@@ -53,117 +53,89 @@ dependencies:
|
|
|
53
53
|
- !ruby/object:Gem::Version
|
|
54
54
|
version: '2.1'
|
|
55
55
|
- !ruby/object:Gem::Dependency
|
|
56
|
-
name:
|
|
56
|
+
name: sexp_processor
|
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
|
58
58
|
requirements:
|
|
59
|
-
- - "
|
|
59
|
+
- - "<"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '
|
|
62
|
-
type: :
|
|
61
|
+
version: '4.8'
|
|
62
|
+
type: :runtime
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
|
-
- - "
|
|
66
|
+
- - "<"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '
|
|
68
|
+
version: '4.8'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
|
-
name:
|
|
70
|
+
name: bundler
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
73
|
- - "~>"
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: '
|
|
75
|
+
version: '1.7'
|
|
76
76
|
type: :development
|
|
77
77
|
prerelease: false
|
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
80
|
- - "~>"
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: '
|
|
82
|
+
version: '1.7'
|
|
83
83
|
- !ruby/object:Gem::Dependency
|
|
84
|
-
name:
|
|
84
|
+
name: byebug
|
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
|
86
86
|
requirements:
|
|
87
87
|
- - "~>"
|
|
88
88
|
- !ruby/object:Gem::Version
|
|
89
|
-
version:
|
|
89
|
+
version: '9.1'
|
|
90
90
|
type: :development
|
|
91
91
|
prerelease: false
|
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
93
|
requirements:
|
|
94
94
|
- - "~>"
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
|
-
version:
|
|
96
|
+
version: '9.1'
|
|
97
97
|
- !ruby/object:Gem::Dependency
|
|
98
98
|
name: rake
|
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
|
100
100
|
requirements:
|
|
101
101
|
- - "~>"
|
|
102
102
|
- !ruby/object:Gem::Version
|
|
103
|
-
version: '
|
|
103
|
+
version: '12.1'
|
|
104
104
|
type: :development
|
|
105
105
|
prerelease: false
|
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
|
107
107
|
requirements:
|
|
108
108
|
- - "~>"
|
|
109
109
|
- !ruby/object:Gem::Version
|
|
110
|
-
version: '
|
|
110
|
+
version: '12.1'
|
|
111
111
|
- !ruby/object:Gem::Dependency
|
|
112
112
|
name: rspec
|
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
|
114
114
|
requirements:
|
|
115
115
|
- - "~>"
|
|
116
116
|
- !ruby/object:Gem::Version
|
|
117
|
-
version: '3.
|
|
117
|
+
version: '3.5'
|
|
118
118
|
type: :development
|
|
119
119
|
prerelease: false
|
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
|
121
121
|
requirements:
|
|
122
122
|
- - "~>"
|
|
123
123
|
- !ruby/object:Gem::Version
|
|
124
|
-
version: '3.
|
|
124
|
+
version: '3.5'
|
|
125
125
|
- !ruby/object:Gem::Dependency
|
|
126
126
|
name: rubocop
|
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
|
128
128
|
requirements:
|
|
129
129
|
- - "~>"
|
|
130
130
|
- !ruby/object:Gem::Version
|
|
131
|
-
version: 0.
|
|
132
|
-
type: :development
|
|
133
|
-
prerelease: false
|
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
-
requirements:
|
|
136
|
-
- - "~>"
|
|
137
|
-
- !ruby/object:Gem::Version
|
|
138
|
-
version: 0.42.0
|
|
139
|
-
- !ruby/object:Gem::Dependency
|
|
140
|
-
name: pry
|
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
|
142
|
-
requirements:
|
|
143
|
-
- - "~>"
|
|
144
|
-
- !ruby/object:Gem::Version
|
|
145
|
-
version: 0.10.1
|
|
146
|
-
type: :development
|
|
147
|
-
prerelease: false
|
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
149
|
-
requirements:
|
|
150
|
-
- - "~>"
|
|
151
|
-
- !ruby/object:Gem::Version
|
|
152
|
-
version: 0.10.1
|
|
153
|
-
- !ruby/object:Gem::Dependency
|
|
154
|
-
name: pry-nav
|
|
155
|
-
requirement: !ruby/object:Gem::Requirement
|
|
156
|
-
requirements:
|
|
157
|
-
- - "~>"
|
|
158
|
-
- !ruby/object:Gem::Version
|
|
159
|
-
version: 0.2.4
|
|
131
|
+
version: 0.51.0
|
|
160
132
|
type: :development
|
|
161
133
|
prerelease: false
|
|
162
134
|
version_requirements: !ruby/object:Gem::Requirement
|
|
163
135
|
requirements:
|
|
164
136
|
- - "~>"
|
|
165
137
|
- !ruby/object:Gem::Version
|
|
166
|
-
version: 0.
|
|
138
|
+
version: 0.51.0
|
|
167
139
|
description: |
|
|
168
140
|
A command-line tool for converting minitest files to rspec.
|
|
169
141
|
email:
|
|
@@ -220,7 +192,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
220
192
|
requirements:
|
|
221
193
|
- - ">="
|
|
222
194
|
- !ruby/object:Gem::Version
|
|
223
|
-
version: 2.
|
|
195
|
+
version: 2.2.0
|
|
224
196
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
225
197
|
requirements:
|
|
226
198
|
- - ">="
|
|
@@ -228,7 +200,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
228
200
|
version: '0'
|
|
229
201
|
requirements: []
|
|
230
202
|
rubyforge_project:
|
|
231
|
-
rubygems_version: 2.
|
|
203
|
+
rubygems_version: 2.6.14
|
|
232
204
|
signing_key:
|
|
233
205
|
specification_version: 4
|
|
234
206
|
summary: Converts minitest files to rspec
|