Skip to content

Releases: rubocop/rubocop-rspec

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)

RuboCop RSpec v1.44.1

22 Oct 19:11
Compare
Choose a tag to compare

RuboCop RSpec v1.44.0

20 Oct 11:00
Compare
Choose a tag to compare
  • Move our documentation from rubocop-rspec.readthedocs.io to docs.rubocop.org/rubocop-rspec. (@bquorning)
  • Add RSpec/RepeatedIncludeExample cop. (@biinari)
  • Add RSpec/StubbedMock cop. (@bquorning, @pirj)
  • Add IgnoredMetadata configuration option to RSpec/DescribeClass. (@Rafix02)
  • Fix false positives in RSpec/EmptyExampleGroup. (@pirj)
  • Fix a false positive for RSpec/EmptyExampleGroup when example is defined in an if branch. (@koic)

RuboCop RSpec v1.43.2

25 Aug 08:44
Compare
Choose a tag to compare
  • Fix RSpec/FilePath when checking a file with a shared example. (@pirj)
  • Fix subject nesting detection in RSpec/LeadingSubject. (@pirj)