rubocop-rspec 2.7.0 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +23 -0
- data/config/default.yml +144 -92
- data/lib/rubocop/cop/rspec/be_eq.rb +45 -0
- data/lib/rubocop/cop/rspec/be_eql.rb +1 -1
- data/lib/rubocop/cop/rspec/be_nil.rb +74 -0
- data/lib/rubocop/cop/rspec/capybara/current_path_expectation.rb +11 -7
- data/lib/rubocop/cop/rspec/capybara/visibility_matcher.rb +3 -2
- data/lib/rubocop/cop/rspec/empty_example_group.rb +6 -6
- data/lib/rubocop/cop/rspec/empty_line_after_subject.rb +3 -9
- data/lib/rubocop/cop/rspec/leading_subject.rb +3 -7
- data/lib/rubocop/cop/rspec/mixin/inside_example_group.rb +2 -2
- data/lib/rubocop/cop/rspec/subject_stub.rb +44 -18
- data/lib/rubocop/cop/rspec/verified_double_reference.rb +111 -0
- data/lib/rubocop/cop/rspec/yield.rb +1 -1
- data/lib/rubocop/cop/rspec_cops.rb +3 -0
- data/lib/rubocop/rspec/config_formatter.rb +3 -4
- data/lib/rubocop/rspec/version.rb +1 -1
- data/lib/rubocop-rspec.rb +14 -9
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d0bedaa464141123a49b02ad1a31ed8a63b9960304014c0ef5e52f96fb78176
|
4
|
+
data.tar.gz: e310236f596a19629629c70d9f94fcb46a39183c43908b5864860efb2abd7602
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cd82a374f1cd9362070fe6561f9c04927a2ac33f5e1b5ee97a80bc443b0a4c3c90a75d93778e7bf6f439ff759b60857cdeccc2a7b51bfdc8feebccc519e36c8
|
7
|
+
data.tar.gz: 19bbbdd2d38ef4802be62f44a18e95e83caaf6899c654dff281fe7058fc9bdf6f776cf0491b825b274f67450388a7aef292c2ee51033f6ae96a9d8671829c5e4
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,26 @@
|
|
2
2
|
|
3
3
|
## Master (Unreleased)
|
4
4
|
|
5
|
+
## 2.10.0 (2022-04-19)
|
6
|
+
|
7
|
+
* Fix a false positive for `RSpec/EmptyExampleGroup` when expectations in case statement. ([@ydah][])
|
8
|
+
* Add `RSpec/VerifiedDoubleReference` cop. ([@t3h2mas][])
|
9
|
+
* Make `RSpec/BeNil` cop configurable with a `be_nil` style and a `be` style. ([@bquorning][])
|
10
|
+
* Fix `Capybara/CurrentPathExpectation` autocorrect incompatible with `Style/TrailingCommaInArguments` autocorrect. ([@ydah][])
|
11
|
+
|
12
|
+
## 2.9.0 (2022-02-28)
|
13
|
+
|
14
|
+
* Add new `RSpec/BeNil` cop. ([@bquorning][])
|
15
|
+
* Add new `RSpec/BeEq` cop. ([@bquorning][])
|
16
|
+
|
17
|
+
## 2.8.0 (2022-01-24)
|
18
|
+
|
19
|
+
* Fix `RSpec/FactoryBot/SyntaxMethods` and `RSpec/Capybara/FeatureMethods` to inspect shared groups. ([@pirj][])
|
20
|
+
* Fix `RSpec/LeadingSubject` failure in non-spec code. ([@pirj][])
|
21
|
+
* Add bad example to `RSpec/SubjectStub` cop. ([@oshiro3][])
|
22
|
+
* Replace non-styleguide cops `StyleGuide` attribute with `Reference`. ([@pirj][])
|
23
|
+
* Fix `RSpec/SubjectStub` to disallow stubbing of subjects defined in parent example groups. ([@pirj][])
|
24
|
+
|
5
25
|
## 2.7.0 (2021-12-26)
|
6
26
|
|
7
27
|
* Add new `RSpec/FactoryBot/SyntaxMethods` cop. ([@leoarnold][])
|
@@ -658,3 +678,6 @@ Compatibility release so users can upgrade RuboCop to 0.51.0. No new features.
|
|
658
678
|
[@r7kamura]: https://github.com/r7kamura
|
659
679
|
[@leoarnold]: https://github.com/leoarnold
|
660
680
|
[@harry-graham]: https://github.com/harry-graham
|
681
|
+
[@oshiro3]: https://github.com/oshiro3
|
682
|
+
[@ydah]: https://github.com/ydah
|
683
|
+
[@t3h2mas]: https://github.com/t3h2mas
|