Upgrade rubocop-rspec to version 1.30.0
Created by: depfu[bot]
We've upgraded a dependency and got test failures.
| name | version specification | new version |
|---|---|---|
| rubocop-rspec | ~> 1.29.0 | 1.30.0 |
It looks like this version isn't compatible with your project right now. Please take a look at the exact failure to figure out if this is something you need to work on.
What changed?
✳ ️ rubocop-rspec ( → 1.30.0) · Repo · Changelog
Release Notes
1.30.0
- Add config to
RSpec/VerifiedDoublesto enforcement of verification on unnamed doubles. (@BrentWheeldon) - Fix
FactoryBot/AttributeDefinedStaticallynot working when there is a non-symbol key. (@vzvu3k6k) - Fix false positive in
RSpec/ImplicitSubjectwhenis_expectedis used insideits()block. (@Darhazer) - Add
single_statement_onlystyle toRSpec/ImplicitSubjectas a more relaxed alternative tosingle_line_only. (@Darhazer) - Add
RSpec/UnspecifiedExceptionas a default cop to encourage more-specificexpect{}.to raise_error(ExceptionType), orraise_exceptionstyle handling of exceptions. (@daveworth)
1.29.1
- Fix false negative in
FactoryBot/AttributeDefinedStaticallywhen attribute is defined onself. (@Darhazer) -
RSpec/FactoryBotcops will now also inspect thespec/factories.rbpath by default. (@bquorning)
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)
Not all release notes shown. View the full release notes
Commits
See the full diff on Github. The new version differs by 26 commits:
Merge pull request #701 from rubocop-hq/releaseBump version to 1.30.0Merge pull request #692 from daveworth/feature/add-empty-raise_error-copMerge pull request #700 from rubocop-hq/remove-unused-moduleRemove `RuboCop::RSpec::FactoryBot` moduleRemove `RuboCop::RSpec::Capybara` moduleAdd a cop to enforce expected exceptions to be specifiedMerge pull request #695 from rubocop-hq/sort-config-alphabeticallyMerge pull request #691 from BrentWheeldon/bmw-verify-nameless-doublesMerge branch 'master' into bmw-verify-nameless-doublesSort config alphabeticallyMerge pull request #694 from daveworth/cleanup/move-predicate-matcher-docsAdd an option to allow enforcement of verified doubles in nameless doublesmove predicate matcher to alphabetical positionMerge pull request #690 from tom-lord/its_multiline_regression_testAdd missing regression test for 'its' in a multiline specMerge pull request #688 from rubocop-hq/fix-implicit-subjectAllow is_expected to be used in single statement examples[Fix #682] ignore its() blocksMerge pull request #683 from vzvu3k6k/attribute_defined_statically-hashMerge branch 'master' into attribute_defined_statically-hashMerge pull request #684 from vzvu3k6k/follow-empty_line_after_guard_clauseFollow Layout/EmptyLineAfterGuardClauseHandle hash keys other than symbolsMerge pull request #681 from rubocop-hq/use-start_withUse String#start_with? instead of Regexp
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.
All Depfu comment commands
- @depfu rebase
- Rebases against your default branch and redoes this update
- @depfu pause
- Ignores all future updates for this dependency and closes this PR
- @depfu pause [minor|major]
- Ignores all future minor/major updates for this dependency and closes this PR
- @depfu resume
- Future versions of this dependency will create PRs again (leaves this PR as is)