Skip to content
Critiq Docs

Search docs

Search documentation pages and rules

quality.testing

Remove focused RSpec examples before merge

fit and fdescribe skip the rest of the suite and should not ship.

#Metadata

Rule ID
ruby.testing.focused-example
Severity
medium
Confidence
0.85
Languages
ruby
Presets
recommended, strict
Stability
experimental
Applies to
block
Tags
ruby, rules-catalog, testing

#Why it matters

Focused examples hide failures in sibling specs.

#Remediation

Delete `fit` / `fdescribe` usage and rely on the full spec suite in CI.

#Repository path

The generated metadata points to critiq-rules/libs/rules/catalog/rules/ruby/ruby.testing.focused-example.rule.yaml.