rubocop-rspec 2.2.0 → 2.6.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.
Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +48 -0
  3. data/README.md +3 -5
  4. data/config/default.yml +79 -3
  5. data/lib/rubocop/cop/rspec/around_block.rb +2 -0
  6. data/lib/rubocop/cop/rspec/be.rb +1 -0
  7. data/lib/rubocop/cop/rspec/be_eql.rb +1 -0
  8. data/lib/rubocop/cop/rspec/before_after_all.rb +1 -0
  9. data/lib/rubocop/cop/rspec/capybara/current_path_expectation.rb +3 -0
  10. data/lib/rubocop/cop/rspec/capybara/feature_methods.rb +3 -0
  11. data/lib/rubocop/cop/rspec/capybara/visibility_matcher.rb +2 -0
  12. data/lib/rubocop/cop/rspec/context_method.rb +1 -0
  13. data/lib/rubocop/cop/rspec/context_wording.rb +7 -1
  14. data/lib/rubocop/cop/rspec/describe_class.rb +3 -0
  15. data/lib/rubocop/cop/rspec/describe_method.rb +1 -0
  16. data/lib/rubocop/cop/rspec/describe_symbol.rb +1 -0
  17. data/lib/rubocop/cop/rspec/described_class.rb +6 -1
  18. data/lib/rubocop/cop/rspec/described_class_module_wrapping.rb +2 -1
  19. data/lib/rubocop/cop/rspec/dialect.rb +1 -0
  20. data/lib/rubocop/cop/rspec/empty_hook.rb +5 -1
  21. data/lib/rubocop/cop/rspec/example_length.rb +26 -12
  22. data/lib/rubocop/cop/rspec/example_without_description.rb +1 -0
  23. data/lib/rubocop/cop/rspec/example_wording.rb +4 -0
  24. data/lib/rubocop/cop/rspec/excessive_docstring_spacing.rb +100 -0
  25. data/lib/rubocop/cop/rspec/expect_actual.rb +1 -0
  26. data/lib/rubocop/cop/rspec/expect_change.rb +5 -3
  27. data/lib/rubocop/cop/rspec/expect_in_hook.rb +1 -0
  28. data/lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb +3 -0
  29. data/lib/rubocop/cop/rspec/factory_bot/create_list.rb +3 -0
  30. data/lib/rubocop/cop/rspec/factory_bot/factory_class_name.rb +1 -0
  31. data/lib/rubocop/cop/rspec/file_path.rb +13 -9
  32. data/lib/rubocop/cop/rspec/focus.rb +3 -0
  33. data/lib/rubocop/cop/rspec/hook_argument.rb +3 -1
  34. data/lib/rubocop/cop/rspec/hooks_before_examples.rb +1 -0
  35. data/lib/rubocop/cop/rspec/identical_equality_assertion.rb +38 -0
  36. data/lib/rubocop/cop/rspec/implicit_block_expectation.rb +3 -0
  37. data/lib/rubocop/cop/rspec/implicit_expect.rb +1 -0
  38. data/lib/rubocop/cop/rspec/implicit_subject.rb +18 -1
  39. data/lib/rubocop/cop/rspec/instance_spy.rb +2 -0
  40. data/lib/rubocop/cop/rspec/instance_variable.rb +4 -0
  41. data/lib/rubocop/cop/rspec/it_behaves_like.rb +1 -0
  42. data/lib/rubocop/cop/rspec/iterated_expectation.rb +4 -0
  43. data/lib/rubocop/cop/rspec/let_before_examples.rb +1 -0
  44. data/lib/rubocop/cop/rspec/let_setup.rb +3 -0
  45. data/lib/rubocop/cop/rspec/message_expectation.rb +2 -0
  46. data/lib/rubocop/cop/rspec/message_spies.rb +2 -0
  47. data/lib/rubocop/cop/rspec/mixin/variable.rb +1 -0
  48. data/lib/rubocop/cop/rspec/multiple_expectations.rb +3 -0
  49. data/lib/rubocop/cop/rspec/named_subject.rb +3 -0
  50. data/lib/rubocop/cop/rspec/nested_groups.rb +1 -1
  51. data/lib/rubocop/cop/rspec/not_to_not.rb +1 -0
  52. data/lib/rubocop/cop/rspec/overwriting_setup.rb +2 -0
  53. data/lib/rubocop/cop/rspec/pending.rb +4 -0
  54. data/lib/rubocop/cop/rspec/predicate_matcher.rb +5 -0
  55. data/lib/rubocop/cop/rspec/rails/avoid_setup_hook.rb +44 -0
  56. data/lib/rubocop/cop/rspec/rails/http_status.rb +1 -0
  57. data/lib/rubocop/cop/rspec/receive_counts.rb +2 -0
  58. data/lib/rubocop/cop/rspec/receive_never.rb +1 -0
  59. data/lib/rubocop/cop/rspec/repeated_example_group_body.rb +8 -1
  60. data/lib/rubocop/cop/rspec/repeated_example_group_description.rb +4 -0
  61. data/lib/rubocop/cop/rspec/repeated_include_example.rb +3 -0
  62. data/lib/rubocop/cop/rspec/return_from_stub.rb +5 -0
  63. data/lib/rubocop/cop/rspec/shared_context.rb +4 -0
  64. data/lib/rubocop/cop/rspec/shared_examples.rb +1 -0
  65. data/lib/rubocop/cop/rspec/single_argument_message_chain.rb +2 -0
  66. data/lib/rubocop/cop/rspec/stubbed_mock.rb +1 -0
  67. data/lib/rubocop/cop/rspec/subject_declaration.rb +47 -0
  68. data/lib/rubocop/cop/rspec/subject_stub.rb +1 -0
  69. data/lib/rubocop/cop/rspec/unspecified_exception.rb +1 -0
  70. data/lib/rubocop/cop/rspec/variable_definition.rb +19 -2
  71. data/lib/rubocop/cop/rspec/verified_doubles.rb +1 -0
  72. data/lib/rubocop/cop/rspec/void_expect.rb +2 -0
  73. data/lib/rubocop/cop/rspec/yield.rb +3 -0
  74. data/lib/rubocop/cop/rspec_cops.rb +4 -0
  75. data/lib/rubocop/rspec/align_let_brace.rb +2 -1
  76. data/lib/rubocop/rspec/config_formatter.rb +3 -0
  77. data/lib/rubocop/rspec/example.rb +5 -0
  78. data/lib/rubocop/rspec/hook.rb +1 -0
  79. data/lib/rubocop/rspec/language.rb +10 -0
  80. data/lib/rubocop/rspec/version.rb +1 -1
  81. metadata +17 -27
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Backus
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-02-02 00:00:00.000000000 Z
13
+ date: 2021-11-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rubocop
@@ -18,28 +18,14 @@ dependencies:
18
18
  requirements:
