rubocop-rspec 2.21.0 → 3.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +147 -9
  3. data/README.md +2 -2
  4. data/config/default.yml +159 -244
  5. data/config/obsoletion.yml +24 -0
  6. data/lib/rubocop/cop/rspec/around_block.rb +3 -3
  7. data/lib/rubocop/cop/rspec/base.rb +0 -1
  8. data/lib/rubocop/cop/rspec/be.rb +1 -1
  9. data/lib/rubocop/cop/rspec/be_empty.rb +1 -0
  10. data/lib/rubocop/cop/rspec/be_eq.rb +1 -1
  11. data/lib/rubocop/cop/rspec/be_eql.rb +1 -1
  12. data/lib/rubocop/cop/rspec/be_nil.rb +2 -2
  13. data/lib/rubocop/cop/rspec/before_after_all.rb +7 -13
  14. data/lib/rubocop/cop/rspec/change_by_zero.rb +30 -4
  15. data/lib/rubocop/cop/rspec/context_method.rb +2 -2
  16. data/lib/rubocop/cop/rspec/context_wording.rb +1 -1
  17. data/lib/rubocop/cop/rspec/describe_symbol.rb +1 -1
  18. data/lib/rubocop/cop/rspec/described_class.rb +33 -11
  19. data/lib/rubocop/cop/rspec/dialect.rb +13 -0
  20. data/lib/rubocop/cop/rspec/duplicated_metadata.rb +1 -1
  21. data/lib/rubocop/cop/rspec/empty_example_group.rb +4 -1
  22. data/lib/rubocop/cop/rspec/empty_hook.rb +1 -1
  23. data/lib/rubocop/cop/rspec/empty_line_after_example.rb +2 -2
  24. data/lib/rubocop/cop/rspec/empty_metadata.rb +46 -0
  25. data/lib/rubocop/cop/rspec/empty_output.rb +47 -0
  26. data/lib/rubocop/cop/rspec/eq.rb +47 -0
  27. data/lib/rubocop/cop/rspec/example_length.rb +11 -5
  28. data/lib/rubocop/cop/rspec/example_without_description.rb +11 -2
  29. data/lib/rubocop/cop/rspec/example_wording.rb +11 -2
  30. data/lib/rubocop/cop/rspec/excessive_docstring_spacing.rb +14 -5
  31. data/lib/rubocop/cop/rspec/expect_actual.rb +17 -14
  32. data/lib/rubocop/cop/rspec/expect_change.rb +2 -2
  33. data/lib/rubocop/cop/rspec/expect_in_hook.rb +1 -1
  34. data/lib/rubocop/cop/rspec/expect_in_let.rb +42 -0
  35. data/lib/rubocop/cop/rspec/expect_output.rb +1 -4
  36. data/lib/rubocop/cop/rspec/focus.rb +17 -2
  37. data/lib/rubocop/cop/rspec/hook_argument.rb +2 -2
  38. data/lib/rubocop/cop/rspec/hooks_before_examples.rb +1 -1
  39. data/lib/rubocop/cop/rspec/implicit_block_expectation.rb +2 -2
  40. data/lib/rubocop/cop/rspec/implicit_expect.rb +1 -1
  41. data/lib/rubocop/cop/rspec/implicit_subject.rb +2 -2
  42. data/lib/rubocop/cop/rspec/indexed_let.rb +32 -1
  43. data/lib/rubocop/cop/rspec/instance_spy.rb +2 -2
  44. data/lib/rubocop/cop/rspec/instance_variable.rb +4 -4
  45. data/lib/rubocop/cop/rspec/is_expected_specify.rb +45 -0
  46. data/lib/rubocop/cop/rspec/iterated_expectation.rb +3 -3
  47. data/lib/rubocop/cop/rspec/leaky_constant_declaration.rb +2 -2
  48. data/lib/rubocop/cop/rspec/let_before_examples.rb +5 -1
  49. data/lib/rubocop/cop/rspec/let_setup.rb +1 -1
  50. data/lib/rubocop/cop/rspec/message_expectation.rb +1 -2
  51. data/lib/rubocop/cop/rspec/message_spies.rb +0 -2
  52. data/lib/rubocop/cop/rspec/metadata_style.rb +202 -0
  53. data/lib/rubocop/cop/rspec/missing_expectation_target_method.rb +54 -0
  54. data/lib/rubocop/cop/rspec/mixin/file_help.rb +14 -0
  55. data/lib/rubocop/cop/rspec/mixin/metadata.rb +21 -7
  56. data/lib/rubocop/cop/rspec/mixin/skip_or_pending.rb +2 -2
  57. data/lib/rubocop/cop/rspec/multiple_describes.rb +1 -1
  58. data/lib/rubocop/cop/rspec/multiple_expectations.rb +16 -11
  59. data/lib/rubocop/cop/rspec/multiple_memoized_helpers.rb +2 -4
  60. data/lib/rubocop/cop/rspec/named_subject.rb +6 -3
  61. data/lib/rubocop/cop/rspec/pending.rb +12 -2
  62. data/lib/rubocop/cop/rspec/pending_without_reason.rb +1 -1
  63. data/lib/rubocop/cop/rspec/predicate_matcher.rb +10 -10
  64. data/lib/rubocop/cop/rspec/receive_counts.rb +1 -1
  65. data/lib/rubocop/cop/rspec/receive_messages.rb +161 -0
  66. data/lib/rubocop/cop/rspec/redundant_predicate_matcher.rb +67 -0
  67. data/lib/rubocop/cop/rspec/remove_const.rb +39 -0
  68. data/lib/rubocop/cop/rspec/repeated_example.rb +6 -6
  69. data/lib/rubocop/cop/rspec/repeated_example_group_body.rb +1 -1
  70. data/lib/rubocop/cop/rspec/repeated_example_group_description.rb +2 -2
  71. data/lib/rubocop/cop/rspec/repeated_include_example.rb +1 -1
  72. data/lib/rubocop/cop/rspec/repeated_subject_call.rb +125 -0
  73. data/lib/rubocop/cop/rspec/return_from_stub.rb +1 -1
  74. data/lib/rubocop/cop/rspec/scattered_setup.rb +1 -1
  75. data/lib/rubocop/cop/rspec/shared_context.rb +1 -1
  76. data/lib/rubocop/cop/rspec/shared_examples.rb +66 -20
  77. data/lib/rubocop/cop/rspec/single_argument_message_chain.rb +2 -3
  78. data/lib/rubocop/cop/rspec/sort_metadata.rb +3 -2
  79. data/lib/rubocop/cop/rspec/spec_file_path_format.rb +133 -0
  80. data/lib/rubocop/cop/rspec/spec_file_path_suffix.rb +40 -0
  81. data/lib/rubocop/cop/rspec/stubbed_mock.rb +4 -2
  82. data/lib/rubocop/cop/rspec/subject_stub.rb +6 -6
  83. data/lib/rubocop/cop/rspec/undescriptive_literals_description.rb +69 -0
  84. data/lib/rubocop/cop/rspec/unspecified_exception.rb +2 -2
  85. data/lib/rubocop/cop/rspec/variable_definition.rb +4 -4
  86. data/lib/rubocop/cop/rspec/verified_double_reference.rb +6 -6
  87. data/lib/rubocop/cop/rspec/verified_doubles.rb +2 -2
  88. data/lib/rubocop/cop/rspec/void_expect.rb +4 -3
  89. data/lib/rubocop/cop/rspec_cops.rb +14 -28
  90. data/lib/rubocop/rspec/concept.rb +0 -1
  91. data/lib/rubocop/rspec/config_formatter.rb +1 -11
  92. data/lib/rubocop/rspec/cop/generator.rb +25 -0
  93. data/lib/rubocop/rspec/language.rb +8 -9
  94. data/lib/rubocop/rspec/node.rb +1 -1
  95. data/lib/rubocop/rspec/shared_contexts/default_rspec_language_config_context.rb +1 -1
  96. data/lib/rubocop/rspec/version.rb +1 -1
  97. data/lib/rubocop/rspec/wording.rb +8 -0
  98. data/lib/rubocop-rspec.rb +2 -16
  99. metadata +27 -49
  100. data/lib/rubocop/cop/rspec/capybara/current_path_expectation.rb +0 -39
  101. data/lib/rubocop/cop/rspec/capybara/feature_methods.rb +0 -104
  102. data/lib/rubocop/cop/rspec/capybara/match_style.rb +0 -38
  103. data/lib/rubocop/cop/rspec/capybara/negation_matcher.rb +0 -33
  104. data/lib/rubocop/cop/rspec/capybara/specific_actions.rb +0 -29
  105. data/lib/rubocop/cop/rspec/capybara/specific_finders.rb +0 -24
  106. data/lib/rubocop/cop/rspec/capybara/specific_matcher.rb +0 -35
  107. data/lib/rubocop/cop/rspec/capybara/visibility_matcher.rb +0 -36
  108. data/lib/rubocop/cop/rspec/factory_bot/attribute_defined_statically.rb +0 -128
  109. data/lib/rubocop/cop/rspec/factory_bot/consistent_parentheses_style.rb +0 -117
  110. data/lib/rubocop/cop/rspec/factory_bot/create_list.rb +0 -260
  111. data/lib/rubocop/cop/rspec/factory_bot/factory_class_name.rb +0 -56
  112. data/lib/rubocop/cop/rspec/factory_bot/factory_name_style.rb +0 -74
  113. data/lib/rubocop/cop/rspec/factory_bot/syntax_methods.rb +0 -89
  114. data/lib/rubocop/cop/rspec/file_path.rb +0 -173
  115. data/lib/rubocop/cop/rspec/rails/avoid_setup_hook.rb +0 -43
  116. data/lib/rubocop/cop/rspec/rails/have_http_status.rb +0 -55
  117. data/lib/rubocop/cop/rspec/rails/http_status.rb +0 -203
  118. data/lib/rubocop/cop/rspec/rails/inferred_spec_type.rb +0 -145
  119. data/lib/rubocop/cop/rspec/rails/minitest_assertions.rb +0 -60
  120. data/lib/rubocop/cop/rspec/rails/travel_around.rb +0 -92
  121. data/lib/rubocop/rspec/factory_bot/language.rb +0 -37
  122. data/lib/rubocop/rspec/factory_bot.rb +0 -64
  123. data/lib/rubocop/rspec/language/node_pattern.rb +0 -48
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a388b40471f85e4da35358c9c9c0ab8bdce272c171b989553a174ea5f2fa04f
4
- data.tar.gz: 251c7b2c7f83daeb4f3e3f4e10f1b0f37763088ac792982e27052da26c1645ea
3
+ metadata.gz: b642c03d2fb24a8ac19e4e9ea60b7db9267550533be56cf6bb01b79724f7ec5f
4
+ data.tar.gz: 560dcc8a649c9556ea38021addb497c188eeb794432e307c13203bfe0d8d3d56
5
5
  SHA512:
