Rubocop Rspec Versions Save

Code style checking for RSpec files

v2.29.1

1 month ago
  • Fix an error in the default configuration. (@ydah)

v2.29.0

1 month ago
  • Fix an autocorrect error for RSpec/ExpectActual. (@bquorning)
  • Add new RSpec/UndescriptiveLiteralsDescription cop. (@ydah)
  • Add new RSpec/EmptyOutput cop. (@bquorning)

v2.28.0

1 month ago
  • 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)

v2.27.1

2 months ago
  • Fix a false positive for RSpec/RepeatedSubjectCall when subject.method_call. (@ydah)
  • Add configuration option OnlyStaticConstants to RSpec/DescribedClass. (@ydah)

v2.27.0

2 months ago
  • Add new RSpec/IsExpectedSpecify cop. (@ydah)
  • Add new RSpec/RepeatedSubjectCall cop. (@drcapulet)
  • Add support for assert_true, assert_false, assert_not_equal, assert_not_nil, *_empty, *_predicate, *_kind_of, *_in_delta, *_match, *_instance_of and *_includes assertions in RSpec/Rails/MinitestAssertions. (@ydah, @G-Rath)
  • Support asserts with messages in Rspec/BeEmpty. (@G-Rath)
  • Fix a false positive for RSpec/ExpectActual when used with rspec-rails routing matchers. (@naveg)
  • Add configuration option ResponseMethods to RSpec/Rails/HaveHttpStatus. (@ydah)
  • Fix a false negative for RSpec/DescribedClass when class with constant. (@ydah)
  • Fix a false positive for RSpec/ExampleWithoutDescription when specify with multi-line block and missing description. (@ydah)
  • Fix an incorrect autocorrect for RSpec/ChangeByZero when compound expectations with line break before .by(0). (@ydah)

v2.26.1

4 months ago
  • Fix an error for RSpec/SharedExamples when using examples without argument. (@ydah)

v2.26.0

4 months ago
  • 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)

v2.25.0

6 months ago
  • 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)

v2.24.1

7 months ago
  • 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)

v2.24.0

7 months ago
  • 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)