19
19
  - - "~>"
20
20
  - !ruby/object:Gem::Version
21
- version: '1.0'
21
+ version: '1.19'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
26
  - - "~>"
27
27
  - !ruby/object:Gem::Version
28
- version: '1.0'
29
- - !ruby/object:Gem::Dependency
30
- name: rubocop-ast
31
- requirement: !ruby/object:Gem::Requirement
32
- requirements:
33
- - - ">="
34
- - !ruby/object:Gem::Version
35
- version: 1.1.0
36
- type: :runtime
37
- prerelease: false
38
- version_requirements: !ruby/object:Gem::Requirement
39
- requirements:
40
- - - ">="
41
- - !ruby/object:Gem::Version
42
- version: 1.1.0
28
+ version: '1.19'
43
29
  - !ruby/object:Gem::Dependency
44
30
  name: rack
45
31
  requirement: !ruby/object:Gem::Requirement
@@ -97,19 +83,19 @@ dependencies:
97
83
  - !ruby/object:Gem::Version
98
84
  version: '1.7'
99
85
  - !ruby/object:Gem::Dependency
100
- name: simplecov
86
+ name: rubocop-rake
101
87
  requirement: !ruby/object:Gem::Requirement
102
88
  requirements:
103
- - - "<"
89
+ - - "~>"
104
90
  - !ruby/object:Gem::Version
105
- version: '0.18'
91
+ version: '0.6'
106
92
  type: :development
107
93
  prerelease: false
108
94
  version_requirements: !ruby/object:Gem::Requirement
