diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c0accd..5dda443 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Master (Unreleased) +* Add `require_implicit` style to `RSpec/ImplicitSubject`. ([@r7kamura][]) + ## 2.13.2 (2022-09-23) * Fix an error for `RSpec/Capybara/SpecificFinders` with no parentheses. ([@ydah][]) diff --git a/config/default.yml b/config/default.yml index 585923b..fa622f4 100644 --- a/config/default.yml +++ b/config/default.yml @@ -492,8 +492,9 @@ RSpec/ImplicitSubject: - single_line_only - single_statement_only - disallow + - require_implicit VersionAdded: '1.29' - VersionChanged: '1.30' + VersionChanged: '2.13' Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ImplicitSubject RSpec/InstanceSpy: