rack-link_headers 2.4.0 → 2.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rack/link_headers/version.rb +1 -1
- data/rack-link-headers.gemspec +2 -2
- data/vendor/bundle/ruby/3.3.0/bundler/gems/rubocop-config-943facea9d8f/LICENSE +21 -0
- data/vendor/bundle/ruby/3.3.0/bundler/gems/rubocop-config-943facea9d8f/README.md +23 -0
- data/vendor/bundle/ruby/3.3.0/bundler/gems/rubocop-config-943facea9d8f/rubocop-config.gemspec +31 -0
- data/vendor/bundle/ruby/3.3.0/gems/ast-2.4.2/LICENSE.MIT +20 -0
- data/vendor/bundle/ruby/3.3.0/gems/ast-2.4.2/README.YARD.md +12 -0
- data/vendor/bundle/ruby/3.3.0/gems/json-2.7.2/LICENSE +56 -0
- data/vendor/bundle/ruby/3.3.0/gems/json-2.7.2/README.md +416 -0
- data/vendor/bundle/ruby/3.3.0/gems/json-2.7.2/json.gemspec +68 -0
- data/vendor/bundle/ruby/3.3.0/gems/language_server-protocol-3.17.0.3/LICENSE.txt +21 -0
- data/vendor/bundle/ruby/3.3.0/gems/language_server-protocol-3.17.0.3/README.md +88 -0
- data/vendor/bundle/ruby/3.3.0/gems/minitest-5.25.1/README.rdoc +835 -0
- data/vendor/bundle/ruby/3.3.0/gems/parallel-1.26.3/MIT-LICENSE.txt +20 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.5.0/LICENSE.txt +25 -0
- data/vendor/bundle/ruby/3.3.0/gems/parser-3.3.5.0/parser.gemspec +43 -0
- data/vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/README.ja.rdoc +58 -0
- data/vendor/bundle/ruby/3.3.0/gems/racc-1.8.1/README.rdoc +60 -0
- data/vendor/bundle/ruby/3.3.0/gems/rack-3.1.7/CHANGELOG.md +994 -0
- data/vendor/bundle/ruby/3.3.0/gems/rack-3.1.7/MIT-LICENSE +20 -0
- data/vendor/bundle/ruby/3.3.0/gems/rack-3.1.7/README.md +328 -0
- data/vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/LICENSE +20 -0
- data/vendor/bundle/ruby/3.3.0/gems/rainbow-3.1.1/README.markdown +227 -0
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/MIT-LICENSE +21 -0
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/README.rdoc +155 -0
- data/vendor/bundle/ruby/3.3.0/gems/rake-13.2.1/rake.gemspec +101 -0
- data/vendor/bundle/ruby/3.3.0/gems/rake-release-1.3.0/LICENSE +21 -0
- data/vendor/bundle/ruby/3.3.0/gems/rake-release-1.3.0/README.md +107 -0
- data/vendor/bundle/ruby/3.3.0/gems/rake-release-1.3.0/rake-release.gemspec +23 -0
- data/vendor/bundle/ruby/3.3.0/gems/regexp_parser-2.9.2/LICENSE +22 -0
- data/vendor/bundle/ruby/3.3.0/gems/regexp_parser-2.9.2/regexp_parser.gemspec +34 -0
- data/vendor/bundle/ruby/3.3.0/gems/rexml-3.3.7/LICENSE.txt +22 -0
- data/vendor/bundle/ruby/3.3.0/gems/rexml-3.3.7/README.md +57 -0
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-1.65.1/LICENSE.txt +20 -0
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-1.65.1/README.md +251 -0
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-ast-1.32.3/LICENSE.txt +20 -0
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-ast-1.32.3/README.md +56 -0
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-capybara-2.21.0/CHANGELOG.md +85 -0
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-capybara-2.21.0/MIT-LICENSE.md +21 -0
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-capybara-2.21.0/README.md +88 -0
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-factory_bot-2.26.1/CHANGELOG.md +116 -0
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-factory_bot-2.26.1/MIT-LICENSE.md +21 -0
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-factory_bot-2.26.1/README.md +88 -0
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-performance-1.21.1/LICENSE.txt +20 -0
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-performance-1.21.1/README.md +97 -0
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-rspec-3.0.5/CHANGELOG.md +1034 -0
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-rspec-3.0.5/MIT-LICENSE.md +21 -0
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-rspec-3.0.5/README.md +109 -0
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-rspec_rails-2.30.0/CHANGELOG.md +84 -0
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-rspec_rails-2.30.0/MIT-LICENSE.md +21 -0
- data/vendor/bundle/ruby/3.3.0/gems/rubocop-rspec_rails-2.30.0/README.md +90 -0
- data/vendor/bundle/ruby/3.3.0/gems/ruby-progressbar-1.13.0/LICENSE.txt +19 -0
- data/vendor/bundle/ruby/3.3.0/gems/ruby-progressbar-1.13.0/README.md +131 -0
- data/vendor/bundle/ruby/3.3.0/gems/unicode-display_width-2.6.0/CHANGELOG.md +200 -0
- data/vendor/bundle/ruby/3.3.0/gems/unicode-display_width-2.6.0/MIT-LICENSE.txt +22 -0
- data/vendor/bundle/ruby/3.3.0/gems/unicode-display_width-2.6.0/README.md +171 -0
- data/vendor/bundle/ruby/3.3.0/specifications/ast-2.4.2.gemspec +30 -0
- data/vendor/bundle/ruby/3.3.0/specifications/json-2.7.2.gemspec +0 -0
- data/vendor/bundle/ruby/3.3.0/specifications/language_server-protocol-3.17.0.3.gemspec +31 -0
- data/vendor/bundle/ruby/3.3.0/specifications/minitest-5.25.1.gemspec +31 -0
- data/vendor/bundle/ruby/3.3.0/specifications/parallel-1.26.3.gemspec +21 -0
- data/vendor/bundle/ruby/3.3.0/specifications/parser-3.3.5.0.gemspec +37 -0
- data/vendor/bundle/ruby/3.3.0/specifications/racc-1.8.1.gemspec +28 -0
- data/vendor/bundle/ruby/3.3.0/specifications/rack-3.1.7.gemspec +31 -0
- data/vendor/bundle/ruby/3.3.0/specifications/rainbow-3.1.1.gemspec +25 -0
- data/vendor/bundle/ruby/3.3.0/specifications/rake-13.2.1.gemspec +26 -0
- data/vendor/bundle/ruby/3.3.0/specifications/rake-release-1.3.0.gemspec +26 -0
- data/vendor/bundle/ruby/3.3.0/specifications/regexp_parser-2.9.2.gemspec +22 -0
- data/vendor/bundle/ruby/3.3.0/specifications/rexml-3.3.7.gemspec +25 -0
- data/vendor/bundle/ruby/3.3.0/specifications/rubocop-1.65.1.gemspec +39 -0
- data/vendor/bundle/ruby/3.3.0/specifications/rubocop-ast-1.32.3.gemspec +28 -0
- data/vendor/bundle/ruby/3.3.0/specifications/rubocop-capybara-2.21.0.gemspec +27 -0
- data/vendor/bundle/ruby/3.3.0/specifications/rubocop-factory_bot-2.26.1.gemspec +27 -0
- data/vendor/bundle/ruby/3.3.0/specifications/rubocop-performance-1.21.1.gemspec +29 -0
- data/vendor/bundle/ruby/3.3.0/specifications/rubocop-rspec-3.0.5.gemspec +28 -0
- data/vendor/bundle/ruby/3.3.0/specifications/rubocop-rspec_rails-2.30.0.gemspec +28 -0
- data/vendor/bundle/ruby/3.3.0/specifications/ruby-progressbar-1.13.0.gemspec +29 -0
- data/vendor/bundle/ruby/3.3.0/specifications/unicode-display_width-2.6.0.gemspec +29 -0
- metadata +80 -4
@@ -0,0 +1,1034 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## Master (Unreleased)
|
4
|
+
|
5
|
+
## 3.0.5 (2024-09-07)
|
6
|
+
|
7
|
+
- Fix false-negative and error for `RSpec/MetadataStyle` when non-literal args are used in metadata in `EnforceStyle: hash`. ([@cbliard])
|
8
|
+
- Improve offense message for `RSpec/IndexedLet`. ([@earlopain])
|
9
|
+
|
10
|
+
## 3.0.4 (2024-08-05)
|
11
|
+
|
12
|
+
- Fix false-negative for `UnspecifiedException` when matcher is chained. ([@r7kamura])
|
13
|
+
|
14
|
+
## 3.0.3 (2024-07-12)
|
15
|
+
|
16
|
+
- Add support for Unicode RIGHT SINGLE QUOTATION MARK in `RSpec/ExampleWording`. ([@jdufresne])
|
17
|
+
- Suppress deprecation warning for `RSpec/MultipleExpectations`, `RSpec/MultipleMemoizedHelpers`, and `RSpec/NestedGroups` cops. ([@koic])
|
18
|
+
|
19
|
+
## 3.0.2 (2024-07-02)
|
20
|
+
|
21
|
+
- Fix wrong autocorrect for `RSpec/ScatteredSetup` when hook contains heredoc. ([@earlopain])
|
22
|
+
- Fix false negative for `RSpec/PredicateMatcher` when expectation contains custom failure message. ([@earlopain])
|
23
|
+
- Facilitate the 3.0 upgrade flow with proper extracted cop messages. ([@jeppester])
|
24
|
+
|
25
|
+
## 3.0.1 (2024-06-11)
|
26
|
+
|
27
|
+
- Bump RuboCop requirement to +1.61. ([@ydah])
|
28
|
+
|
29
|
+
## 3.0.0 (2024-06-11)
|
30
|
+
|
31
|
+
- Remove extracted cops in `Capybara`, `FactoryBot` and `Rails` departments. ([@ydah])
|
32
|
+
- Remove `RuboCop::RSpec::Language::NodePattern`. ([@ydah])
|
33
|
+
- Remove `RSpec/FilePath` cop. ([@ydah])
|
34
|
+
- Remove `RSpec/Capybara/FeatureMethods` cop. If you are using this cop, change it to use `RSpec/Dialect`. ([@ydah])
|
35
|
+
- Add new `RSpec/MissingExpectationTargetMethod` cop. ([@krororo])
|
36
|
+
- Fix an error for `RSpec/ScatteredSetup` when one of the hooks is an empty block. ([@earlopain])
|
37
|
+
|
38
|
+
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`.
|
39
|
+
|
40
|
+
Read more about how to upgrade in https://docs.rubocop.org/rubocop-rspec/upgrade_to_version_3.html
|
41
|
+
|
42
|
+
## 2.31.0 (2024-06-07)
|
43
|
+
|
44
|
+
- Support `AutoCorrect: contextual` option for LSP. ([@ydah])
|
45
|
+
|
46
|
+
## 2.30.0 (2024-06-03)
|
47
|
+
|
48
|
+
- Add new `RSpec/ExpectInLet` cop. ([@yasu551])
|
49
|
+
|
50
|
+
## 2.29.2 (2024-05-02)
|
51
|
+
|
52
|
+
- Fix beginless and endless range bug for RepeatedIncludeExample cop. ([@hasghari])
|
53
|
+
- Fix a false positive for `RSpec/RepeatedSubjectCall` when subject is used as argument to function call. ([@K-S-A])
|
54
|
+
|
55
|
+
## 2.29.1 (2024-04-05)
|
56
|
+
|
57
|
+
- Fix an error in the default configuration. ([@ydah])
|
58
|
+
|
59
|
+
## 2.29.0 (2024-04-04)
|
60
|
+
|
61
|
+
- Fix an autocorrect error for `RSpec/ExpectActual`. ([@bquorning])
|
62
|
+
- Add new `RSpec/UndescriptiveLiteralsDescription` cop. ([@ydah])
|
63
|
+
- Add new `RSpec/EmptyOutput` cop. ([@bquorning])
|
64
|
+
|
65
|
+
## 2.28.0 (2024-03-30)
|
66
|
+
|
67
|
+
- 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])
|
68
|
+
|
69
|
+
## 2.27.1 (2024-03-03)
|
70
|
+
|
71
|
+
- Fix a false positive for `RSpec/RepeatedSubjectCall` when `subject.method_call`. ([@ydah])
|
72
|
+
- Add configuration option `OnlyStaticConstants` to `RSpec/DescribedClass`. ([@ydah])
|
73
|
+
|
74
|
+
## 2.27.0 (2024-03-01)
|
75
|
+
|
76
|
+
- Add new `RSpec/IsExpectedSpecify` cop. ([@ydah])
|
77
|
+
- Add new `RSpec/RepeatedSubjectCall` cop. ([@drcapulet])
|
78
|
+
- 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])
|
79
|
+
- Support asserts with messages in `Rspec/BeEmpty`. ([@G-Rath])
|
80
|
+
- Fix a false positive for `RSpec/ExpectActual` when used with rspec-rails routing matchers. ([@naveg])
|
81
|
+
- Add configuration option `ResponseMethods` to `RSpec/Rails/HaveHttpStatus`. ([@ydah])
|
82
|
+
- Fix a false negative for `RSpec/DescribedClass` when class with constant. ([@ydah])
|
83
|
+
- Fix a false positive for `RSpec/ExampleWithoutDescription` when `specify` with multi-line block and missing description. ([@ydah])
|
84
|
+
- Fix an incorrect autocorrect for `RSpec/ChangeByZero` when compound expectations with line break before `.by(0)`. ([@ydah])
|
85
|
+
|
86
|
+
## 2.26.1 (2024-01-05)
|
87
|
+
|
88
|
+
- Fix an error for `RSpec/SharedExamples` when using examples without argument. ([@ydah])
|
89
|
+
|
90
|
+
## 2.26.0 (2024-01-04)
|
91
|
+
|
92
|
+
- Add new `RSpec/RedundantPredicateMatcher` cop. ([@ydah])
|
93
|
+
- Add new `RSpec/RemoveConst` cop. ([@swelther])
|
94
|
+
- Add support for correcting "it will" (future tense) for `RSpec/ExampleWording`. ([@jdufresne])
|
95
|
+
- Add support for `symbol` style for `RSpec/SharedExamples`. ([@jessieay])
|
96
|
+
- Ensure `PendingWithoutReason` can detect violations inside shared groups. ([@robinaugh])
|
97
|
+
|
98
|
+
## 2.25.0 (2023-10-27)
|
99
|
+
|
100
|
+
- Add support single quoted string and percent string and heredoc for `RSpec/Rails/HttpStatus`. ([@ydah])
|
101
|
+
- Change to be inline disable for `RSpec/SpecFilePathFormat` like `RSpec/FilePath`. ([@ydah])
|
102
|
+
- Fix a false positive for `RSpec/MetadataStyle` with example groups having multiple string arguments. ([@franzliedke])
|
103
|
+
|
104
|
+
## 2.24.1 (2023-09-23)
|
105
|
+
|
106
|
+
- 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])
|
107
|
+
|
108
|
+
## 2.24.0 (2023-09-08)
|
109
|
+
|
110
|
+
- 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])
|
111
|
+
- Add new `RSpec/Eq` cop. ([@ydah])
|
112
|
+
- Add `RSpec/MetadataStyle` and `RSpec/EmptyMetadata` cops. ([@r7kamura])
|
113
|
+
- Add support `RSpec/Rails/HttpStatus` when `have_http_status` with string argument. ([@ydah])
|
114
|
+
- Fix an infinite loop error when `RSpec/ExcessiveDocstringSpacing` finds a description with non-ASCII leading/trailing whitespace. ([@bcgraham])
|
115
|
+
- Fix an incorrect autocorrect for `RSpec/ReceiveMessages` when return values declared between stubs. ([@marocchino])
|
116
|
+
- Fix a false positive `RSpec/Focus` when chained method call and inside define method. ([@ydah])
|
117
|
+
|
118
|
+
## 2.23.2 (2023-08-09)
|
119
|
+
|
120
|
+
- Fix an incorrect autocorrect for `RSpec/ReceiveMessages` when method is only non-word character. ([@marocchino])
|
121
|
+
- Fix a false positive for `RSpec/ReceiveMessages` when return with splat. ([@marocchino])
|
122
|
+
|
123
|
+
## 2.23.1 (2023-08-07)
|
124
|
+
|
125
|
+
- Mark to `Safe: false` for `RSpec/Rails/NegationBeValid` cop. ([@ydah])
|
126
|
+
- Declare autocorrect as unsafe for `RSpec/ReceiveMessages`. ([@bquorning])
|
127
|
+
|
128
|
+
## 2.23.0 (2023-07-30)
|
129
|
+
|
130
|
+
- Add new `RSpec/Rails/NegationBeValid` cop. ([@ydah])
|
131
|
+
- Fix a false negative for `RSpec/ExcessiveDocstringSpacing` when finds description with em space. ([@ydah])
|
132
|
+
- Fix a false positive for `RSpec/EmptyExampleGroup` when example group with examples defined in `if` branch inside iterator. ([@ydah])
|
133
|
+
- Update the message output of `RSpec/ExpectActual` to include the word 'value'. ([@corydiamand])
|
134
|
+
- Fix a false negative for `RSpec/Pending` when `it` without body. ([@ydah])
|
135
|
+
- Add new `RSpec/ReceiveMessages` cop. ([@ydah])
|
136
|
+
- Change default.yml path to use `**/spec/*` instead of `spec/*`. ([@ydah])
|
137
|
+
- Add `AllowedIdentifiers` and `AllowedPatterns` configuration option to `RSpec/IndexedLet`. ([@ydah])
|
138
|
+
- Fix `RSpec/NamedSubject` when block has no body. ([@splattael])
|
139
|
+
- Fix `RSpec/LetBeforeExamples` autocorrect incompatible with `RSpec/ScatteredLet` autocorrect. ([@ydah])
|
140
|
+
- Update `RSpec/Focus` to support `shared_context` and `shared_examples`. ([@tmaier])
|
141
|
+
|
142
|
+
## 2.22.0 (2023-05-06)
|
143
|
+
|
144
|
+
- 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])
|
145
|
+
|
146
|
+
## 2.21.0 (2023-05-05)
|
147
|
+
|
148
|
+
- Fix a false positive in `RSpec/IndexedLet` with suffixes after index-like numbers. ([@pirj])
|
149
|
+
- Fix an error for `RSpec/Rails/HaveHttpStatus` with comparison with strings containing non-numeric characters. ([@ydah])
|
150
|
+
- Fix an error for `RSpec/MatchArray` when `match_array` with no argument. ([@ydah])
|
151
|
+
- Add support `a_block_changing` and `changing` for `RSpec/ChangeByZero`. ([@ydah])
|
152
|
+
- Drop Ruby 2.6 support. ([@ydah])
|
153
|
+
|
154
|
+
## 2.20.0 (2023-04-18)
|
155
|
+
|
156
|
+
- Add new `RSpec/IndexedLet` cop. ([@dmitrytsepelev])
|
157
|
+
- Add new `RSpec/BeEmpty` cop. ([@ydah], [@bquorning])
|
158
|
+
- Add autocorrect support for `RSpec/ScatteredSetup`. ([@ydah])
|
159
|
+
- Add support `be_status` style for `RSpec/Rails/HttpStatus`. ([@ydah])
|
160
|
+
- Add support for shared example groups to `RSpec/EmptyLineAfterExampleGroup`. ([@pirj])
|
161
|
+
- Add support for `RSpec/HaveHttpStatus` when using `response.code`. ([@ydah])
|
162
|
+
- Fix order of expected and actual in correction for `RSpec/Rails/MinitestAssertions`. ([@mvz])
|
163
|
+
- Fix a false positive for `RSpec/DescribedClassModuleWrapping` when RSpec.describe numblock is nested within a module. ([@ydah])
|
164
|
+
- Fix a false positive for `RSpec/FactoryBot/ConsistentParenthesesStyle` inside `&&`, `||` and `:?` when `omit_parentheses` is on. ([@dmitrytsepelev])
|
165
|
+
- Fix a false positive for `RSpec/PendingWithoutReason` when pending/skip has a reason inside an example group. ([@ydah])
|
166
|
+
- Fix a false negative for `RSpec/RedundantAround` when redundant numblock `around`. ([@ydah])
|
167
|
+
- Change `RSpec/ContainExactly` to ignore calls with no arguments, and change `RSpec/MatchArray` to ignore calls with an empty array literal argument. ([@ydah], [@bquorning])
|
168
|
+
- Make `RSpec/MatchArray` and `RSpec/ContainExactly` pending. ([@ydah])
|
169
|
+
|
170
|
+
## 2.19.0 (2023-03-06)
|
171
|
+
|
172
|
+
- Fix a false positive for `RSpec/ContextWording` when context is interpolated string literal or execute string. ([@ydah])
|
173
|
+
- Fix a false positive for `RSpec/DescribeMethod` when multi-line describe without `#` and `.` at the beginning. ([@ydah], [@pirj])
|
174
|
+
- Fix a false positive for `RSpec/VariableName` when inside non-spec code. ([@ydah])
|
175
|
+
- Fix a false positive for `RSpec/VariableDefinition` when inside non-spec code. ([@ydah])
|
176
|
+
- Add new `RSpec/PendingBlockInsideExample` cop. ([@ydah])
|
177
|
+
- Add `RSpec/RedundantAround` cop. ([@r7kamura])
|
178
|
+
- Add `RSpec/Rails/TravelAround` cop. ([@r7kamura])
|
179
|
+
- Add `RSpec/ContainExactly` and `RSpec/MatchArray` cops. ([@faucct])
|
180
|
+
- Fix a false positive for `RSpec/PendingWithoutReason` when not inside example and pending/skip with block. ([@ydah], [@pirj])
|
181
|
+
- Fix a false positive for `RSpec/PendingWithoutReason` when `skip` is passed a block inside example. ([@ydah], [@pirj])
|
182
|
+
- Rename `RSpec/PendingBlockInsideExample` cop to `RSpec/SkipBlockInsideExample`. ([@pirj])
|
183
|
+
- Deprecate `send_pattern`/`block_pattern`/`numblock_pattern` helpers in favour of using node pattern explicitly. ([@pirj], [@ydah])
|
184
|
+
- Fix an incorrect autocorrect for `RSpec/VerifiedDoubleReference` when namespaced class. ([@ydah])
|
185
|
+
|
186
|
+
## 2.18.1 (2023-01-19)
|
187
|
+
|
188
|
+
- Add `rubocop-capybara` version constraint to prevent sudden cop enabling when it hits 3.0. ([@pirj])
|
189
|
+
|
190
|
+
## 2.18.0 (2023-01-16)
|
191
|
+
|
192
|
+
- Extract Capybara cops to a separate repository, [`rubocop-capybara`](https://github.com/rubocop/rubocop-capybara). The `rubocop-capybara` repository is a dependency of `rubocop-rspec` and the Capybara cops are aliased (`RSpec/Capybara/Foo` == `Capybara/Foo`) until v3.0 is released, so the change will be invisible to users until then. ([@pirj])
|
193
|
+
|
194
|
+
## 2.17.1 (2023-01-16)
|
195
|
+
|
196
|
+
- Fix a false negative for `RSpec/Pending` when using skipped in metadata is multiline string. ([@ydah])
|
197
|
+
- Fix a false positive for `RSpec/NoExpectationExample` when using skipped in metadata is multiline string. ([@ydah])
|
198
|
+
- Fix a false positive for `RSpec/ContextMethod` when multi-line context with `#` at the beginning. ([@ydah])
|
199
|
+
- Fix an incorrect autocorrect for `RSpec/PredicateMatcher` when multiline expect and predicate method with heredoc. ([@ydah])
|
200
|
+
- Fix a false positive for `RSpec/PredicateMatcher` when `include` with multiple argument. ([@ydah])
|
201
|
+
|
202
|
+
## 2.17.0 (2023-01-13)
|
203
|
+
|
204
|
+
- Fix a false positive for `RSpec/PendingWithoutReason` when pending/skip is argument of methods. ([@ydah])
|
205
|
+
- Add new `RSpec/Capybara/MatchStyle` cop. ([@ydah])
|
206
|
+
- Add new `RSpec/Rails/MinitestAssertions` cop. ([@ydah])
|
207
|
+
- Fix a false positive for `RSpec/PendingWithoutReason` when not inside example. ([@ydah])
|
208
|
+
- Fix a false negative for `RSpec/PredicateMatcher` when using `include` and `respond_to`. ([@ydah])
|
209
|
+
- Fix a false positive for `RSpec/StubbedMock` when stubbed message expectation with a block and block parameter. ([@ydah])
|
210
|
+
|
211
|
+
## 2.16.0 (2022-12-13)
|
212
|
+
|
213
|
+
- Add new `RSpec/FactoryBot/FactoryNameStyle` cop. ([@ydah])
|
214
|
+
- Improved processing speed for `RSpec/Be`, `RSpec/ExpectActual`, `RSpec/ImplicitExpect`, `RSpec/MessageSpies`, `RSpec/PredicateMatcher` and `RSpec/Rails/HaveHttpStatus`. ([@ydah])
|
215
|
+
- Fix wrong autocorrection in `n_times` style on `RSpec/FactoryBot/CreateList`. ([@r7kamura])
|
216
|
+
- Fix a false positive for `RSpec/FactoryBot/ConsistentParenthesesStyle` when using `generate` with multiple arguments. ([@ydah])
|
217
|
+
- Mark `RSpec/BeEq` as `Safe: false`. ([@r7kamura])
|
218
|
+
- Add `RSpec/DuplicatedMetadata` cop. ([@r7kamura])
|
219
|
+
- Mark `RSpec/BeEql` as `Safe: false`. ([@r7kamura])
|
220
|
+
- Add `RSpec/PendingWithoutReason` cop. ([@r7kamura])
|
221
|
+
|
222
|
+
## 2.15.0 (2022-11-03)
|
223
|
+
|
224
|
+
- Fix a false positive for `RSpec/RepeatedDescription` when different its block expectations are used. ([@ydah])
|
225
|
+
- Add `named_only` style to `RSpec/NamedSubject`. ([@kuahyeow])
|
226
|
+
- Fix `RSpec/FactoryBot/ConsistentParenthesesStyle` to ignore calls without the first positional argument. ([@pirj])
|
227
|
+
- Fix `RSpec/FactoryBot/ConsistentParenthesesStyle` to ignore calls inside a Hash or an Array. ([@pirj])
|
228
|
+
- Fix `RSpec/NestedGroups` to correctly use `AllowedGroups` config. ([@samrjenkins])
|
229
|
+
- Remove `Runners` and `HookScopes` RSpec DSL elements from configuration. ([@pirj])
|
230
|
+
- Add `with default RSpec/Language config` helper to `lib` (under `rubocop/rspec/shared_contexts/default_rspec_language_config_context`), to allow use for downstream cops based on `RuboCop::Cop::RSpec::Base`. ([@smcgivern])
|
231
|
+
|
232
|
+
## 2.14.2 (2022-10-25)
|
233
|
+
|
234
|
+
- Fix an incorrect autocorrect for `FactoryBot/ConsistentParenthesesStyle` with `omit_parentheses` option when method name and first argument are not on same line. ([@ydah])
|
235
|
+
- Fix autocorrection loop in `RSpec/ExampleWording` for insufficient example wording. ([@pirj])
|
236
|
+
- Fix `RSpec/SortMetadata` not to reorder arguments of `include_`/`it_behaves_like`. ([@pirj])
|
237
|
+
- Fix a false positive for `RSpec/NoExpectationExample` when allowed pattern methods with arguments. ([@ydah])
|
238
|
+
- Change `RSpec/FilePath` so that it only checks suffix when path is under spec/routing or type is defined as routing. ([@r7kamura])
|
239
|
+
|
240
|
+
## 2.14.1 (2022-10-24)
|
241
|
+
|
242
|
+
- Fix an error for `RSpec/Rails/InferredSpecType` with redundant type before other Hash metadata. ([@ydah])
|
243
|
+
|
244
|
+
## 2.14.0 (2022-10-23)
|
245
|
+
|
246
|
+
- Add `require_implicit` style to `RSpec/ImplicitSubject`. ([@r7kamura])
|
247
|
+
- Fix a false positive for `RSpec/Capybara/SpecificMatcher` when `have_css("a")` without attribute. ([@ydah])
|
248
|
+
- Update `RSpec/ExampleWording` cop to raise error for insufficient descriptions. ([@akrox58])
|
249
|
+
- Add new `RSpec/Capybara/NegationMatcher` cop. ([@ydah])
|
250
|
+
- Add `AllowedPatterns` configuration option to `RSpec/NoExpectationExample`. ([@ydah])
|
251
|
+
- Improve `RSpec/NoExpectationExample` cop to ignore examples skipped or pending via metadata. ([@pirj])
|
252
|
+
- Add `RSpec/FactoryBot/ConsistentParenthesesStyle` cop. ([@Liberatys])
|
253
|
+
- Add `RSpec/Rails/InferredSpecType` cop. ([@r7kamura])
|
254
|
+
- Add new `RSpec/Capybara/SpecificActions` cop. ([@ydah])
|
255
|
+
- Update `config/default.yml` removing deprecated option to make the config correctable by users. ([@ignaciovillaverde])
|
256
|
+
- Do not attempt to auto-correct example groups with `include_examples` in `RSpec/LetBeforeExamples`. ([@pirj])
|
257
|
+
- Add new `RSpec/SortMetadata` cop. ([@leoarnold])
|
258
|
+
- Add support for subject! method to `RSpec/SubjectDeclaration`. ([@ydah])
|
259
|
+
|
260
|
+
## 2.13.2 (2022-09-23)
|
261
|
+
|
262
|
+
- Fix an error for `RSpec/Capybara/SpecificFinders` with no parentheses. ([@ydah])
|
263
|
+
- Fix a false positive for `RSpec/NoExpectationExample` with pending using `skip` or `pending` inside an example. ([@ydah])
|
264
|
+
- Exclude `have_text` and `have_content` that raise `ArgumentError` with `RSpec/Capybara/VisibilityMatcher` where `:visible` is an invalid option. ([@ydah])
|
265
|
+
- Fix a false negative for `RSpec/Capybara/VisibilityMatcher` with negative matchers. ([@ydah])
|
266
|
+
|
267
|
+
## 2.13.1 (2022-09-12)
|
268
|
+
|
269
|
+
- Include config/obsoletion.yml in the gemspec. ([@hosamaly])
|
270
|
+
|
271
|
+
## 2.13.0 (2022-09-12)
|
272
|
+
|
273
|
+
- Fix `RSpec/FilePath` cop missing mismatched expanded namespace. ([@sl4vr])
|
274
|
+
- Add new `AllowConsecutiveOneLiners` (default true) option for `Rspec/EmptyLineAfterHook` cop. ([@ngouy])
|
275
|
+
- Add autocorrect support for `RSpec/EmptyExampleGroup`. ([@r7kamura])
|
276
|
+
- Fix `RSpec/ChangeByZero` with compound expressions using `&` or `|` operators. ([@BrianHawley])
|
277
|
+
- Add `RSpec/NoExpectationExample`. ([@r7kamura])
|
278
|
+
- Add some expectation methods to default configuration. ([@r7kamura])
|
279
|
+
- Fix a false positive for `RSpec/Capybara/SpecificMatcher`. ([@ydah])
|
280
|
+
- Fix a false negative for `RSpec/Capybara/SpecificMatcher` for `have_field`. ([@ydah])
|
281
|
+
- Fix a false positive for `RSpec/Capybara/SpecificMatcher` when may not have a `href` by `have_link`. ([@ydah])
|
282
|
+
- Add `NegatedMatcher` configuration option to `RSpec/ChangeByZero`. ([@ydah])
|
283
|
+
- Add new `RSpec/Capybara/SpecificFinders` cop. ([@ydah])
|
284
|
+
- Add support for numblocks to `RSpec/AroundBlock`, `RSpec/EmptyLineAfterHook`, `RSpec/ExpectInHook`, `RSpec/HookArgument`, `RSpec/HooksBeforeExamples`, `RSpec/IteratedExpectation`, and `RSpec/NoExpectationExample`. ([@ydah])
|
285
|
+
- Fix incorrect documentation URLs when using `rubocop --show-docs-url`. ([@r7kamura])
|
286
|
+
- Add `AllowedGroups` configuration option to `RSpec/NestedGroups`. ([@ydah])
|
287
|
+
- Deprecate `IgnoredPatterns` option in favor of the `AllowedPatterns` options. ([@ydah])
|
288
|
+
- Add `AllowedPatterns` configuration option to `RSpec/ContextWording`. ([@ydah])
|
289
|
+
- Add `RSpec/ClassCheck` cop. ([@r7kamura])
|
290
|
+
- Fix a false positive for `RSpec/Capybara/SpecificMatcher` when pseudo-classes. ([@ydah])
|
291
|
+
- Fix a false negative for `RSpec/SubjectStub` when the subject is declared with the `subject!` method and called by name. ([@eikes])
|
292
|
+
- Support `Array.new(n)` on `RSpec/FactoryBot/CreateList` cop. ([@r7kamura])
|
293
|
+
|
294
|
+
## 2.12.1 (2022-07-03)
|
295
|
+
|
296
|
+
- Fix a false positive for `RSpec/Capybara/SpecificMatcher`. ([@ydah])
|
297
|
+
|
298
|
+
## 2.12.0 (2022-07-02)
|
299
|
+
|
300
|
+
- Fix incorrect path suggested by `RSpec/FilePath` cop when second argument contains spaces. ([@tejasbubane])
|
301
|
+
- Fix autocorrect for EmptyLineSeparation. ([@johnny-miyake])
|
302
|
+
- Add new `RSpec/Capybara/SpecificMatcher` cop. ([@ydah])
|
303
|
+
- Fixed false offense detection in `FactoryBot/CreateList` when a n.times block is including method calls in the factory create arguments. ([@ngouy])
|
304
|
+
- Fix error in `RSpec/RSpec/FactoryBot/CreateList` cop for empty block. ([@tejasbubane])
|
305
|
+
- Update `RSpec/MultipleExpectations` cop documentation with examples of aggregate_failures use. ([@edgibbs])
|
306
|
+
- Declare autocorrect as unsafe for `RSpec/VerifiedDoubleReference`. ([@Drowze])
|
307
|
+
- Add new `RSpec/Rails/HaveHttpStatus` cop. ([@akiomik])
|
308
|
+
|
309
|
+
## 2.11.1 (2022-05-18)
|
310
|
+
|
311
|
+
- Fix a regression in `RSpec/ExpectChange` flagging chained method calls. ([@pirj])
|
312
|
+
|
313
|
+
## 2.11.0 (2022-05-18)
|
314
|
+
|
315
|
+
- Drop Ruby 2.5 support. ([@ydah])
|
316
|
+
- Add new `RSpec/ChangeByZero` cop. ([@ydah])
|
317
|
+
- Improve `RSpec/ExpectChange` to detect namespaced and top-level constants. ([@M-Yamashita01])
|
318
|
+
- Introduce an amendment to `Metrics/BlockLength` to exclude spec files. ([@luke-hill])
|
319
|
+
|
320
|
+
## 2.10.0 (2022-04-19)
|
321
|
+
|
322
|
+
- Fix a false positive for `RSpec/EmptyExampleGroup` when expectations in case statement. ([@ydah])
|
323
|
+
- Add `RSpec/VerifiedDoubleReference` cop. ([@t3h2mas])
|
324
|
+
- Make `RSpec/BeNil` cop configurable with a `be_nil` style and a `be` style. ([@bquorning])
|
325
|
+
- Fix `Capybara/CurrentPathExpectation` autocorrect incompatible with `Style/TrailingCommaInArguments` autocorrect. ([@ydah])
|
326
|
+
|
327
|
+
## 2.9.0 (2022-02-28)
|
328
|
+
|
329
|
+
- Add new `RSpec/BeNil` cop. ([@bquorning])
|
330
|
+
- Add new `RSpec/BeEq` cop. ([@bquorning])
|
331
|
+
|
332
|
+
## 2.8.0 (2022-01-24)
|
333
|
+
|
334
|
+
- Fix `RSpec/FactoryBot/SyntaxMethods` and `RSpec/Capybara/FeatureMethods` to inspect shared groups. ([@pirj])
|
335
|
+
- Fix `RSpec/LeadingSubject` failure in non-spec code. ([@pirj])
|
336
|
+
- Add bad example to `RSpec/SubjectStub` cop. ([@oshiro3])
|
337
|
+
- Replace non-styleguide cops `StyleGuide` attribute with `Reference`. ([@pirj])
|
338
|
+
- Fix `RSpec/SubjectStub` to disallow stubbing of subjects defined in parent example groups. ([@pirj])
|
339
|
+
|
340
|
+
## 2.7.0 (2021-12-26)
|
341
|
+
|
342
|
+
- Add new `RSpec/FactoryBot/SyntaxMethods` cop. ([@leoarnold])
|
343
|
+
- Exclude `task` type specs from `RSpec/DescribeClass` cop. ([@harry-graham])
|
344
|
+
|
345
|
+
## 2.6.0 (2021-11-08)
|
346
|
+
|
347
|
+
- Fix merging RSpec DSL configuration from third-party gems. ([@pirj])
|
348
|
+
- Fix `RSpec/ExcessiveDocstringSpacing` false positive for multi-line indented strings. ([@G-Rath])
|
349
|
+
- Fix `Include` configuration for sub-departments. ([@pirj])
|
350
|
+
- Ignore heredocs in `RSpec/ExcessiveDocstringSpacing`. ([@G-Rath])
|
351
|
+
- Stop `RSpec/ExampleWording` from trying to correct heredocs. ([@G-Rath])
|
352
|
+
- Add autocorrect support for `RSpec/VariableDefinition`. ([@r7kamura])
|
353
|
+
|
354
|
+
## 2.5.0 (2021-09-21)
|
355
|
+
|
356
|
+
- Declare autocorrect as unsafe for `ExpectChange`. ([@francois-ferrandis])
|
357
|
+
- Fix each example for `RSpec/HookArgument`. ([@lokhi])
|
358
|
+
- Exclude unrelated Rails directories from `RSpec/DescribeClass`. ([@MothOnMars])
|
359
|
+
- Add `RSpec/ExcessiveDocstringSpacing` cop. ([@G-Rath])
|
360
|
+
- Add `RSpec/SubjectDeclaration` cop. ([@dswij])
|
361
|
+
- Fix excessive whitespace removal in `RSpec/EmptyHook` autocorrection. ([@pirj])
|
362
|
+
- Bump RuboCop requirement to v1.19.0. ([@pirj])
|
363
|
+
- Fix false positive in `RSpec/IteratedExpectation` when there is single, non-expectation statement in the block body. ([@Darhazer])
|
364
|
+
|
365
|
+
## 2.4.0 (2021-06-09)
|
366
|
+
|
367
|
+
- Update `RSpec/FilePath` to check suffix when given a non-constant top-level node (e.g. features). ([@topalovic])
|
368
|
+
- Add missing documentation for `single_statement_only` style of `RSpec/ImplicitSubject` cop. ([@tejasbubane])
|
369
|
+
- Fix an exception in `DescribedClass` when accessing a constant on a variable in a spec that is nested in a namespace. ([@rrosenblum])
|
370
|
+
- Add new `RSpec/IdenticalEqualityAssertion` cop. ([@tejasbubane])
|
371
|
+
- Add `RSpec/Rails/AvoidSetupHook` cop. ([@paydaylight])
|
372
|
+
- Fix false negative in `RSpec/ExpectChange` cop with block style and chained method call. ([@tejasbubane])
|
373
|
+
|
374
|
+
## 2.3.0 (2021-04-28)
|
375
|
+
|
376
|
+
- Allow `RSpec/ContextWording` to accept multi-word prefixes. ([@hosamaly])
|
377
|
+
- Drop support for ruby 2.4. ([@bquorning])
|
378
|
+
- Add `CountAsOne` configuration option to `RSpec/ExampleLength`. ([@stephannv])
|
379
|
+
- Fix a false positive for `RSpec/RepeatedExampleGroupBody` when `pending` or `skip` have argument(s). ([@Tietew])
|
380
|
+
|
381
|
+
## 2.2.0 (2021-02-02)
|
382
|
+
|
383
|
+
- Fix `HooksBeforeExamples`, `LeadingSubject`, `LetBeforeExamples` and `ScatteredLet` autocorrection to take into account inline comments and comments immediately before the moved node. ([@Darhazer])
|
384
|
+
- Improve rubocop-rspec performance. ([@Darhazer], [@bquorning])
|
385
|
+
- Include `Enabled: true` to prevent a mismatched configuration parameter warning when `RSpec` cops are explicitly enabled in the user configuration. ([@pirj])
|
386
|
+
|
387
|
+
## 2.1.0 (2020-12-17)
|
388
|
+
|
389
|
+
- Fix `RSpec/FilePath` false positive for relative file path runs with long namespaces. ([@ahukkanen])
|
390
|
+
- Update `RSpec/Focus` to have auto-correction. ([@dvandersluis])
|
391
|
+
|
392
|
+
## 2.0.1 (2020-12-02)
|
393
|
+
|
394
|
+
- Fixed infinite loop in `RSpec/ExpectActual` autocorrection when both expected and actual values are literals. ([@Darhazer])
|
395
|
+
|
396
|
+
## 2.0.0 (2020-11-06)
|
397
|
+
|
398
|
+
- Remove deprecated class `::RuboCop::Cop::RSpec::Cop`. ([@bquorning])
|
399
|
+
- Retire `RSpec/InvalidPredicateMatcher` cop. ([@pirj])
|
400
|
+
- Remove the code responsible for filtering files to inspect. ([@pirj])
|
401
|
+
- Make RSpec language elements configurable. ([@sl4vr])
|
402
|
+
- Remove `CustomIncludeMethods` `RSpec/EmptyExampleGroup` option in favour of the new RSpec DSL configuration. ([@pirj])
|
403
|
+
- Enabled pending cop (`RSpec/StubbedMock`). ([@pirj])
|
404
|
+
|
405
|
+
## 2.0.0.pre (2020-10-22)
|
406
|
+
|
407
|
+
- Update RuboCop dependency to v1.0.0. ([@bquorning])
|
408
|
+
- Change namespace of several cops (`Capybara/*` -> `RSpec/Capybara/*`, `FactoryBot/*` -> `RSpec/FactoryBot/*`, `Rails/*` -> `RSpec/Rails/*`). ([@pirj], [@bquorning])
|
409
|
+
|
410
|
+
## 1.44.1 (2020-10-20)
|
411
|
+
|
412
|
+
- Relax `rubocop-ast` version constraint. ([@PhilCoggins])
|
413
|
+
|
414
|
+
## 1.44.0 (2020-10-20)
|
415
|
+
|
416
|
+
- Move our documentation from rubocop-rspec.readthedocs.io to docs.rubocop.org/rubocop-rspec. ([@bquorning])
|
417
|
+
- Add `RSpec/RepeatedIncludeExample` cop. ([@biinari])
|
418
|
+
- Add `RSpec/StubbedMock` cop. ([@bquorning], [@pirj])
|
419
|
+
- Add `IgnoredMetadata` configuration option to `RSpec/DescribeClass`. ([@Rafix02])
|
420
|
+
- Fix false positives in `RSpec/EmptyExampleGroup`. ([@pirj])
|
421
|
+
- Fix a false positive for `RSpec/EmptyExampleGroup` when example is defined in an `if` branch. ([@koic])
|
422
|
+
|
423
|
+
## 1.43.2 (2020-08-25)
|
424
|
+
|
425
|
+
- Fix `RSpec/FilePath` when checking a file with a shared example. ([@pirj])
|
426
|
+
- Fix subject nesting detection in `RSpec/LeadingSubject`. ([@pirj])
|
427
|
+
|
428
|
+
## 1.43.1 (2020-08-17)
|
429
|
+
|
430
|
+
- Fix `RSpec/FilePath` when checking a file defining e.g. an empty class. ([@bquorning])
|
431
|
+
|
432
|
+
## 1.43.0 (2020-08-17)
|
433
|
+
|
434
|
+
- Add a new base cop class `::RuboCop::Cop::RSpec::Base`. The old base class `::RuboCop::Cop::RSpec::Cop` is deprecated, and will be removed in the next major release. ([@bquorning])
|
435
|
+
- Add support for subject detection after includes and example groups in `RSpec/LeadingSubject`. ([@pirj])
|
436
|
+
- Ignore trailing punctuation in context description prefix. ([@elliterate])
|
437
|
+
- Relax `RSpec/VariableDefinition` cop so interpolated and multiline strings are accepted even when configured to enforce the `symbol` style. ([@bquorning])
|
438
|
+
- Fix `RSpec/EmptyExampleGroup` to flag example groups with examples in invalid scopes. ([@mlarraz])
|
439
|
+
- Fix `RSpec/EmptyExampleGroup` to ignore examples groups with examples defined inside iterators. ([@pirj])
|
440
|
+
- Improve `RSpec/NestedGroups`, `RSpec/FilePath`, `RSpec/DescribeMethod`, `RSpec/MultipleDescribes`, `RSpec/DescribeClass`'s top-level example group detection. ([@pirj])
|
441
|
+
- Add detection of `let!` with a block-pass or a string literal to `RSpec/LetSetup`. ([@pirj])
|
442
|
+
- Add `IgnoredPatterns` configuration option to `RSpec/VariableName`. ([@jtannas])
|
443
|
+
- Add `RSpec/MultipleMemoizedHelpers` cop. ([@mockdeep])
|
444
|
+
|
445
|
+
## 1.42.0 (2020-07-09)
|
446
|
+
|
447
|
+
- Update RuboCop dependency to 0.87.0 because of changes to internal APIs. ([@bquorning], [@Darhazer])
|
448
|
+
|
449
|
+
## 1.41.0 (2020-07-03)
|
450
|
+
|
451
|
+
- Extend the list of Rails spec types for `RSpec/DescribeClass`. ([@pirj])
|
452
|
+
- Fix `FactoryBot/AttributeDefinedStatically` to allow `#traits_for_enum` without a block. ([@harrylewis])
|
453
|
+
- Improve the performance of `FactoryBot/AttributeDefinedStatically`, `RSpec/InstanceVariable`, `RSpec/LetSetup`, `RSpec/NestedGroups` and `RSpec/ReturnFromStub`. ([@andrykonchin])
|
454
|
+
|
455
|
+
## 1.40.0 (2020-06-11)
|
456
|
+
|
457
|
+
- Add new `RSpec/VariableName` cop. ([@tejasbubane])
|
458
|
+
- Add new `RSpec/VariableDefinition` cop. ([@tejasbubane])
|
459
|
+
- Expand `Capybara/VisibilityMatcher` to support more than just `have_selector`. ([@twalpole])
|
460
|
+
- Add new `SpecSuffixOnly` option to `RSpec/FilePath` cop. ([@zdennis])
|
461
|
+
- Allow `RSpec/RepeatedExampleGroupBody` to differ only by described_class. ([@robotdana])
|
462
|
+
- Fix `RSpec/FilePath` detection across sibling directories. ([@rolfschmidt])
|
463
|
+
- Improve the performance of `RSpec/SubjectStub` by an order of magnitude. ([@andrykonchin])
|
464
|
+
|
465
|
+
## 1.39.0 (2020-05-01)
|
466
|
+
|
467
|
+
- Fix `RSpec/FilePath` detection when absolute path includes test subject. ([@eitoball])
|
468
|
+
- Add new `Capybara/VisibilityMatcher` cop. ([@aried3r])
|
469
|
+
- Ignore String constants by `RSpec/Describe`. ([@AlexWayfer])
|
470
|
+
- Drop support for ruby 2.3. ([@bquorning])
|
471
|
+
- Fix multiple cops to detect `let` with proc argument. ([@tejasbubane])
|
472
|
+
- Add autocorrect support for `RSpec/ScatteredLet`. ([@Darhazer])
|
473
|
+
- Add new `RSpec/EmptyHook` cop. ([@tejasbubane])
|
474
|
+
|
475
|
+
## 1.38.1 (2020-02-15)
|
476
|
+
|
477
|
+
- Fix `RSpec/RepeatedDescription` to detect descriptions with interpolation and methods. ([@lazycoder9])
|
478
|
+
|
479
|
+
## 1.38.0 (2020-02-11)
|
480
|
+
|
481
|
+
- Fix `RSpec/InstanceVariable` detection inside custom matchers. ([@pirj])
|
482
|
+
- Fix `RSpec/ScatteredSetup` to distinguish hooks with different metadata. ([@pirj])
|
483
|
+
- Add autocorrect support for `RSpec/ExpectActual` cop. ([@dduugg], [@pirj])
|
484
|
+
- Add `RSpec/RepeatedExampleGroupBody` cop. ([@lazycoder9])
|
485
|
+
- Add `RSpec/RepeatedExampleGroupDescription` cop. ([@lazycoder9])
|
486
|
+
- Add block name and other lines to `RSpec/ScatteredSetup` message. ([@elebow])
|
487
|
+
- Fix `RSpec/RepeatedDescription` to take into account example metadata. ([@lazycoder9])
|
488
|
+
|
489
|
+
## 1.37.1 (2019-12-16)
|
490
|
+
|
491
|
+
- Improve message and description of `FactoryBot/FactoryClassName`. ([@ybiquitous])
|
492
|
+
- Fix `FactoryBot/FactoryClassName` to ignore `Hash` and `OpenStruct`. ([@jfragoulis])
|
493
|
+
|
494
|
+
## 1.37.0 (2019-11-25)
|
495
|
+
|
496
|
+
- Implement `RSpec/DescribedClassModuleWrapping` to disallow RSpec statements within a module. ([@kellysutton])
|
497
|
+
- Fix documentation rake task to support RuboCop 0.75. ([@nickcampbell18])
|
498
|
+
- Fix `RSpec/SubjectStub` to detect implicit subjects stubbed. ([@QQism])
|
499
|
+
- Fix `RSpec/Pending` not flagging `skip` with string values. ([@pirj])
|
500
|
+
- Add `AllowedExplicitMatchers` config option for `RSpec/PredicateMatcher`. ([@mkrawc])
|
501
|
+
- Add `FactoryBot/FactoryClassName` cop. ([@jfragoulis])
|
502
|
+
|
503
|
+
## 1.36.0 (2019-09-27)
|
504
|
+
|
505
|
+
- Fix `RSpec/DescribedClass`'s error when `described_class` is used as part of a constant. ([@pirj])
|
506
|
+
- Fix `RSpec/ExampleWording` autocorrect of multi-line docstrings. ([@pirj])
|
507
|
+
- Add `RSpec/ContextMethod` cop, to detect method names in `context`. ([@geniou])
|
508
|
+
- Update RuboCop dependency to 0.68.1 with support for children matching node pattern syntax. ([@pirj])
|
509
|
+
- Add `RSpec/EmptyLineAfterExample` cop to check that there is an empty line after example blocks. ([@pirj])
|
510
|
+
- Fix `Capybara/CurrentPathExpectation` auto-corrector, to include option `ignore_query: true`. ([@onumis])
|
511
|
+
- Fix `RSpec/Focus` detecting mixed array/hash metadata. ([@dgollahon])
|
512
|
+
- Fix `RSpec/Focus` to also detect `pending` examples. ([@dgollahon])
|
513
|
+
|
514
|
+
## 1.35.0 (2019-08-02)
|
515
|
+
|
516
|
+
- Add `RSpec/ImplicitBlockExpectation` cop. ([@pirj])
|
517
|
+
|
518
|
+
## 1.34.1 (2019-07-31)
|
519
|
+
|
520
|
+
- Fix `RSpec/DescribedClass`'s error when a local variable is part of the namespace. ([@pirj])
|
521
|
+
|
522
|
+
## 1.34.0 (2019-07-23)
|
523
|
+
|
524
|
+
- Remove `AggregateFailuresByDefault` config option of `RSpec/MultipleExpectations`. ([@pirj])
|
525
|
+
- Add `RSpec/LeakyConstantDeclaration` cop. ([@jonatas], [@pirj])
|
526
|
+
- Improve `aggregate_failures` metadata detection of `RSpec/MultipleExpectations`. ([@pirj])
|
527
|
+
- Improve `RSpec/SubjectStub` detection and message. ([@pirj])
|
528
|
+
- Change message of `RSpec/LetSetup` cop to be more descriptive. ([@foton])
|
529
|
+
- Improve `RSpec/ExampleWording` to handle interpolated example messages. ([@nc-holodakg])
|
530
|
+
- Improve detection by allowing the use of `RSpec` as a top-level constant. ([@pirj])
|
531
|
+
- Fix `RSpec/DescribedClass`'s incorrect detection. ([@pirj])
|
532
|
+
- Improve `RSpec/DescribedClass`'s ability to detect inside modules and classes. ([@pirj])
|
533
|
+
|
534
|
+
## 1.33.0 (2019-05-13)
|
535
|
+
|
536
|
+
- Let `RSpec/DescribedClass` pass `Struct` instantiation closures. ([@schmijos])
|
537
|
+
- Fixed `RSpec/ContextWording` missing `context`s with metadata. ([@pirj])
|
538
|
+
- Fix `FactoryBot/AttributeDefinedStatically` not working with an explicit receiver. ([@composerinteralia])
|
539
|
+
- Add `RSpec/Dialect` enforces custom RSpec dialects. ([@gsamokovarov])
|
540
|
+
- Fix redundant blank lines in `RSpec/MultipleSubjects`'s autocorrect. ([@pirj])
|
541
|
+
- Drop support for ruby `2.2`. ([@bquorning])
|
542
|
+
|
543
|
+
## 1.32.0 (2019-01-27)
|
544
|
+
|
545
|
+
- Add `RSpec/Yield` cop, suggesting using the `and_yield` method when stubbing a method, accepting a block. ([@Darhazer])
|
546
|
+
- Fix `FactoryBot/CreateList` autocorrect crashing when the factory is called with a block=. ([@Darhazer])
|
547
|
+
- Fixed `RSpec/Focus` not flagging some cases of `RSpec.describe` with `focus: true`. ([@Darhazer])
|
548
|
+
- Fixed `RSpec/Pending` not flagging some cases of `RSpec.describe` with `:skip`. ([@Darhazer])
|
549
|
+
- Fix false positive in `RSpec/ReceiveCounts` when method name `exactly`, `at_least` or `at_most` is used along with `times`, without being an RSpec API. ([@Darhazer])
|
550
|
+
|
551
|
+
## 1.31.0 (2019-01-02)
|
552
|
+
|
553
|
+
- Add `IgnoreSharedExamples` option for `RSpec/NamedSubject`. ([@RST-J])
|
554
|
+
- Add autocorrect support for `Capybara/CurrentPathExpectation` cop. ([@ypresto])
|
555
|
+
- Add support for built-in `exists` matcher for `RSpec/PredicateMatcher` cop. ([@mkenyon])
|
556
|
+
- `SingleArgumentMessageChain` no longer reports an array as it's only argument as an offense. ([@Darhazer])
|
557
|
+
|
558
|
+
## 1.30.1 (2018-11-01)
|
559
|
+
|
560
|
+
- `FactoryBot/CreateList` now ignores `times` blocks with an argument. ([@Darhazer])
|
561
|
+
|
562
|
+
## 1.30.0 (2018-10-08)
|
563
|
+
|
564
|
+
- Add config to `RSpec/VerifiedDoubles` to enforcement of verification on unnamed doubles. ([@BrentWheeldon])
|
565
|
+
- Fix `FactoryBot/AttributeDefinedStatically` not working when there is a non-symbol key. ([@vzvu3k6k])
|
566
|
+
- Fix false positive in `RSpec/ImplicitSubject` when `is_expected` is used inside `its()` block. ([@Darhazer])
|
567
|
+
- Add `single_statement_only` style to `RSpec/ImplicitSubject` as a more relaxed alternative to `single_line_only`. ([@Darhazer])
|
568
|
+
- Add `RSpec/UnspecifiedException` as a default cop to encourage more-specific `expect{}.to raise_error(ExceptionType)`, or `raise_exception` style handling of exceptions. ([@daveworth])
|
569
|
+
|
570
|
+
## 1.29.1 (2018-09-01)
|
571
|
+
|
572
|
+
- Fix false negative in `FactoryBot/AttributeDefinedStatically` when attribute is defined on `self`. ([@Darhazer])
|
573
|
+
- `RSpec/FactoryBot` cops will now also inspect the `spec/factories.rb` path by default. ([@bquorning])
|
574
|
+
|
575
|
+
## 1.29.0 (2018-08-25)
|
576
|
+
|
577
|
+
- `RSpec/InstanceVariable` - Recommend local variables in addition to `let`. ([@jaredbeck])
|
578
|
+
- Add `RSpec/ImplicitSubject` cop. ([@Darhazer])
|
579
|
+
- Add `RSpec/HooksBeforeExamples` cop. ([@Darhazer])
|
580
|
+
|
581
|
+
## 1.28.0 (2018-08-14)
|
582
|
+
|
583
|
+
- Add `RSpec/ReceiveNever` cop enforcing usage of `not_to receive` instead of `never` matcher. ([@Darhazer])
|
584
|
+
- Fix false positive in `RSpec/EmptyLineAfterExampleGroup` cop when example is inside `if`. ([@Darhazer])
|
585
|
+
- Add `RSpec/MissingExampleGroupArgument` to enforce first argument for an example group. ([@geniou])
|
586
|
+
- Drop support for ruby `2.1`. ([@bquorning])
|
587
|
+
- Add `FactoryBot/AttributeDefinedStatically` cop to help FactoryBot users with the deprecation of static attributes. ([@composerinteralia], [@seanpdoyle])
|
588
|
+
- Remove `FactoryBot/DynamicAttributeDefinedStatically` and `FactoryBot/StaticAttributeDefinedDynamically` cops. ([@composerinteralia])
|
589
|
+
|
590
|
+
## 1.27.0 (2018-06-14)
|
591
|
+
|
592
|
+
- `RSpec/LeadingSubject` now enforces subject to be before any examples, hooks or let declarations. ([@Darhazer])
|
593
|
+
- Fix `RSpec/NotToNot` to highlight only the selector (`not_to` or `to_not`), so it works also on `expect { ... }` blocks. ([@bquorning])
|
594
|
+
- Add `RSpec/EmptyLineAfterHook` cop. ([@bquorning])
|
595
|
+
- Add `RSpec/EmptyLineAfterExampleGroup` cop to check that there is an empty line after example group blocks. ([@bquorning])
|
596
|
+
- Fix `RSpec/DescribeClass` crashing on `RSpec.describe` without arguments. ([@Darhazer])
|
597
|
+
- Bump RuboCop requirement to v0.56.0. ([@bquorning])
|
598
|
+
- Fix `RSpec/OverwritingSetup` crashing if a variable is used as an argument for `let`. ([@Darhazer])
|
599
|
+
|
600
|
+
## 1.26.0 (2018-06-06)
|
601
|
+
|
602
|
+
- Fix false positive in `RSpec/EmptyExampleGroup` cop when methods named like a RSpec method are used. ([@Darhazer])
|
603
|
+
- Fix `Capybara/FeatureMethods` not working when there is require before the spec. ([@Darhazer])
|
604
|
+
- Fix `RSpec/EmptyLineAfterFinalLet`: allow a comment to be placed after latest let, requiring empty line after the comment. ([@Darhazer])
|
605
|
+
- Add `RSpec/ReceiveCounts` cop to enforce usage of :once and :twice matchers. ([@Darhazer])
|
606
|
+
|
607
|
+
## 1.25.1 (2018-04-10)
|
608
|
+
|
609
|
+
- Fix false positive in `RSpec/Pending` cop when pending is used as a method name. ([@Darhazer])
|
610
|
+
- Fix `FactoryBot/DynamicAttributeDefinedStatically` false positive when using symbol proc argument for a sequence. ([@tdeo])
|
611
|
+
|
612
|
+
## 1.25.0 (2018-04-07)
|
613
|
+
|
614
|
+
- Add `RSpec/SharedExamples` cop to enforce consistent usage of string to titleize shared examples. ([@anthony-robin])
|
615
|
+
- Add `RSpec/Be` cop to enforce passing argument to the generic `be` matcher. ([@Darhazer])
|
616
|
+
- Fix false positives in `StaticAttributeDefinedDynamically` and `ReturnFromStub` when a const is used in an array or hash. ([@Darhazer])
|
617
|
+
- Add `RSpec/Pending` cop to enforce no existing pending or skipped examples. This is disabled by default. ([@patrickomatic])
|
618
|
+
- Fix `RSpec/NestedGroups` cop support --auto-gen-config. ([@walf443])
|
619
|
+
- Fix false positives in `Capybara/FeatureMethods` when feature methods are used as property names in a factory. ([@Darhazer])
|
620
|
+
- Allow configuring enabled methods in `Capybara/FeatureMethods`. ([@Darhazer])
|
621
|
+
- Add `FactoryBot/CreateList` cop. ([@Darhazer])
|
622
|
+
|
623
|
+
## 1.24.0 (2018-03-06)
|
624
|
+
|
625
|
+
- Compatibility with RuboCop v0.53.0. ([@bquorning])
|
626
|
+
- The `Rails/HttpStatus` cop is unavailable if the `rack` gem cannot be loaded. ([@bquorning])
|
627
|
+
- Fix `Rails/HttpStatus` not working with custom HTTP status codes. ([@bquorning])
|
628
|
+
- Fix `FactoryBot/StaticAttributeDefinedDynamically` to handle empty block. ([@abrom])
|
629
|
+
- Fix false positive in `FactoryBot/DynamicAttributeDefinedStatically` when a before/after callback has a symbol proc argument. ([@abrom])
|
630
|
+
|
631
|
+
## 1.23.0 (2018-02-23)
|
632
|
+
|
633
|
+
- Add `RSpec/Rails/HttpStatus` cop to enforce consistent usage of the status format (numeric or symbolic). ([@anthony-robin], [@jojos003])
|
634
|
+
- Fix false negative in `RSpec/ReturnFromStub` when a constant is being returned by the stub. ([@Darhazer])
|
635
|
+
- Fix `FactoryBot/DynamicAttributeDefinedStatically` to handle dynamic attributes inside arrays/hashes. ([@abrom])
|
636
|
+
- Add `FactoryBot/StaticAttributeDefinedDynamically` (based on dynamic attribute cop). ([@abrom])
|
637
|
+
|
638
|
+
## 1.22.2 (2018-02-01)
|
639
|
+
|
640
|
+
- Fix error in `RSpec/DescribedClass` when working on an empty `describe` block. ([@bquorning])
|
641
|
+
|
642
|
+
## 1.22.1 (2018-01-17)
|
643
|
+
|
644
|
+
- Fix false positives in `RSpec/ReturnFromStub`. ([@Darhazer])
|
645
|
+
|
646
|
+
## 1.22.0 (2018-01-10)
|
647
|
+
|
648
|
+
- Updates `describe_class` to account for RSpecs `:system` wrapper of rails system tests. ([@EliseFitz15])
|
649
|
+
- Add `RSpec/ExpectChange` cop to enforce consistent usage of the change matcher. ([@Darhazer])
|
650
|
+
- Add autocorrect support to `RSpec/LetBeforeExamples`. ([@Darhazer])
|
651
|
+
- Fix `RSpec/InstanceVariable` flagging instance variables inside dynamically defined class. ([@Darhazer])
|
652
|
+
- Add autocorrect support for `RSpec/ReturnFromStub` cop. ([@bquorning])
|
653
|
+
- Add `RSpec/ExampleWithoutDescription` cop. ([@Darhazer])
|
654
|
+
|
655
|
+
## 1.21.0 (2017-12-13)
|
656
|
+
|
657
|
+
- Compatibility with RuboCop v0.52.0. ([@bquorning])
|
658
|
+
- Improve performance when user does not override default RSpec Pattern config. ([@walf443])
|
659
|
+
- Add `AggregateFailuresByDefault` configuration for `RSpec/MultipleExpectations` cop. ([@onk])
|
660
|
+
|
661
|
+
## 1.20.1 (2017-11-15)
|
662
|
+
|
663
|
+
- Add "without" to list of default allowed prefixes for `RSpec/ContextWording`. ([@bquorning])
|
664
|
+
|
665
|
+
## 1.20.0 (2017-11-09)
|
666
|
+
|
667
|
+
- Rename namespace `FactoryGirl` to `FactoryBot` following original library update. ([@walf443])
|
668
|
+
- Fix exception in `RSpec/ReturnFromStub` on empty block. ([@yevhene])
|
669
|
+
- Add `RSpec/ContextWording` cop. ([@pirj], [@telmofcosta])
|
670
|
+
- Fix `RSpec/SubjectStub` cop matches receive message inside all matcher. ([@walf443])
|
671
|
+
|
672
|
+
## 1.19.0 (2017-10-18)
|
673
|
+
|
674
|
+
Compatibility release so users can upgrade RuboCop to 0.51.0. No new features.
|
675
|
+
|
676
|
+
## 1.18.0 (2017-09-29)
|
677
|
+
|
678
|
+
- Fix false positive in `Capybara/FeatureMethods`. ([@Darhazer])
|
679
|
+
- Add `RSpec/Capybara/CurrentPathExpectation` cop for feature specs, disallowing setting expectations on `current_path`. ([@timrogers])
|
680
|
+
- Fix false positive in `RSpec/LetBeforeExamples` cop when example group contains single let. ([@Darhazer])
|
681
|
+
|
682
|
+
## 1.17.1 (2017-09-20)
|
683
|
+
|
684
|
+
- Improved `RSpec/ReturnFromStub` to handle string interpolation, hashes and do..end blocks. ([@Darhazer])
|
685
|
+
- Fixed compatibility with JRuby. ([@zverok])
|
686
|
+
|
687
|
+
## 1.17.0 (2017-09-14)
|
688
|
+
|
689
|
+
- Add `RSpec/Capybara` namespace including the first cop for feature specs: `Capybara/FeatureMethods`. ([@rspeicher])
|
690
|
+
- Update to RuboCop 0.50.0. ([@bquorning])
|
691
|
+
|
692
|
+
## 1.16.0 (2017-09-06)
|
693
|
+
|
694
|
+
- Add `RSpec/FactoryGirl` namespace including the first cop for factories: `FactoryGirl/DynamicAttributeDefinedStatically`. ([@jonatas])
|
695
|
+
- Add disabled by default `RSpec/AlignLeftLetBrace`. ([@backus])
|
696
|
+
- Add disabled by default `RSpec/AlignRightLetBrace`. ([@backus])
|
697
|
+
- Add `RSpec/LetBeforeExamples` cop. ([@Darhazer])
|
698
|
+
- Add `RSpec/MultipleSubjects` cop. ([@backus])
|
699
|
+
- Add `RSpec/ReturnFromStub` cop. ([@Darhazer])
|
700
|
+
- Add `RSpec/VoidExpect` cop. ([@pocke])
|
701
|
+
- Add `RSpec/InvalidPredicateMatcher` cop. ([@pocke])
|
702
|
+
- Change HookArgument cop to detect when hook has a receiver. ([@pocke])
|
703
|
+
- Add `RSpec/PredicateMatcher` cop. ([@pocke])
|
704
|
+
- Add `RSpec/ExpectInHook` cop. ([@pocke])
|
705
|
+
- `RSpec/MultipleExpectations` now detects usage of expect_any_instance_of. ([@Darhazer])
|
706
|
+
- `RSpec/MultipleExpectations` now detects usage of is_expected. ([@bmorrall])
|
707
|
+
|
708
|
+
## 1.15.1 (2017-04-30)
|
709
|
+
|
710
|
+
- Fix the handling of various edge cases in the `RSpec/ExampleWording` cop, including one that would cause autocorrect to crash. ([@dgollahon])
|
711
|
+
- Fix `RSpec/IteratedExpectation` crashing when there is an assignment in the iteration. ([@Darhazer])
|
712
|
+
- Fix false positive in `RSpec/SingleArgumentMessageChain` cop when the single argument is a hash. ([@Darhazer])
|
713
|
+
|
714
|
+
## 1.15.0 (2017-03-24)
|
715
|
+
|
716
|
+
- Add `RSpec/DescribeSymbol` cop. ([@rspeicher])
|
717
|
+
- Fix error when `RSpec/OverwritingSetup` and `RSpec/ScatteredLet` analyzed empty example groups. ([@backus])
|
718
|
+
|
719
|
+
## 1.14.0 (2017-03-24)
|
720
|
+
|
721
|
+
- Add `RSpec/OverwritingSetup` cop. ([@Darhazer])
|
722
|
+
- Add autocorrect support for `RSpec/LeadingSubject` cop. ([@Darhazer])
|
723
|
+
- Add `RSpec/ScatteredLet` cop. ([@Darhazer])
|
724
|
+
- Add `RSpec/IteratedExpectation` cop. ([@Darhazer])
|
725
|
+
- Add `RSpec/EmptyLineAfterSubject` cop. ([@Darhazer])
|
726
|
+
- Add `RSpec/EmptyLineAfterFinalLet` cop. ([@Darhazer])
|
727
|
+
|
728
|
+
## 1.13.0 (2017-03-07)
|
729
|
+
|
730
|
+
- Add repeated 'it' detection to `RSpec/ExampleWording` cop. ([@dgollahon])
|
731
|
+
- Add \[observed_nesting/max_nesting\] info to `RSpec/NestedGroups` messages. ([@dgollahon])
|
732
|
+
- Add `RSpec/ItBehavesLike` cop. ([@dgollahon])
|
733
|
+
- Add `RSpec/SharedContext` cop. ([@Darhazer])
|
734
|
+
- `RSpec/MultipleExpectations`: Count aggregate_failures block as single expectation. ([@Darhazer])
|
735
|
+
- Fix `ExpectActual` cop flagging `rspec-rails` routing specs. ([@backus])
|
736
|
+
- Fix `FilePath` cop not registering offenses for files like `spec/blog/user.rb` when it should be `spec/blog/user_spec.rb`. ([@backus])
|
737
|
+
|
738
|
+
## 1.12.0 (2017-02-21)
|
739
|
+
|
740
|
+
- Add `RSpec/InstanceSpy` cop. ([@Darhazer])
|
741
|
+
- Add `RSpec/BeforeAfterAll` for avoiding leaky global test setup. ([@cfabianski])
|
742
|
+
|
743
|
+
## 1.11.0 (2017-02-16)
|
744
|
+
|
745
|
+
- Add `AroundBlock` cop. ([@Darhazer])
|
746
|
+
- Add `EnforcedStyle` configuration for `RSpec/DescribedClass` cop. ([@Darhazer])
|
747
|
+
- Fix false positive for `RSpec/RepeatedExample` cop. ([@redross])
|
748
|
+
|
749
|
+
## 1.10.0 (2017-01-15)
|
750
|
+
|
751
|
+
- Fix false negative for `RSpec/MessageSpies` cop. ([@onk])
|
752
|
+
- Fix internal dependencies on RuboCop to be compatible with 0.47 release. ([@backus])
|
753
|
+
- Add autocorrect support for `SingleArgumentMessageChain` cop. ([@bquorning])
|
754
|
+
- Rename `NestedGroups`' configuration key from `MaxNesting` to `Max` in order to be consistent with other cop configuration. ([@backus])
|
755
|
+
- Add `RepeatedExample` cop for detecting repeated examples within example groups. ([@backus])
|
756
|
+
- Add `ScatteredSetup` cop for enforcing that only one `before`, `around`, and `after` hook are used per example group scope. ([@backus])
|
757
|
+
- Add `ExpectOutput` cop for recommending `expect { ... }.to output(...).to_stdout`. ([@backus])
|
758
|
+
|
759
|
+
## 1.9.1 (2017-01-02)
|
760
|
+
|
761
|
+
- Fix unintentional regression change in `NestedGroups` reported in #270. ([@backus])
|
762
|
+
- Change `MaxNesting` for `NestedGroups` from 2 to 3. ([@backus])
|
763
|
+
|
764
|
+
## 1.9.0 (2016-12-29)
|
765
|
+
|
766
|
+
- Add `MessageSpies` cop for enforcing consistent style of either `expect(...).to have_received` or `expect(...).to receive`, intended as a replacement for the `MessageExpectation` cop. ([@bquorning])
|
767
|
+
- Fix `DescribeClass` to not flag `describe` at the top of a block of shared examples. ([@clupprich])
|
768
|
+
- Add `SingleArgumentMessageChain` cop for recommending use of `receive` instead of `receive_message_chain` where possible. ([@bquorning])
|
769
|
+
- Add `RepeatedDescription` cop for detecting repeated example descriptions within example groups. ([@backus])
|
770
|
+
|
771
|
+
## 1.8.0 (2016-10-27)
|
772
|
+
|
773
|
+
- Optionally ignore method names in the `describe` argument when running the `FilePath` cop. ([@bquorning])
|
774
|
+
- Fix regression in how `FilePath` converts alphanumeric class names into paths. ([@bquorning])
|
775
|
+
- Add `ImplicitExpect` cop for enforcing `should` vs. `is_expected.to`. ([@backus])
|
776
|
+
- Disable `MessageExpectation` cop in the default configuration. ([@bquorning])
|
777
|
+
|
778
|
+
## 1.7.0 (2016-08-24)
|
779
|
+
|
780
|
+
- Add support for checking all example groups with `ExampleLength`. ([@backus])
|
781
|
+
- Add support for checking shared example groups for `DescribedClass`. ([@backus])
|
782
|
+
- Add support for checking `its` from [rspec-its](https://github.com/rspec/rspec-its). ([@backus])
|
783
|
+
- Add `EmptyExampleGroup` cop for detecting `describe`s and `context`s without any tests inside. ([@backus])
|
784
|
+
- Add `CustomIncludeMethods` configuration option for `EmptyExampleGroup`. ([@backus])
|
785
|
+
- Add `NestedGroups` cop for detecting excessive example group nesting. ([@backus])
|
786
|
+
- Add `MaxNesting` configuration option for `NestedGroups` cop. ([@backus])
|
787
|
+
- Add `ExpectActual` cop for detecting literal values within `expect(...)`. ([@backus])
|
788
|
+
- Add `MultipleExpectations` cop for detecting multiple `expect(...)` calls within one example. ([@backus])
|
789
|
+
- Add `Max` configuration option for `MultipleExpectations`. ([@backus])
|
790
|
+
- Add `SubjectStub` cop for testing stubbed test subjects. ([@backus])
|
791
|
+
- Add `LetSetup` cop for detecting cases where `let!` is used for test setup. ([@backus])
|
792
|
+
- Change all cops to only inspect files with names following rspec convention (`*/spec/*` and/or `_spec.rb`). ([@backus])
|
793
|
+
- Add `AllCops/RSpec` configuration option for specifying custom spec file patterns. ([@backus])
|
794
|
+
- Add `AssignmentOnly` configuration option for `RSpec/InstanceVariable` cop. ([@backus])
|
795
|
+
- Add `BeEql` cop which looks for expectations that can use `be(...)` instead of `eql(...)`. ([@backus])
|
796
|
+
- Add autocorrect support for `BeEql` cop. ([@backus])
|
797
|
+
- Add `MessageExpectation` cop for enforcing consistent style of either `expect(...).to receive` or `allow(...).to receive`. ([@backus])
|
798
|
+
- Add `MessageChain` cop. ([@bquorning])
|
799
|
+
|
800
|
+
## 1.6.0 (2016-08-03)
|
801
|
+
|
802
|
+
- Add `SkipBlocks` option for `DescribedClass` cop. ([@backus])
|
803
|
+
|
804
|
+
## 1.5.3 (2016-08-02)
|
805
|
+
|
806
|
+
- Add `RSpec/NamedSubject` cop. ([@backus])
|
807
|
+
|
808
|
+
## 1.5.2 (2016-08-01)
|
809
|
+
|
810
|
+
- Drop support for ruby `2.0.0` and `2.1.0`. ([@backus])
|
811
|
+
- Internal refactorings and improved test coverage. ([@backus])
|
812
|
+
|
813
|
+
## 1.5.1 (2016-07-20)
|
814
|
+
|
815
|
+
- Fix `unrecognized parameter RSpec/VerifiedDoubles:IgnoreSymbolicNames` warning. ([@jeffreyc])
|
816
|
+
- Update to rubocop 0.41.2. ([@backus])
|
817
|
+
|
818
|
+
## 1.5.0 (2016-05-17)
|
819
|
+
|
820
|
+
- Expand `VerifiedDoubles` cop to check for `spy` as well as `double`. ([@andyw8])
|
821
|
+
- Enable `VerifiedDoubles` cop by default. ([@andyw8])
|
822
|
+
- Add `IgnoreSymbolicNames` option for `VerifiedDoubles` cop. ([@andyw8])
|
823
|
+
- Add `RSpec::ExampleLength` cop. ([@andyw8])
|
824
|
+
- Handle alphanumeric class names in `FilePath` cop. ([@andyw8])
|
825
|
+
- Skip `DescribeClass` cop for view specs. ([@andyw8])
|
826
|
+
- Skip `FilePath` cop for Rails routing specs. ([@andyw8])
|
827
|
+
- Add cop to check for focused specs. ([@renanborgescampos], [@jaredmoody])
|
828
|
+
- Clean-up `RSpec::NotToNot` to use same configuration semantics as other RuboCop cops, add autocorrect support for `RSpec::NotToNot`. ([@baberthal])
|
829
|
+
- Update to rubocop 0.40.0. ([@nijikon])
|
830
|
+
|
831
|
+
## 1.4.1 (2016-04-03)
|
832
|
+
|
833
|
+
- Ignore routing specs for DescribeClass cop. ([@nijikon])
|
834
|
+
- Move rubocop dependency to runtime. ([@nijikon])
|
835
|
+
- Update to rubocop 0.39.0. ([@nijikon])
|
836
|
+
|
837
|
+
## 1.4.0 (2016-02-15)
|
838
|
+
|
839
|
+
- Update to rubocop 0.37.2. ([@nijikon])
|
840
|
+
- Update ruby versions we test against. ([@nijikon])
|
841
|
+
- Add `RSpec::NotToNot` cop. ([@miguelfteixeira])
|
842
|
+
- Add `RSpec/AnyInstance` cop. ([@mlarraz])
|
843
|
+
|
844
|
+
## 1.3.1
|
845
|
+
|
846
|
+
- Fix auto correction issue - syntax had changed in RuboCop v0.31. ([@bquorning])
|
847
|
+
- Add RuboCop clone to vendor folder - see #39 for details. ([@bquorning])
|
848
|
+
|
849
|
+
## 1.3.0
|
850
|
+
|
851
|
+
- Ignore non string arguments for FilePathCop - thanks to @deivid-rodriguez. ([@geniou])
|
852
|
+
- Skip DescribeMethod cop for tagged specs. ([@deivid-rodriguez])
|
853
|
+
- Skip DescribeClass cop for feature/request specs. ([@deivid-rodriguez])
|
854
|
+
|
855
|
+
## 1.2.2
|
856
|
+
|
857
|
+
- Make `RSpec::ExampleWording` case insensitive. ([@geniou])
|
858
|
+
|
859
|
+
## 1.2.1
|
860
|
+
|
861
|
+
- Add `RSpec::VerifiedDoubles` cop. ([@andyw8])
|
862
|
+
|
863
|
+
## 1.2.0
|
864
|
+
|
865
|
+
- Drop support of ruby `1.9.2`. ([@geniou])
|
866
|
+
- Update to RuboCop `~> 0.24`. ([@geniou])
|
867
|
+
- Add `autocorrect` to `RSpec::ExampleWording`. This experimental - use with care and check the changes. ([@geniou])
|
868
|
+
- Fix config loader debug output. ([@geniou])
|
869
|
+
- Rename `FileName` cop to `FilePath` as a workaround - see [#19](https://github.com/nevir/rubocop-rspec/issues/19). ([@geniou])
|
870
|
+
|
871
|
+
## 1.1.0
|
872
|
+
|
873
|
+
- Add `autocorrect` to `RSpec::DescribedClass` cop. ([@geniou])
|
874
|
+
|
875
|
+
## 1.0.1
|
876
|
+
|
877
|
+
- Add `config` folder to gemspec. ([@pstengel])
|
878
|
+
|
879
|
+
## 1.0.rc3
|
880
|
+
|
881
|
+
- Update to RuboCop `>= 0.23`. ([@geniou])
|
882
|
+
- Add configuration option for `CustomTransformation` to `FileName` cop. ([@geniou])
|
883
|
+
|
884
|
+
## 1.0.rc2
|
885
|
+
|
886
|
+
- Gem is no longer 20MB (sorry!). ([@nevir])
|
887
|
+
- `RspecFileName` cop allows for method specs to organized into directories by class and type. ([@nevir])
|
888
|
+
|
889
|
+
## 1.0.rc1
|
890
|
+
|
891
|
+
- Update code to work with rubocop `>= 0.19`. ([@geniou])
|
892
|
+
- Split `UnitSpecNaming` cop into `RSpecDescribeClass`, `RSpecDescribeMethod` and `RSpecFileName` and enabled them all by default. ([@geniou])
|
893
|
+
- Add `RSpecExampleWording` cop to prevent to use of should at the beginning of the spec description. ([@geniou])
|
894
|
+
- Fix `RSpecFileName` cop for non-class specs. ([@geniou])
|
895
|
+
- Adapt `RSpecFileName` cop to common naming convention and skip spec with multiple top level describes. ([@geniou])
|
896
|
+
- Add `RSpecMultipleDescribes` cop to check for multiple top level describes. ([@geniou])
|
897
|
+
- Add `RSpecDescribedClass` to promote the use of `described_class`. ([@geniou])
|
898
|
+
- Add `RSpecInstanceVariable` cop to check for the usage of instance variables. ([@geniou])
|
899
|
+
|
900
|
+
<!-- Contributors (alphabetically) -->
|
901
|
+
|
902
|
+
[@abrom]: https://github.com/abrom
|
903
|
+
[@ahukkanen]: https://github.com/ahukkanen
|
904
|
+
[@akiomik]: https://github.com/akiomik
|
905
|
+
[@akrox58]: https://github.com/akrox58
|
906
|
+
[@alexwayfer]: https://github.com/AlexWayfer
|
907
|
+
[@andrykonchin]: https://github.com/andrykonchin
|
908
|
+
[@andyw8]: https://github.com/andyw8
|
909
|
+
[@anthony-robin]: https://github.com/anthony-robin
|
910
|
+
[@aried3r]: https://github.com/aried3r
|
911
|
+
[@baberthal]: https://github.com/baberthal
|
912
|
+
[@backus]: https://github.com/backus
|
913
|
+
[@bcgraham]: https://github.com/bcgraham
|
914
|
+
[@biinari]: https://github.com/biinari
|
915
|
+
[@bmorrall]: https://github.com/bmorrall
|
916
|
+
[@bquorning]: https://github.com/bquorning
|
917
|
+
[@brentwheeldon]: https://github.com/BrentWheeldon
|
918
|
+
[@brianhawley]: https://github.com/BrianHawley
|
919
|
+
[@cbliard]: https://github.com/cbliard
|
920
|
+
[@cfabianski]: https://github.com/cfabianski
|
921
|
+
[@clupprich]: https://github.com/clupprich
|
922
|
+
[@composerinteralia]: https://github.com/composerinteralia
|
923
|
+
[@corydiamand]: https://github.com/corydiamand
|
924
|
+
[@darhazer]: https://github.com/Darhazer
|
925
|
+
[@daveworth]: https://github.com/daveworth
|
926
|
+
[@dduugg]: https://github.com/dduugg
|
927
|
+
[@deivid-rodriguez]: https://github.com/deivid-rodriguez
|
928
|
+
[@dgollahon]: https://github.com/dgollahon
|
929
|
+
[@dmitrytsepelev]: https://github.com/dmitrytsepelev
|
930
|
+
[@drcapulet]: https://github.com/drcapulet
|
931
|
+
[@drowze]: https://github.com/Drowze
|
932
|
+
[@dswij]: https://github.com/dswij
|
933
|
+
[@dvandersluis]: https://github.com/dvandersluis
|
934
|
+
[@earlopain]: https://github.com/earlopain
|
935
|
+
[@edgibbs]: https://github.com/edgibbs
|
936
|
+
[@eikes]: https://github.com/eikes
|
937
|
+
[@eitoball]: https://github.com/eitoball
|
938
|
+
[@elebow]: https://github.com/elebow
|
939
|
+
[@elisefitz15]: https://github.com/EliseFitz15
|
940
|
+
[@elliterate]: https://github.com/elliterate
|
941
|
+
[@faucct]: https://github.com/faucct
|
942
|
+
[@foton]: https://github.com/foton
|
943
|
+
[@francois-ferrandis]: https://github.com/francois-ferrandis
|
944
|
+
[@franzliedke]: https://github.com/franzliedke
|
945
|
+
[@g-rath]: https://github.com/G-Rath
|
946
|
+
[@geniou]: https://github.com/geniou
|
947
|
+
[@gsamokovarov]: https://github.com/gsamokovarov
|
948
|
+
[@harry-graham]: https://github.com/harry-graham
|
949
|
+
[@harrylewis]: https://github.com/harrylewis
|
950
|
+
[@hasghari]: https://github.com/hasghari
|
951
|
+
[@hosamaly]: https://github.com/hosamaly
|
952
|
+
[@ignaciovillaverde]: https://github.com/ignaciovillaverde
|
953
|
+
[@jaredbeck]: https://github.com/jaredbeck
|
954
|
+
[@jaredmoody]: https://github.com/jaredmoody
|
955
|
+
[@jdufresne]: https://github.com/jdufresne
|
956
|
+
[@jeffreyc]: https://github.com/jeffreyc
|
957
|
+
[@jeppester]: https://github.com/jeppester
|
958
|
+
[@jessieay]: https://github.com/jessieay
|
959
|
+
[@jfragoulis]: https://github.com/jfragoulis
|
960
|
+
[@johnny-miyake]: https://github.com/johnny-miyake
|
961
|
+
[@jojos003]: https://github.com/jojos003
|
962
|
+
[@jonatas]: https://github.com/jonatas
|
963
|
+
[@jtannas]: https://github.com/jtannas
|
964
|
+
[@k-s-a]: https://github.com/K-S-A
|
965
|
+
[@kellysutton]: https://github.com/kellysutton
|
966
|
+
[@koic]: https://github.com/koic
|
967
|
+
[@krororo]: https://github.com/krororo
|
968
|
+
[@kuahyeow]: https://github.com/kuahyeow
|
969
|
+
[@lazycoder9]: https://github.com/lazycoder9
|
970
|
+
[@leoarnold]: https://github.com/leoarnold
|
971
|
+
[@liberatys]: https://github.com/Liberatys
|
972
|
+
[@lokhi]: https://github.com/lokhi
|
973
|
+
[@luke-hill]: https://github.com/luke-hill
|
974
|
+
[@m-yamashita01]: https://github.com/M-Yamashita01
|
975
|
+
[@marocchino]: https://github.com/marocchino
|
976
|
+
[@miguelfteixeira]: https://github.com/miguelfteixeira
|
977
|
+
[@mkenyon]: https://github.com/mkenyon
|
978
|
+
[@mkrawc]: https://github.com/mkrawc
|
979
|
+
[@mlarraz]: https://github.com/mlarraz
|
980
|
+
[@mockdeep]: https://github.com/mockdeep
|
981
|
+
[@mothonmars]: https://github.com/MothOnMars
|
982
|
+
[@mvz]: https://github.com/mvz
|
983
|
+
[@naveg]: https://github.com/naveg
|
984
|
+
[@nc-holodakg]: https://github.com/nc-holodakg
|
985
|
+
[@nevir]: https://github.com/nevir
|
986
|
+
[@ngouy]: https://github.com/ngouy
|
987
|
+
[@nickcampbell18]: https://github.com/nickcampbell18
|
988
|
+
[@nijikon]: https://github.com/nijikon
|
989
|
+
[@onk]: https://github.com/onk
|
990
|
+
[@onumis]: https://github.com/onumis
|
991
|
+
[@oshiro3]: https://github.com/oshiro3
|
992
|
+
[@patrickomatic]: https://github.com/patrickomatic
|
993
|
+
[@paydaylight]: https://github.com/paydaylight
|
994
|
+
[@philcoggins]: https://github.com/PhilCoggins
|
995
|
+
[@pirj]: https://github.com/pirj
|
996
|
+
[@pocke]: https://github.com/pocke
|
997
|
+
[@pstengel]: https://github.com/pstengel
|
998
|
+
[@qqism]: https://github.com/QQism
|
999
|
+
[@r7kamura]: https://github.com/r7kamura
|
1000
|
+
[@rafix02]: https://github.com/Rafix02
|
1001
|
+
[@redross]: https://github.com/redross
|
1002
|
+
[@renanborgescampos]: https://github.com/renanborgescampos
|
1003
|
+
[@robinaugh]: https://github.com/robinaugh
|
1004
|
+
[@robotdana]: https://github.com/robotdana
|
1005
|
+
[@rolfschmidt]: https://github.com/rolfschmidt
|
1006
|
+
[@rrosenblum]: https://github.com/rrosenblum
|
1007
|
+
[@rspeicher]: https://github.com/rspeicher
|
1008
|
+
[@rst-j]: https://github.com/RST-J
|
1009
|
+
[@samrjenkins]: https://github.com/samrjenkins
|
1010
|
+
[@schmijos]: https://github.com/schmijos
|
1011
|
+
[@seanpdoyle]: https://github.com/seanpdoyle
|
1012
|
+
[@sl4vr]: https://github.com/sl4vr
|
1013
|
+
[@smcgivern]: https://github.com/smcgivern
|
1014
|
+
[@splattael]: https://github.com/splattael
|
1015
|
+
[@stephannv]: https://github.com/stephannv
|
1016
|
+
[@swelther]: https://github.com/swelther
|
1017
|
+
[@t3h2mas]: https://github.com/t3h2mas
|
1018
|
+
[@tdeo]: https://github.com/tdeo
|
1019
|
+
[@tejasbubane]: https://github.com/tejasbubane
|
1020
|
+
[@telmofcosta]: https://github.com/telmofcosta
|
1021
|
+
[@tietew]: https://github.com/Tietew
|
1022
|
+
[@timrogers]: https://github.com/timrogers
|
1023
|
+
[@tmaier]: https://github.com/tmaier
|
1024
|
+
[@topalovic]: https://github.com/topalovic
|
1025
|
+
[@twalpole]: https://github.com/twalpole
|
1026
|
+
[@vzvu3k6k]: https://github.com/vzvu3k6k
|
1027
|
+
[@walf443]: https://github.com/walf443
|
1028
|
+
[@yasu551]: https://github.com/yasu551
|
1029
|
+
[@ybiquitous]: https://github.com/ybiquitous
|
1030
|
+
[@ydah]: https://github.com/ydah
|
1031
|
+
[@yevhene]: https://github.com/yevhene
|
1032
|
+
[@ypresto]: https://github.com/ypresto
|
1033
|
+
[@zdennis]: https://github.com/zdennis
|
1034
|
+
[@zverok]: https://github.com/zverok
|