109
95
  requirements:
110
- - - "<"
96
+ - - "~>"
111
97
  - !ruby/object:Gem::Version
112
- version: '0.18'
98
+ version: '0.6'
113
99
  - !ruby/object:Gem::Dependency
114
100
  name: yard
115
101
  requirement: !ruby/object:Gem::Requirement
@@ -172,6 +158,7 @@ files:
172
158
  - lib/rubocop/cop/rspec/example_length.rb
173
159
  - lib/rubocop/cop/rspec/example_without_description.rb
174
160
  - lib/rubocop/cop/rspec/example_wording.rb
161
+ - lib/rubocop/cop/rspec/excessive_docstring_spacing.rb
175
162
  - lib/rubocop/cop/rspec/expect_actual.rb
176
163
  - lib/rubocop/cop/rspec/expect_change.rb
177
164
  - lib/rubocop/cop/rspec/expect_in_hook.rb
@@ -183,6 +170,7 @@ files:
183
170
  - lib/rubocop/cop/rspec/focus.rb
184
171
  - lib/rubocop/cop/rspec/hook_argument.rb
185
172
  - lib/rubocop/cop/rspec/hooks_before_examples.rb
173
+ - lib/rubocop/cop/rspec/identical_equality_assertion.rb
186
174
  - lib/rubocop/cop/rspec/implicit_block_expectation.rb
187
175
  - lib/rubocop/cop/rspec/implicit_expect.rb
188
176
  - lib/rubocop/cop/rspec/implicit_subject.rb
@@ -213,6 +201,7 @@ files:
213
201
  - lib/rubocop/cop/rspec/overwriting_setup.rb
214
202
  - lib/rubocop/cop/rspec/pending.rb
215
203
  - lib/rubocop/cop/rspec/predicate_matcher.rb
204
+ - lib/rubocop/cop/rspec/rails/avoid_setup_hook.rb
216
205
  - lib/rubocop/cop/rspec/rails/http_status.rb
217
206
  - lib/rubocop/cop/rspec/receive_counts.rb
218
207
  - lib/rubocop/cop/rspec/receive_never.rb
@@ -228,6 +217,7 @@ files:
228
217
  - lib/rubocop/cop/rspec/shared_examples.rb
229
218
  - lib/rubocop/cop/rspec/single_argument_message_chain.rb
230
219
  - lib/rubocop/cop/rspec/stubbed_mock.rb
220
+ - lib/rubocop/cop/rspec/subject_declaration.rb
231
221
  - lib/rubocop/cop/rspec/subject_stub.rb
232
222
  - lib/rubocop/cop/rspec/unspecified_exception.rb
233
223
  - lib/rubocop/cop/rspec/variable_definition.rb
@@ -251,11 +241,11 @@ files:
251
241
  - lib/rubocop/rspec/node.rb
252
242
  - lib/rubocop/rspec/version.rb
253
243
  - lib/rubocop/rspec/wording.rb
254
- homepage: https://github.com/rubocop-hq/rubocop-rspec
244
+ homepage: https://github.com/rubocop/rubocop-rspec
255
245
  licenses:
256
246
  - MIT
257
247
  metadata:
258
- changelog_uri: https://github.com/rubocop-hq/rubocop-rspec/blob/master/CHANGELOG.md
248
+ changelog_uri: https://github.com/rubocop/rubocop-rspec/blob/master/CHANGELOG.md
259
249
  documentation_uri: https://docs.rubocop.org/rubocop-rspec/
260
250
  post_install_message:
261
251
  rdoc_options: []
@@ -265,14 +255,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
265
255
  requirements:
266
256
  - - ">="
267
257
  - !ruby/object:Gem::Version
268
- version: 2.4.0
258
+ version: 2.5.0
269
259
  required_rubygems_version: !ruby/object:Gem::Requirement
270
260
  requirements:
271
261
  - - ">="
272
262
  - !ruby/object:Gem::Version
273
263
  version: '0'
274
264
  requirements: []
275
- rubygems_version: 3.2.2
265
+ rubygems_version: 3.2.29
276
266
  signing_key:
277
267
  specification_version: 4
278
268
  summary: Code style checking for RSpec files