Skip to content

Releases: rubocop/rubocop-rspec

RuboCop RSpec v2.12.1

23 Jul 12:25
a8b16a6
Compare
Choose a tag to compare
  • Fix a false positive for RSpec/Capybara/SpecificMatcher. (@ydah)

RuboCop RSpec v2.12.0

23 Jul 12:25
Compare
Choose a tag to compare
  • Fix incorrect path suggested by RSpec/FilePath cop when second argument contains spaces. (@tejasbubane)
  • Fix autocorrect for EmptyLineSeparation. (@johnny-miyake)
  • Add new RSpec/Capybara/SpecificMatcher cop. (@ydah)
  • Fixed false offense detection in FactoryBot/CreateList when a n.times block is including method calls in the factory create arguments. (@ngouy)
  • Fix error in RSpec/RSpec/FactoryBot/CreateList cop for empty block. (@tejasbubane)
  • Update RSpec/MultipleExpectations cop documentation with examples of aggregate_failures use. (@edgibbs)
  • Declare autocorrect as unsafe for RSpec/VerifiedDoubleReference. (@Drowze)
  • Add new RSpec/Rails/HaveHttpStatus cop. (@akiomik)

RuboCop RSpec v2.11.1

18 May 18:47
17aded3
Compare
Choose a tag to compare
  • Fix a regression in RSpec/ExpectChange flagging chained method calls. (@pirj)

RuboCop RSpec v2.11.0

18 May 12:16
75ad3ef
Compare
Choose a tag to compare
  • Drop Ruby 2.5 support. (@ydah)
  • Add new RSpec/ChangeByZero cop. (@ydah)
  • Improve RSpec/ExpectChange to detect namespaced and top-level constants. (@M-Yamashita01)
  • Introduce an amendment to Metrics/BlockLength to exclude spec files. (@luke-hill)

RuboCop RSpec v2.10.0

19 Apr 05:51
4dc8bcc
Compare
Choose a tag to compare
  • Fix a false positive for RSpec/EmptyExampleGroup when expectations in case statement. (@ydah)
  • Add RSpec/VerifiedDoubleReference cop. (@t3h2mas)
  • Make RSpec/BeNil cop configurable with a be_nil style and a be style. (@bquorning)
  • Fix Capybara/CurrentPathExpectation autocorrect incompatible with Style/TrailingCommaInArguments autocorrect. (@ydah)

RuboCop RSpec v2.9.0

28 Feb 10:07
a4d2e52
Compare
Choose a tag to compare

RuboCop RSpec v2.8.0

24 Jan 10:07
d929e14
Compare
Choose a tag to compare
  • Fix RSpec/FactoryBot/SyntaxMethods and RSpec/Capybara/FeatureMethods to inspect shared groups. (@pirj)
  • Fix RSpec/LeadingSubject failure in non-spec code. (@pirj)
  • Add bad example to RSpec/SubjectStub cop. (@oshiro3)
  • Replace non-styleguide cops StyleGuide attribute with Reference. (@pirj)
  • Fix RSpec/SubjectStub to disallow stubbing of subjects defined in parent example groups. (@pirj)

RuboCop RSpec v2.7.0

26 Dec 20:43
34f3932
Compare
Choose a tag to compare
  • Add new RSpec/FactoryBot/SyntaxMethods cop. (@leoarnold)
  • Exclude task type specs from RSpec/DescribeClass cop. (@harry-graham)

RuboCop RSpec v2.6.0

08 Nov 00:20
6683d5f
Compare
Choose a tag to compare
  • Fix merging RSpec DSL configuration from third-party gems. (@pirj)
  • Fix RSpec/ExcessiveDocstringSpacing false positive for multi-line indented strings. (@G-Rath)
  • Fix Include configuration for sub-departments. (@pirj)
  • Ignore heredocs in RSpec/ExcessiveDocstringSpacing. (@G-Rath)
  • Stop RSpec/ExampleWording from trying to correct heredocs. (@G-Rath)
  • Add autocorrect support for RSpec/VariableDefinition. (@r7kamura)

RuboCop RSpec v2.5.0

21 Sep 21:27
c915e95
Compare
Choose a tag to compare
  • Declare autocorrect as unsafe for ExpectChange. (@francois-ferrandis)
  • Fix each example for RSpec/HookArgument. (@lokhi)
  • Exclude unrelated Rails directories from RSpec/DescribeClass. (@MothOnMars)
  • Add RSpec/ExcessiveDocstringSpacing cop. (@G-Rath)
  • Add RSpec/SubjectDeclaration cop. (@dswij)
  • Fix excessive whitespace removal in RSpec/EmptyHook autocorrection. (@pirj)
  • Bump RuboCop requirement to v1.19.0. (@pirj)
  • Fix false positive in RSpec/IteratedExpectation when there is single, non-expectation statement in the block body. (@Darhazer)