Skip to content

Draft: RuboCop: Add RSpec/SpecifyExpected

Peter Leitzen requested to merge pl-rubocop-rspec-specify-expected into master

What does this MR do and why?

This MR adds a 🆕 RSpec/SpecifyExpected as per https://rspec.rubystyle.guide/#it-and-specify.

# bad
specify { is_expected.to be_nil }

# good
it { is_expected.to be_nil }

Inspired by !132069 (comment 1589555040).

Draft?

  • Add specs
  • Add code docs with examples

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Peter Leitzen

Merge request reports