Skip to content

Releases: rubocop/rubocop-rspec

RuboCop RSpec v2.26.0

04 Jan 13:47
97407ea
Compare
Choose a tag to compare
  • Add new RSpec/RedundantPredicateMatcher cop. (@ydah)
  • Add new RSpec/RemoveConst cop. (@swelther)
  • Add support for correcting "it will" (future tense) for RSpec/ExampleWording. (@jdufresne)
  • Add support for symbol style for RSpec/SharedExamples. (@jessieay)
  • Ensure PendingWithoutReason can detect violations inside shared groups. (@robinaugh)

RuboCop RSpec v2.25.0

27 Oct 08:33
d556de0
Compare
Choose a tag to compare
  • Add support single quoted string and percent string and heredoc for RSpec/Rails/HttpStatus. (@ydah)
  • Change to be inline disable for RSpec/SpecFilePathFormat like RSpec/FilePath. (@ydah)
  • Fix a false positive for RSpec/MetadataStyle with example groups having multiple string arguments. (@franzliedke)

RuboCop RSpec v2.24.1

23 Sep 15:52
35d0a2f
Compare
Choose a tag to compare
  • Fix an error when using RSpec/FilePath and revert to enabled by default. If you have already moved to RSpec/SpecFilePathSuffix and RSpec/SpecFilePathFormat, disable RSpec/FilePath explicitly as Enabled: false. The RSpec/FilePath before migration and the RSpec/SpecFilePathSuffix and RSpec/SpecFilePathFormat as the target are available respectively. (@ydah)

RuboCop RSpec v2.24.0

08 Sep 12:19
7488573
Compare
Choose a tag to compare
  • Split RSpec/FilePath into RSpec/SpecFilePathSuffix and RSpec/SpecFilePathFormat. RSpec/FilePath cop is enabled by default, the two new cops are pending and need to be enabled explicitly. (@ydah)
  • Add new RSpec/Eq cop. (@ydah)
  • Add RSpec/MetadataStyle and RSpec/EmptyMetadata cops. (@r7kamura)
  • Add support RSpec/Rails/HttpStatus when have_http_status with string argument. (@ydah)
  • Fix an infinite loop error when RSpec/ExcessiveDocstringSpacing finds a description with non-ASCII leading/trailing whitespace. (@bcgraham)
  • Fix an incorrect autocorrect for RSpec/ReceiveMessages when return values declared between stubs. (@marocchino)
  • Fix a false positive RSpec/Focus when chained method call and inside define method. (@ydah)

RuboCop RSpec v2.23.2

09 Aug 14:53
90a077b
Compare
Choose a tag to compare
  • Fix an incorrect autocorrect for RSpec/ReceiveMessages when method is only non-word character. (@marocchino)
  • Fix a false positive for RSpec/ReceiveMessages when return with splat. (@marocchino)

RuboCop RSpec v2.23.1

07 Aug 18:47
20d9d21
Compare
Choose a tag to compare
  • Mark to Safe: false for RSpec/Rails/NegationBeValid cop. (@ydah)
  • Declare autocorrect as unsafe for RSpec/ReceiveMessages. (@bquorning)

RuboCop RSpec v2.23.0

30 Jul 14:02
d66612b
Compare
Choose a tag to compare
  • Add new RSpec/Rails/NegationBeValid cop. (@ydah)
  • Fix a false negative for RSpec/ExcessiveDocstringSpacing when finds description with em space. (@ydah)
  • Fix a false positive for RSpec/EmptyExampleGroup when example group with examples defined in if branch inside iterator. (@ydah)
  • Update the message output of RSpec/ExpectActual to include the word 'value'. (@corydiamand)
  • Fix a false negative for RSpec/Pending when it without body. (@ydah)
  • Add new RSpec/ReceiveMessages cop. (@ydah)
  • Change default.yml path to use **/spec/* instead of spec/*. (@ydah)
  • Add AllowedIdentifiers and AllowedPatterns configuration option to RSpec/IndexedLet. (@ydah)
  • Fix RSpec/NamedSubject when block has no body. (@splattael)
  • Fix RSpec/LetBeforeExamples autocorrect incompatible with RSpec/ScatteredLet autocorrect. (@ydah)
  • Update RSpec/Focus to support shared_context and shared_examples (@tmaier)

RuboCop RSpec v2.22.0

06 May 13:58
21d0ee4
Compare
Choose a tag to compare
  • Extract factory_bot cops to a separate repository, rubocop-factory_bot. The rubocop-factory_bot repository is a dependency of rubocop-rspec and the factory_bot cops are aliased (RSpec/FactoryBot/Foo == FactoryBot/Foo) until v3.0 is released, so the change will be invisible to users until then. (@ydah)

RuboCop RSpec v2.21.0

05 May 09:44
42242dc
Compare
Choose a tag to compare
  • Fix a false positive in RSpec/IndexedLet with suffixes after index-like numbers. (@pirj)
  • Fix an error for RSpec/Rails/HaveHttpStatus with comparison with strings containing non-numeric characters. (@ydah)
  • Fix an error for RSpec/MatchArray when match_array with no argument. (@ydah)
  • Add support a_block_changing and changing for RSpec/ChangeByZero. (@ydah)
  • Drop Ruby 2.6 support. (@ydah)

RuboCop RSpec v2.20.0

18 Apr 07:10
454ec6d
Compare
Choose a tag to compare
  • Add new RSpec/IndexedLet cop. (@dmitrytsepelev)
  • Add new RSpec/BeEmpty cop. (@ydah, @bquorning)
  • Add autocorrect support for RSpec/ScatteredSetup. (@ydah)
  • Add support be_status style for RSpec/Rails/HttpStatus. (@ydah)
  • Add support for shared example groups to RSpec/EmptyLineAfterExampleGroup. (@pirj)
  • Add support for RSpec/HaveHttpStatus when using response.code. (@ydah)
  • Fix order of expected and actual in correction for RSpec/Rails/MinitestAssertions (@mvz)
  • Fix a false positive for RSpec/DescribedClassModuleWrapping when RSpec.describe numblock is nested within a module. (@ydah)
  • Fix a false positive for RSpec/FactoryBot/ConsistentParenthesesStyle inside &&, || and :? when omit_parentheses is on (@dmitrytsepelev)
  • Fix a false positive for RSpec/PendingWithoutReason when pending/skip has a reason inside an example group. (@ydah)
  • Fix a false negative for RSpec/RedundantAround when redundant numblock around. (@ydah)
  • Change RSpec/ContainExactly to ignore calls with no arguments, and change RSpec/MatchArray to ignore calls with an empty array literal argument. (@ydah, @bquorning)
  • Make RSpec/MatchArray and RSpec/ContainExactly pending. (@ydah)