Fix RSpec/FeatureCategory in _merge_request_status_checks_settings.html.haml_spec
What does this MR do and why?
ee/spec/views/projects/settings/merge_requests/_merge_request_status_checks_settings.html.haml_spec.rb declared no feature_category:, so RSpec/FeatureCategory rejects it. This MR sets feature_category: :code_review_workflow, matching 4 of the 5 sibling specs in the same directory (_merge_request_approvals, _reviewer_auto_assignment_settings, _suggested_reviewers_settings and show; _duo_code_review_settings uses :duo_chat).
The change is metadata on the top-level RSpec.describe. No example body changes, and no test behaviour changes.
.rubocop_todo/rspec/feature_category.yml still lists this file. The entry is redundant now, and the scheduled Keeps::GenerateRubocopTodos run regenerates the todo files from a full rescan and drops entries whose offense is gone.
How to set up and validate locally
The file is still listed in the RuboCop todo, so a plain rubocop run reports no offenses whether or not this change is correct. REVEAL_RUBOCOP_TODO=1 is what makes the cop see it, which is why the pipeline cannot show this and a local run can.
- Confirm the cop is satisfied on this branch, which should report no offenses
REVEAL_RUBOCOP_TODO=1 bundle exec rubocop --only RSpec/FeatureCategory ee/spec/views/projects/settings/merge_requests/_merge_request_status_checks_settings.html.haml_spec.rb- Confirm the new value is a real category, which should print the matching line
grep -x -- '- code_review_workflow' config/feature_categories.yml- Confirm the file still offends on
master, so the check above is meaningful. This should report the offense this MR removes
git show master:ee/spec/views/projects/settings/merge_requests/_merge_request_status_checks_settings.html.haml_spec.rb | REVEAL_RUBOCOP_TODO=1 bundle exec rubocop --only RSpec/FeatureCategory --stdin ee/spec/views/projects/settings/merge_requests/_merge_request_status_checks_settings.html.haml_spec.rbReferences
- Relates to #589138
- Feature categorization in RSpec examples: https://docs.gitlab.com/development/feature_categorization/#rspec-examples