Skip to content

Enable RSpec/ContextWording - #1708

Merged
seanaery merged 1 commit into
mainfrom
enable-context-wording
Dec 3, 2026
Merged

seanaery merged 1 commit into
mainfrom
enable-context-wording

Conversation

@jcoyne

@jcoyne jcoyne commented Dec 2, 2026

Copy link
Copy Markdown
Member

This removes RSpec/ContextWording from .rubocop_todo.yml and fixes its 60 offenses, so every context now starts with when, with or without.

Some of these blocks named a topic rather than a condition ('site-wide search form', 'collection counts', 'repositories', 'siblings and highlighted self'), so they became describe instead of getting a forced prefix. Everything else was reworded in place. In normalized_date_spec.rb and normalized_title_spec.rb, the new names describe the input, e.g. 'buggy title (comma at end)' → 'with a trailing comma'.

This conflicts with #1704 and #1707, which delete document_tools_spec.rb and fielded_search_results_spec.rb. Whichever merges second should keep the deletion.

@jcoyne
jcoyne force-pushed the enable-context-wording branch from 44c974f to fb92242 Compare December 3, 2026 13:28
@seanaery
seanaery merged commit bc5de4c into main Dec 3, 2026
4 checks passed
@seanaery
seanaery deleted the enable-context-wording branch December 3, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants