Upgrade rubocop-rspec to version 1.29.0
Created by: depfu[bot]
We've upgraded a dependency and all tests pass. \o/
| name | version specification | new version |
|---|---|---|
| rubocop-rspec | ~> 1.28.0 | 1.29.0 |
You should probably take a good look at this before merging this pull request, of course.
What changed?
✳ ️ rubocop-rspec ( → 1.29.0) · Repo · Changelog
Release Notes
1.29.0
-
RSpec/InstanceVariable- Recommend local variables in addition tolet. (@jaredbeck) - Add
RSpec/ImplicitSubjectcop. (@Darhazer) - Add
RSpec/HooksBeforeExamplescop. (@Darhazer)
1.28.0
- Add
RSpec/ReceiveNevercop enforcing usage ofnot_to receiveinstead ofnevermatcher. (@Darhazer) - Fix false positive in
RSpec/EmptyLineAfterExampleGroupcop when example is insideif. (@Darhazer) - Add
RSpec/MissingExampleGroupArgumentto enforce first argument for an example group. (@geniou) - Drop support for ruby
2.1. (@bquorning) - Add
FactoryBot/AttributeDefinedStaticallycop to help FactoryBot users with the deprecation of static attributes. (@composerinteralia, @seanpdoyle) - Remove
FactoryBot/DynamicAttributeDefinedStaticallyandFactoryBot/StaticAttributeDefinedDynamicallycops. (@composerinteralia)
1.27.0
-
RSpec/LeadingSubjectnow enforces subject to be before any examples, hooks or let declarations. (@Darhazer) - Fix
RSpec/NotToNotto highlight only the selector (not_toorto_not), so it works also onexpect { ... }blocks. (@bquorning) - Add
RSpec/EmptyLineAfterHookcop. (@bquorning) - Add
RSpec/EmptyLineAfterExampleGroupcop to check that there is an empty line after example group blocks. (@bquorning) - Fix
RSpec/DescribeClasscrashing onRSpec.describewithout arguments. (@Darhazer) - Bump RuboCop requirement to v0.56.0. (@bquorning)
- Fix
RSpec/OverwritingSetupcrashing if a variable is used as an argument forlet. (@Darhazer)
1.26.0
- Fix false positive in
RSpec/EmptyExampleGroupcop when methods named like a RSpec method are used. (@Darhazer) - Fix
Capybara/FeatureMethodsnot working when there is require before the spec. (@Darhazer) - Fix
RSpec/EmptyLineAfterFinalLet: allow a comment to be placed after latest let, requiring empty line after the comment. (@Darhazer) - Add
RSpec/ReceiveCountscop to enforce usage of :once and :twice matchers. (@Darhazer)
1.25.1
- Fix false positive in
RSpec/Pendingcop when pending is used as a method name. (@Darhazer) - Fix
FactoryBot/DynamicAttributeDefinedStaticallyfalse positive when using symbol proc argument for a sequence. (@tdeo)
1.25.0
- Add
RSpec/SharedExamplescop to enforce consistent usage of string to titleize shared examples. (@anthony-robin) - Add
RSpec/Becop to enforce passing argument to the genericbematcher. (@Darhazer) - Fix false positives in
StaticAttributeDefinedDynamicallyandReturnFromStubwhen a const is used in an array or hash. (@Darhazer) - Add
RSpec/Pendingcop to enforce no existing pending or skipped examples. This is disabled by default. (@patrickomatic) - Fix
RSpec/NestedGroupscop support --auto-gen-config. (@walf443) - Fix false positives in
Capybara/FeatureMethodswhen feature methods are used as property names in a factory. (@Darhazer) - Allow configuring enabled methods in
Capybara/FeatureMethods. (@Darhazer) - Add
FactoryBot/CreateListcop. (@Darhazer)
1.24.0
- Compatibility with RuboCop v0.53.0. (@bquorning)
- The
Rails/HttpStatuscop is unavailable if therackgem cannot be loaded. (@bquorning) - Fix
Rails/HttpStatusnot working with custom HTTP status codes. (@bquorning) - Fix
FactoryBot/StaticAttributeDefinedDynamicallyto handle empty block. (@abrom) - Fix false positive in
FactoryBot/DynamicAttributeDefinedStaticallywhen a before/after callback has a symbol proc argument. (@abrom)
1.23.0
- Add
RSpec/Rails/HttpStatuscop to enforce consistent usage of the status format (numeric or symbolic). (@anthony-robin, @jojos003) - Fix false negative in
RSpec/ReturnFromStubwhen a constant is being returned by the stub. (@Darhazer) - Fix
FactoryBot/DynamicAttributeDefinedStaticallyto handle dynamic attributes inside arrays/hashes. (@abrom) - Add
FactoryBot/StaticAttributeDefinedDynamically(based on dynamic attribute cop). (@abrom)
1.22.2
- Fix error in
RSpec/DescribedClasswhen working on an emptydescribeblock. (@bquorning)
1.22.1
- Fix false positives in
RSpec/ReturnFromStub. (@Darhazer)
Not all release notes shown. View the full release notes
Commits
See the full diff on Github. The new version differs by 11 commits:
Merge pull request #675 from rubocop-hq/releaseBump version to 1.29.0Merge pull request #658 from rubocop-hq/hooks-before-examplesAdd new RSpec/HooksBeforeExamples copMerge pull request #670 from rubocop-hq/implicit-subjectFix crash if is used outside of an example[Fix #669] Add ImplicitSubject copMerge pull request #673 from rubocop-hq/fix-rubocop-master-compatibilityOnly check method_name on nodes that define itMerge pull request #671 from jaredbeck/ivar_lvarInstanceVariable: Also recommend local variable
Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.