Skip to content

Releases: rubocop/rubocop-rspec

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)

RuboCop RSpec v2.4.0

09 Jun 19:08
1b360e5
Compare
Choose a tag to compare
  • Update RSpec/FilePath to check suffix when given a non-constant top-level node (e.g. features). (@topalovic)
  • Add missing documentation for single_statement_only style of RSpec/ImplicitSubject cop. (@tejasbubane)
  • Fix an exception in DescribedClass when accessing a constant on a variable in a spec that is nested in a namespace. (@rrosenblum)
  • Add new RSpec/IdenticalEqualityAssertion cop. (@tejasbubane)
  • Add RSpec/Rails/AvoidSetupHook cop. (@paydaylight)
  • Fix false negative in RSpec/ExpectChange cop with block style and chained method call. (@tejasbubane)

RuboCop RSpec v2.3.0

28 Apr 09:53
db9b566
Compare
Choose a tag to compare
  • Allow RSpec/ContextWording to accept multi-word prefixes. (@hosamaly)
  • Drop support for ruby 2.4. (@bquorning)
  • Add CountAsOne configuration option to RSpec/ExampleLength. (@stephannv)
  • Fix a false positive for RSpec/RepeatedExampleGroupBody when pending or skip have argument(s). (@Tietew)

RuboCop RSpec v2.2.0

02 Feb 15:14
957cdff
Compare
Choose a tag to compare
  • Fix HooksBeforeExamples, LeadingSubject, LetBeforeExamples and ScatteredLet autocorrection to take into account inline comments and comments immediately before the moved node. (@Darhazer)
  • Improve rubocop-rspec performance. (@Darhazer, @bquorning)
  • Include Enabled: true to prevent a mismatched configuration parameter warning when RSpec cops are explicitly enabled in the user configuration. (@pirj)

RuboCop RSpec v2.1.0

17 Dec 21:17
d34d49c
Compare
Choose a tag to compare
  • Fix RSpec/FilePath false positive for relative file path runs with long namespaces. (@ahukkanen)
  • Update RSpec/Focus to have auto-correction. (@dvandersluis)

RuboCop RSpec v2.0.1

02 Dec 06:57
b395672
Compare
Choose a tag to compare
  • Fixed infinite loop in RSpec/ExpectActual autocorrection when both expected and actual values are literals. (@Darhazer)

RuboCop RSpec v2.0.0

06 Nov 16:32
c3fa5ba
Compare
Choose a tag to compare

This a major release, so please consider all changes “potentially breaking”. Read more about upgrading in our Upgrade to Version 2.x document.

  • Remove deprecated class ::RuboCop::Cop::RSpec::Cop. (@bquorning)
  • Retire RSpec/InvalidPredicateMatcher cop. (@pirj)
  • Remove the code responsible for filtering files to inspect. (@pirj)
  • Make RSpec language elements configurable. (@sl4vr)
  • Remove CustomIncludeMethods RSpec/EmptyExampleGroup option in favour of the new RSpec DSL configuration. (@pirj)
  • Enabled pending cop (RSpec/StubbedMock). (@pirj)

See also https://github.com/rubocop-hq/rubocop-rspec/releases/v2.0.0.pre

RuboCop RSpec v2.0.0.pre

22 Oct 19:12
Compare
Choose a tag to compare
Pre-release
  • Update RuboCop dependency to v1.0.0. (@bquorning)
  • (Potentially breaking) Change namespace of several cops (Capybara/*RSpec/Capybara/*, FactoryBot/*RSpec/FactoryBot/*, Rails/*RSpec/Rails/*). (@pirj, @bquorning)