rubocop-rspec 2.6.0 → 2.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/config/default.yml +137 -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 +40 -0
- data/lib/rubocop/cop/rspec/capybara/current_path_expectation.rb +7 -7
- data/lib/rubocop/cop/rspec/capybara/feature_methods.rb +2 -23
- data/lib/rubocop/cop/rspec/capybara/visibility_matcher.rb +3 -2
- data/lib/rubocop/cop/rspec/empty_line_after_subject.rb +3 -9
- data/lib/rubocop/cop/rspec/factory_bot/create_list.rb +4 -3
- data/lib/rubocop/cop/rspec/factory_bot/syntax_methods.rb +107 -0
- data/lib/rubocop/cop/rspec/leading_subject.rb +3 -7
- data/lib/rubocop/cop/rspec/mixin/inside_example_group.rb +29 -0
- data/lib/rubocop/cop/rspec/subject_stub.rb +44 -18
- 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/factory_bot/language.rb +17 -0
- data/lib/rubocop/rspec/version.rb +1 -1
- data/lib/rubocop-rspec.rb +5 -2
- metadata +9 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d9511a08dde997c269b9bfe065a23b16296a607ce561a68bbe09ccd5eb37dee
|
4
|
+
data.tar.gz: 7966471067098d603c1098e544ad9c573e63037398126fbb9838aefbec992e25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8020a1e38b6c8bf50ebccd9524d9fd513193ec2bdb9829edb1832d456abbdf57bc8386a51f58b6b19ea335de5991c6dec182a428f9579dfc91d7871990f83c54
|
7
|
+
data.tar.gz: 91aaec82daf89de819e93f4cadea65928b0b2178465db8997c0f928feaf4d5a11a3ecd1e927ab401e50aed1081dcdde41499101b6f5b166ae380bfbf4c1bfd89
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,24 @@
|
|
2
2
|
|
3
3
|
## Master (Unreleased)
|
4
4
|
|
5
|
+
## 2.9.0 (2022-02-28)
|
6
|
+
|
7
|
+
* Add new `RSpec/BeNil` cop. ([@bquorning][])
|
8
|
+
* Add new `RSpec/BeEq` cop. ([@bquorning][])
|
9
|
+
|
10
|
+
## 2.8.0 (2022-01-24)
|
11
|
+
|
12
|
+
* Fix `RSpec/FactoryBot/SyntaxMethods` and `RSpec/Capybara/FeatureMethods` to inspect shared groups. ([@pirj][])
|
13
|
+
* Fix `RSpec/LeadingSubject` failure in non-spec code. ([@pirj][])
|
14
|
+
* Add bad example to `RSpec/SubjectStub` cop. ([@oshiro3][])
|
15
|
+
* Replace non-styleguide cops `StyleGuide` attribute with `Reference`. ([@pirj][])
|
16
|
+
* Fix `RSpec/SubjectStub` to disallow stubbing of subjects defined in parent example groups. ([@pirj][])
|
17
|
+
|
18
|
+
## 2.7.0 (2021-12-26)
|
19
|
+
|
20
|
+
* Add new `RSpec/FactoryBot/SyntaxMethods` cop. ([@leoarnold][])
|
21
|
+
* Exclude `task` type specs from `RSpec/DescribeClass` cop. ([@harry-graham][])
|
22
|
+
|
5
23
|
## 2.6.0 (2021-11-08)
|
6
24
|
|
7
25
|
* Fix merging RSpec DSL configuration from third-party gems. ([@pirj][])
|
@@ -651,3 +669,6 @@ Compatibility release so users can upgrade RuboCop to 0.51.0. No new features.
|
|
651
669
|
[@dswij]: https://github.com/dswij
|
652
670
|
[@francois-ferrandis]: https://github.com/francois-ferrandis
|
653
671
|
[@r7kamura]: https://github.com/r7kamura
|
672
|
+
[@leoarnold]: https://github.com/leoarnold
|
673
|
+
[@harry-graham]: https://github.com/harry-graham
|
674
|
+
[@oshiro3]: https://github.com/oshiro3
|