Skip to content

Releases: rubocop/rubocop-rspec

RuboCop RSpec v3.0.1

11 Jun 15:35
955e485
Compare
Choose a tag to compare
  • Bump RuboCop requirement to +1.61. (@ydah)

RuboCop RSpec v3.0.0

11 Jun 10:40
99dbbe9
Compare
Choose a tag to compare
  • Remove extracted cops in Capybara, FactoryBot and Rails departments. (@ydah)
  • Remove RuboCop::RSpec::Language::NodePattern. (@ydah)
  • Remove RSpec/FilePath cop. (@ydah)
  • Remove RSpec/Capybara/FeatureMethods cop. If you are using this cop, change it to use RSpec/Dialect. (@ydah)
  • Add new RSpec/MissingExpectationTargetMethod cop. (@krororo)
  • Fix an error for RSpec/ScatteredSetup when one of the hooks is an empty block. (@earlopain)

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.

Read more about how to upgrade in https://docs.rubocop.org/rubocop-rspec/upgrade_to_version_3.html

RuboCop RSpec v3.0.0.pre

10 Jun 09:22
c414297
Compare
Choose a tag to compare
Pre-release
  • Remove extracted cops in Capybara, FactoryBot and Rails departments. (@ydah)
  • Remove RuboCop::RSpec::Language::NodePattern. (@ydah)
  • Remove RSpec/FilePath cop. (@ydah)
  • Remove RSpec/Capybara/FeatureMethods cop. If you are using this cop, change it to use RSpec/Dialect. (@ydah)
  • Enable all pending cops. (@bquorning)
  • Add new RSpec/MissingExpectationTargetMethod cop. (@krororo)
  • Fix an error for RSpec/ScatteredSetup when one of the hooks is an empty block. (@earlopain)

Read more about how to upgrade in https://docs.rubocop.org/rubocop-rspec/upgrade_to_version_3.html

RuboCop RSpec v2.31.0

07 Jun 06:33
f856117
Compare
Choose a tag to compare
  • Support AutoCorrect: contextual option for LSP. (@ydah)

RuboCop RSpec v2.30.0

03 Jun 09:21
510b019
Compare
Choose a tag to compare
  • Add new RSpec/ExpectInLet cop. (@yasu551)

RuboCop RSpec v2.29.2

02 May 22:24
0d51335
Compare
Choose a tag to compare
  • Fix beginless and endless range bug for RepeatedIncludeExample cop. (@hasghari)
  • Fix a false positive for RSpec/RepeatedSubjectCall when subject is used as argument to function call. (@K-S-A)

RuboCop RSpec v2.29.1

04 Apr 22:37
d022102
Compare
Choose a tag to compare
  • Fix an error in the default configuration. (@ydah)

RuboCop RSpec v2.29.0

04 Apr 22:13
acb5ac5
Compare
Choose a tag to compare
  • Fix an autocorrect error for RSpec/ExpectActual. (@bquorning)
  • Add new RSpec/UndescriptiveLiteralsDescription cop. (@ydah)
  • Add new RSpec/EmptyOutput cop. (@bquorning)

RuboCop RSpec v2.28.0

29 Mar 16:26
e6b53cb
Compare
Choose a tag to compare
  • Extract RSpec Rails cops to a separate repository, 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)

RuboCop RSpec v2.27.1

03 Mar 21:48
c26af60
Compare
Choose a tag to compare
  • Fix a false positive for RSpec/RepeatedSubjectCall when subject.method_call. (@ydah)
  • Add configuration option OnlyStaticConstants to RSpec/DescribedClass. (@ydah)