6
- metadata.gz: 6311a48d125da92639f8bebbeebdd9b16e7968bf2b522d29310c913490977a465aa77112e39497880373be23732a2fb3cfa205b92475e2edd069c1009ae91aac
7
- data.tar.gz: fd3d495d5ec63969e2d926c5c151cf888de321b74486644983c6aa72b3c18b071daafe19b0996a0fa476334d00bf05768c09ae4ce03d39bbdf436898b64809c0
6
+ metadata.gz: 58f1eeb3b7a5c23629f76b87a4d1f66f1654bede0b59a4b8f9d7636f78d845850bf7518d87fac5a6daea2dda7bd13f844c59954ef231ce99a7cf310816891009
7
+ data.tar.gz: 4646cb7db9590720e985fa24b7cec2908af6b0a5c4ae61b882587f189f95b705dbf8f0272d7d30f2d0af569e4ec8d2cee9a20ba8ada819c3948c6a29dd6b3962
data/CHANGELOG.md CHANGED
@@ -2,6 +2,127 @@
2
2
 
3
3
  ## Master (Unreleased)
4
4
 
5
+ ## 3.0.1 (2024-06-11)
6
+
7
+ - Bump RuboCop requirement to +1.61. ([@ydah])
8
+
9
+ ## 3.0.0 (2024-06-11)
10
+
11
+ - Remove extracted cops in `Capybara`, `FactoryBot` and `Rails` departments. ([@ydah])
12
+ - Remove `RuboCop::RSpec::Language::NodePattern`. ([@ydah])
13
+ - Remove `RSpec/FilePath` cop. ([@ydah])
14
+ - Remove `RSpec/Capybara/FeatureMethods` cop. If you are using this cop, change it to use `RSpec/Dialect`. ([@ydah])
15
+ - Add new `RSpec/MissingExpectationTargetMethod` cop. ([@krororo])
16
+ - Fix an error for `RSpec/ScatteredSetup` when one of the hooks is an empty block. ([@earlopain])
17
+
18
+ These previously pending cops are now enabled by default: `RSpec/BeEmpty`, `RSpec/BeEq`, `RSpec/BeNil`, `RSpec/ChangeByZero`, `RSpec/ClassCheck`, `RSpec/ContainExactly`, `RSpec/DuplicatedMetadata`, `RSpec/EmptyMetadata`, `RSpec/EmptyOutput`, `RSpec/Eq`, `RSpec/ExcessiveDocstringSpacing`, `RSpec/ExpectInLet`, `RSpec/IdenticalEqualityAssertion`, `RSpec/IndexedLet`, `RSpec/IsExpectedSpecify`, `RSpec/MatchArray`, `RSpec/MetadataStyle`, `RSpec/NoExpectationExample`, `RSpec/PendingWithoutReason`, `RSpec/ReceiveMessages`, `RSpec/RedundantAround`, `RSpec/RedundantPredicateMatcher`, `RSpec/RemoveConst`, `RSpec/RepeatedSubjectCall`, `RSpec/SkipBlockInsideExample`, `RSpec/SortMetadata`, `RSpec/SpecFilePathFormat`, `RSpec/SpecFilePathSuffix`, `RSpec/SubjectDeclaration`, `RSpec/UndescriptiveLiteralsDescription`, and `RSpec/VerifiedDoubleReference`.
19
+
20
+ Read more about how to upgrade in https://docs.rubocop.org/rubocop-rspec/upgrade_to_version_3.html
21
+
22
+ ## 2.31.0 (2024-06-07)
23
+
24
+ - Support `AutoCorrect: contextual` option for LSP. ([@ydah])
25
+
26
+ ## 2.30.0 (2024-06-03)
27
+
28
+ - Add new `RSpec/ExpectInLet` cop. ([@yasu551])
29
+
30
+ ## 2.29.2 (2024-05-02)
31
+
32
+ - Fix beginless and endless range bug for RepeatedIncludeExample cop. ([@hasghari])
33
+ - Fix a false positive for `RSpec/RepeatedSubjectCall` when subject is used as argument to function call. ([@K-S-A])
34
+
35
+ ## 2.29.1 (2024-04-05)
36
+
37
+ - Fix an error in the default configuration. ([@ydah])
38
+
39
+ ## 2.29.0 (2024-04-04)
40
+
41
+ - Fix an autocorrect error for `RSpec/ExpectActual`. ([@bquorning])
42
+ - Add new `RSpec/UndescriptiveLiteralsDescription` cop. ([@ydah])
43
+ - Add new `RSpec/EmptyOutput` cop. ([@bquorning])
44
+
45
+ ## 2.28.0 (2024-03-30)
46
+
47
+ - Extract RSpec Rails cops to a separate repository, [`rubocop-rspec_rails`](https://github.com/rubocop/rubocop-rspec_rails). The `rubocop-rspec_rails` repository is a dependency of `rubocop-rspec` and the cops related to rspec-rails are aliased (`RSpec/Rails/Foo` == `RSpecRails/Foo`) until v3.0 is released, so the change will be invisible to users until then. ([@ydah])
48
+
49
+ ## 2.27.1 (2024-03-03)
50
+
51
+ - Fix a false positive for `RSpec/RepeatedSubjectCall` when `subject.method_call`. ([@ydah])
52
+ - Add configuration option `OnlyStaticConstants` to `RSpec/DescribedClass`. ([@ydah])
53
+
54
+ ## 2.27.0 (2024-03-01)
55
+
56
+ - Add new `RSpec/IsExpectedSpecify` cop. ([@ydah])
57
+ - Add new `RSpec/RepeatedSubjectCall` cop. ([@drcapulet])
58
+ - Add support for `assert_true`, `assert_false`, `assert_not_equal`, `assert_not_nil`, `*_empty`, `*_predicate`, `*_kind_of`, `*_in_delta`, `*_match`, `*_instance_of` and `*_includes` assertions in `RSpec/Rails/MinitestAssertions`. ([@ydah], [@G-Rath])
59
+ - Support asserts with messages in `Rspec/BeEmpty`. ([@G-Rath])
60
+ - Fix a false positive for `RSpec/ExpectActual` when used with rspec-rails routing matchers. ([@naveg])
61
+ - Add configuration option `ResponseMethods` to `RSpec/Rails/HaveHttpStatus`. ([@ydah])
62
+ - Fix a false negative for `RSpec/DescribedClass` when class with constant. ([@ydah])
63
+ - Fix a false positive for `RSpec/ExampleWithoutDescription` when `specify` with multi-line block and missing description. ([@ydah])
64
+ - Fix an incorrect autocorrect for `RSpec/ChangeByZero` when compound expectations with line break before `.by(0)`. ([@ydah])
65
+
66
+ ## 2.26.1 (2024-01-05)
67
+
68
+ - Fix an error for `RSpec/SharedExamples` when using examples without argument. ([@ydah])
69
+
70
+ ## 2.26.0 (2024-01-04)
71
+
72
+ - Add new `RSpec/RedundantPredicateMatcher` cop. ([@ydah])
73
+ - Add new `RSpec/RemoveConst` cop. ([@swelther])
74
+ - Add support for correcting "it will" (future tense) for `RSpec/ExampleWording`. ([@jdufresne])
75
+ - Add support for `symbol` style for `RSpec/SharedExamples`. ([@jessieay])
76
+ - Ensure `PendingWithoutReason` can detect violations inside shared groups. ([@robinaugh])
77
+
78
+ ## 2.25.0 (2023-10-27)
79
+
80
+ - Add support single quoted string and percent string and heredoc for `RSpec/Rails/HttpStatus`. ([@ydah])
81
+ - Change to be inline disable for `RSpec/SpecFilePathFormat` like `RSpec/FilePath`. ([@ydah])
82
+ - Fix a false positive for `RSpec/MetadataStyle` with example groups having multiple string arguments. ([@franzliedke])
83
+
84
+ ## 2.24.1 (2023-09-23)
85
+
86
+ - Fix an error when using `RSpec/FilePath` and revert to enabled by default. If you have already moved to `RSpec/SpecFilePathSuffix` and `RSpec/SpecFilePathFormat`, disable `RSpec/FilePath` explicitly as `Enabled: false`. The `RSpec/FilePath` before migration and the `RSpec/SpecFilePathSuffix` and `RSpec/SpecFilePathFormat` as the target are available respectively. ([@ydah])
87
+
88
+ ## 2.24.0 (2023-09-08)
89
+
90
+ - Split `RSpec/FilePath` into `RSpec/SpecFilePathSuffix` and `RSpec/SpecFilePathFormat`. `RSpec/FilePath` cop is disabled by default and the two new cops are pending and need to be enabled explicitly. ([@ydah])
91
+ - Add new `RSpec/Eq` cop. ([@ydah])
92
+ - Add `RSpec/MetadataStyle` and `RSpec/EmptyMetadata` cops. ([@r7kamura])
93
+ - Add support `RSpec/Rails/HttpStatus` when `have_http_status` with string argument. ([@ydah])
94
+ - Fix an infinite loop error when `RSpec/ExcessiveDocstringSpacing` finds a description with non-ASCII leading/trailing whitespace. ([@bcgraham])
95
+ - Fix an incorrect autocorrect for `RSpec/ReceiveMessages` when return values declared between stubs. ([@marocchino])
96
+ - Fix a false positive `RSpec/Focus` when chained method call and inside define method. ([@ydah])
97
+
98
+ ## 2.23.2 (2023-08-09)
99
+
100
+ - Fix an incorrect autocorrect for `RSpec/ReceiveMessages` when method is only non-word character. ([@marocchino])
101
+ - Fix a false positive for `RSpec/ReceiveMessages` when return with splat. ([@marocchino])
102
+
103
+ ## 2.23.1 (2023-08-07)
104
+
105
+ - Mark to `Safe: false` for `RSpec/Rails/NegationBeValid` cop. ([@ydah])
106
+ - Declare autocorrect as unsafe for `RSpec/ReceiveMessages`. ([@bquorning])
107
+
108
+ ## 2.23.0 (2023-07-30)
109
+
110
+ - Add new `RSpec/Rails/NegationBeValid` cop. ([@ydah])
111
+ - Fix a false negative for `RSpec/ExcessiveDocstringSpacing` when finds description with em space. ([@ydah])
112
+ - Fix a false positive for `RSpec/EmptyExampleGroup` when example group with examples defined in `if` branch inside iterator. ([@ydah])
113
+ - Update the message output of `RSpec/ExpectActual` to include the word 'value'. ([@corydiamand])
114
+ - Fix a false negative for `RSpec/Pending` when `it` without body. ([@ydah])
115
+ - Add new `RSpec/ReceiveMessages` cop. ([@ydah])
116
+ - Change default.yml path to use `**/spec/*` instead of `spec/*`. ([@ydah])
117
+ - Add `AllowedIdentifiers` and `AllowedPatterns` configuration option to `RSpec/IndexedLet`. ([@ydah])
118
+ - Fix `RSpec/NamedSubject` when block has no body. ([@splattael])
119
+ - Fix `RSpec/LetBeforeExamples` autocorrect incompatible with `RSpec/ScatteredLet` autocorrect. ([@ydah])
120
+ - Update `RSpec/Focus` to support `shared_context` and `shared_examples`. ([@tmaier])
121
+
122
+ ## 2.22.0 (2023-05-06)
123
+
124
+ - Extract factory_bot cops to a separate repository, [`rubocop-factory_bot`](https://github.com/rubocop/rubocop-factory_bot). The `rubocop-factory_bot` repository is a dependency of `rubocop-rspec` and the factory_bot cops are aliased (`RSpec/FactoryBot/Foo` == `FactoryBot/Foo`) until v3.0 is released, so the change will be invisible to users until then. ([@ydah])
125
+
5
126
  ## 2.21.0 (2023-05-05)
6
127
 
7
128
  - Fix a false positive in `RSpec/IndexedLet` with suffixes after index-like numbers. ([@pirj])
@@ -18,9 +139,9 @@
18
139
  - Add support `be_status` style for `RSpec/Rails/HttpStatus`. ([@ydah])
19
140
  - Add support for shared example groups to `RSpec/EmptyLineAfterExampleGroup`. ([@pirj])
20
141
  - Add support for `RSpec/HaveHttpStatus` when using `response.code`. ([@ydah])
21
- - Fix order of expected and actual in correction for `RSpec/Rails/MinitestAssertions` ([@mvz])
142
+ - Fix order of expected and actual in correction for `RSpec/Rails/MinitestAssertions`. ([@mvz])
22
143
  - Fix a false positive for `RSpec/DescribedClassModuleWrapping` when RSpec.describe numblock is nested within a module. ([@ydah])
23
- - Fix a false positive for `RSpec/FactoryBot/ConsistentParenthesesStyle` inside `&&`, `||` and `:?` when `omit_parentheses` is on ([@dmitrytsepelev])
144
+ - Fix a false positive for `RSpec/FactoryBot/ConsistentParenthesesStyle` inside `&&`, `||` and `:?` when `omit_parentheses` is on. ([@dmitrytsepelev])
24
145
  - Fix a false positive for `RSpec/PendingWithoutReason` when pending/skip has a reason inside an example group. ([@ydah])
25
146
  - Fix a false negative for `RSpec/RedundantAround` when redundant numblock `around`. ([@ydah])
26
147
  - Change `RSpec/ContainExactly` to ignore calls with no arguments, and change `RSpec/MatchArray` to ignore calls with an empty array literal argument. ([@ydah], [@bquorning])
@@ -73,7 +194,7 @@
73
194
  - Improved processing speed for `RSpec/Be`, `RSpec/ExpectActual`, `RSpec/ImplicitExpect`, `RSpec/MessageSpies`, `RSpec/PredicateMatcher` and `RSpec/Rails/HaveHttpStatus`. ([@ydah])
74
195
  - Fix wrong autocorrection in `n_times` style on `RSpec/FactoryBot/CreateList`. ([@r7kamura])
75
196
  - Fix a false positive for `RSpec/FactoryBot/ConsistentParenthesesStyle` when using `generate` with multiple arguments. ([@ydah])
76
- - Mark `RSpec/BeEq` as `Safe: false` ([@r7kamura])
197
+ - Mark `RSpec/BeEq` as `Safe: false`. ([@r7kamura])
77
198
  - Add `RSpec/DuplicatedMetadata` cop. ([@r7kamura])
78
199
  - Mark `RSpec/BeEql` as `Safe: false`. ([@r7kamura])
79
200
  - Add `RSpec/PendingWithoutReason` cop. ([@r7kamura])
@@ -106,8 +227,8 @@
106
227
  - Fix a false positive for `RSpec/Capybara/SpecificMatcher` when `have_css("a")` without attribute. ([@ydah])
107
228
  - Update `RSpec/ExampleWording` cop to raise error for insufficient descriptions. ([@akrox58])
108
229
  - Add new `RSpec/Capybara/NegationMatcher` cop. ([@ydah])
109
- - Add `AllowedPatterns` configuration option to `RSpec/NoExpectationExample`. ([@ydah])
110
- - Improve `RSpec/NoExpectationExample` cop to ignore examples skipped or pending via metadata. ([@pirj])
230
+ - Add `AllowedPatterns` configuration option to `RSpec/NoExpectationExample`. ([@ydah])
231
+ - Improve `RSpec/NoExpectationExample` cop to ignore examples skipped or pending via metadata. ([@pirj])
111
232
  - Add `RSpec/FactoryBot/ConsistentParenthesesStyle` cop. ([@Liberatys])
112
233
  - Add `RSpec/Rails/InferredSpecType` cop. ([@r7kamura])
113
234
  - Add new `RSpec/Capybara/SpecificActions` cop. ([@ydah])
@@ -423,7 +544,7 @@
423
544
  - Add config to `RSpec/VerifiedDoubles` to enforcement of verification on unnamed doubles. ([@BrentWheeldon])
424
545
  - Fix `FactoryBot/AttributeDefinedStatically` not working when there is a non-symbol key. ([@vzvu3k6k])
425
546
  - Fix false positive in `RSpec/ImplicitSubject` when `is_expected` is used inside `its()` block. ([@Darhazer])
426
- - Add `single_statement_only` style to `RSpec/ImplicitSubject` as a more relaxed alternative to `single_line_only`. ([@Darhazer])
547
+ - Add `single_statement_only` style to `RSpec/ImplicitSubject` as a more relaxed alternative to `single_line_only`. ([@Darhazer])
427
548
  - Add `RSpec/UnspecifiedException` as a default cop to encourage more-specific `expect{}.to raise_error(ExceptionType)`, or `raise_exception` style handling of exceptions. ([@daveworth])
428
549
 
429
550
  ## 1.29.1 (2018-09-01)
@@ -458,14 +579,14 @@
458
579
 
459
580
  ## 1.26.0 (2018-06-06)
460
581
 
461
- - Fix false positive in `RSpec/EmptyExampleGroup` cop when methods named like a RSpec method are used. ([@Darhazer])
582
+ - Fix false positive in `RSpec/EmptyExampleGroup` cop when methods named like a RSpec method are used. ([@Darhazer])
462
583
  - Fix `Capybara/FeatureMethods` not working when there is require before the spec. ([@Darhazer])
463
584
  - Fix `RSpec/EmptyLineAfterFinalLet`: allow a comment to be placed after latest let, requiring empty line after the comment. ([@Darhazer])
464
585
  - Add `RSpec/ReceiveCounts` cop to enforce usage of :once and :twice matchers. ([@Darhazer])
465
586
 
466
587
  ## 1.25.1 (2018-04-10)
467
588
 
468
- - Fix false positive in `RSpec/Pending` cop when pending is used as a method name. ([@Darhazer])
589
+ - Fix false positive in `RSpec/Pending` cop when pending is used as a method name. ([@Darhazer])
469
590
  - Fix `FactoryBot/DynamicAttributeDefinedStatically` false positive when using symbol proc argument for a sequence. ([@tdeo])
470
591
 
471
592
  ## 1.25.0 (2018-04-07)
@@ -473,7 +594,7 @@
473
594
  - Add `RSpec/SharedExamples` cop to enforce consistent usage of string to titleize shared examples. ([@anthony-robin])
474
595
  - Add `RSpec/Be` cop to enforce passing argument to the generic `be` matcher. ([@Darhazer])
475
596
  - Fix false positives in `StaticAttributeDefinedDynamically` and `ReturnFromStub` when a const is used in an array or hash. ([@Darhazer])
476
- - Add `RSpec/Pending` cop to enforce no existing pending or skipped examples. This is disabled by default. ([@patrickomatic])
597
+ - Add `RSpec/Pending` cop to enforce no existing pending or skipped examples. This is disabled by default. ([@patrickomatic])
477
598
  - Fix `RSpec/NestedGroups` cop support --auto-gen-config. ([@walf443])
478
599
  - Fix false positives in `Capybara/FeatureMethods` when feature methods are used as property names in a factory. ([@Darhazer])
479
600
  - Allow configuring enabled methods in `Capybara/FeatureMethods`. ([@Darhazer])
@@ -769,6 +890,7 @@ Compatibility release so users can upgrade RuboCop to 0.51.0. No new features.
769
890
  [@aried3r]: https://github.com/aried3r
770
891
  [@baberthal]: https://github.com/baberthal
771
892
  [@backus]: https://github.com/backus
893
+ [@bcgraham]: https://github.com/bcgraham
772
894
  [@biinari]: https://github.com/biinari
773
895
  [@bmorrall]: https://github.com/bmorrall
774
896
  [@bquorning]: https://github.com/bquorning
@@ -777,15 +899,18 @@ Compatibility release so users can upgrade RuboCop to 0.51.0. No new features.
777
899
  [@cfabianski]: https://github.com/cfabianski
778
900
  [@clupprich]: https://github.com/clupprich
779
901
  [@composerinteralia]: https://github.com/composerinteralia
902
+ [@corydiamand]: https://github.com/corydiamand
780
903
  [@darhazer]: https://github.com/Darhazer
781
904
  [@daveworth]: https://github.com/daveworth
782
905
  [@dduugg]: https://github.com/dduugg
783
906
  [@deivid-rodriguez]: https://github.com/deivid-rodriguez
784
907
  [@dgollahon]: https://github.com/dgollahon
785
908
  [@dmitrytsepelev]: https://github.com/dmitrytsepelev
909
+ [@drcapulet]: https://github.com/drcapulet
786
910
  [@drowze]: https://github.com/Drowze
787
911
  [@dswij]: https://github.com/dswij
788
912
  [@dvandersluis]: https://github.com/dvandersluis
913
+ [@earlopain]: https://github.com/earlopain
789
914
  [@edgibbs]: https://github.com/edgibbs
790
915
  [@eikes]: https://github.com/eikes
791
916
  [@eitoball]: https://github.com/eitoball
@@ -795,23 +920,29 @@ Compatibility release so users can upgrade RuboCop to 0.51.0. No new features.
795
920
  [@faucct]: https://github.com/faucct
796
921
  [@foton]: https://github.com/foton
797
922
  [@francois-ferrandis]: https://github.com/francois-ferrandis
923
+ [@franzliedke]: https://github.com/franzliedke
798
924
  [@g-rath]: https://github.com/G-Rath
799
925
  [@geniou]: https://github.com/geniou
800
926
  [@gsamokovarov]: https://github.com/gsamokovarov
801
927
  [@harry-graham]: https://github.com/harry-graham
802
928
  [@harrylewis]: https://github.com/harrylewis
929
+ [@hasghari]: https://github.com/hasghari
803
930
  [@hosamaly]: https://github.com/hosamaly
804
931
  [@ignaciovillaverde]: https://github.com/ignaciovillaverde
805
932
  [@jaredbeck]: https://github.com/jaredbeck
806
933
  [@jaredmoody]: https://github.com/jaredmoody
934
+ [@jdufresne]: https://github.com/jdufresne
807
935
  [@jeffreyc]: https://github.com/jeffreyc
936
+ [@jessieay]: https://github.com/jessieay
808
937
  [@jfragoulis]: https://github.com/jfragoulis
809
938
  [@johnny-miyake]: https://github.com/johnny-miyake
810
939
  [@jojos003]: https://github.com/jojos003
811
940
  [@jonatas]: https://github.com/jonatas
812
941
  [@jtannas]: https://github.com/jtannas
942
+ [@k-s-a]: https://github.com/K-S-A
813
943
  [@kellysutton]: https://github.com/kellysutton
814
944
  [@koic]: https://github.com/koic
945
+ [@krororo]: https://github.com/krororo
815
946
  [@kuahyeow]: https://github.com/kuahyeow
816
947
  [@lazycoder9]: https://github.com/lazycoder9
817
948
  [@leoarnold]: https://github.com/leoarnold
@@ -819,6 +950,7 @@ Compatibility release so users can upgrade RuboCop to 0.51.0. No new features.
819
950
  [@lokhi]: https://github.com/lokhi
820
951
  [@luke-hill]: https://github.com/luke-hill
821
952
  [@m-yamashita01]: https://github.com/M-Yamashita01
953
+ [@marocchino]: https://github.com/marocchino
822
954
  [@miguelfteixeira]: https://github.com/miguelfteixeira
823
955
  [@mkenyon]: https://github.com/mkenyon
824
956
  [@mkrawc]: https://github.com/mkrawc
@@ -826,6 +958,7 @@ Compatibility release so users can upgrade RuboCop to 0.51.0. No new features.
826
958
  [@mockdeep]: https://github.com/mockdeep
827
959
  [@mothonmars]: https://github.com/MothOnMars
828
960
  [@mvz]: https://github.com/mvz
961
+ [@naveg]: https://github.com/naveg
829
962
  [@nc-holodakg]: https://github.com/nc-holodakg
830
963
  [@nevir]: https://github.com/nevir
831
964
  [@ngouy]: https://github.com/ngouy
@@ -845,6 +978,7 @@ Compatibility release so users can upgrade RuboCop to 0.51.0. No new features.
845
978
  [@rafix02]: https://github.com/Rafix02
846
979
  [@redross]: https://github.com/redross
847
980
  [@renanborgescampos]: https://github.com/renanborgescampos
981
+ [@robinaugh]: https://github.com/robinaugh
848
982
  [@robotdana]: https://github.com/robotdana
849
983
  [@rolfschmidt]: https://github.com/rolfschmidt
850
984
  [@rrosenblum]: https://github.com/rrosenblum
@@ -855,17 +989,21 @@ Compatibility release so users can upgrade RuboCop to 0.51.0. No new features.
855
989
  [@seanpdoyle]: https://github.com/seanpdoyle
856
990
  [@sl4vr]: https://github.com/sl4vr
857
991
  [@smcgivern]: https://github.com/smcgivern
992
+ [@splattael]: https://github.com/splattael
858
993
  [@stephannv]: https://github.com/stephannv
994
+ [@swelther]: https://github.com/swelther
859
995
  [@t3h2mas]: https://github.com/t3h2mas
860
996
  [@tdeo]: https://github.com/tdeo
861
997
  [@tejasbubane]: https://github.com/tejasbubane
862
998
  [@telmofcosta]: https://github.com/telmofcosta
863
999
  [@tietew]: https://github.com/Tietew
864
1000
  [@timrogers]: https://github.com/timrogers
1001
+ [@tmaier]: https://github.com/tmaier
865
1002
  [@topalovic]: https://github.com/topalovic
866
1003
  [@twalpole]: https://github.com/twalpole
867
1004
  [@vzvu3k6k]: https://github.com/vzvu3k6k
868
1005
  [@walf443]: https://github.com/walf443
1006
+ [@yasu551]: https://github.com/yasu551
869
1007
  [@ybiquitous]: https://github.com/ybiquitous
870
1008
  [@ydah]: https://github.com/ydah
871
1009
  [@yevhene]: https://github.com/yevhene
data/README.md CHANGED
@@ -17,7 +17,7 @@ gem install rubocop-rspec
17
17
 
18
18
  or if you use bundler put this in your `Gemfile`
19
19
 
20
- ```
20
+ ```ruby
21
21
  gem 'rubocop-rspec', require: false
22
22
  ```
23
23
 
@@ -81,7 +81,7 @@ In your `.rubocop.yml`, you may treat the RSpec cops just like any other
81
81
  cop. For example:
82
82
 
83
83
  ```yaml
84
- RSpec/FilePath:
84
+ RSpec/SpecFilePathFormat:
85
85
  Exclude:
86
86
  - spec/my_poorly_named_spec_file.rb
87
87
  ```