API-55276: Update to FakeController#27605
Merged
jeremyhunton-va merged 7 commits intomasterfrom Apr 8, 2026
Merged
Conversation
…riting each other.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates several spec-only “FakeController” definitions to use unique class names, preventing Ruby constant/class reopening collisions across parallelized spec runs (notably in claims_api concerns specs).
Changes:
- Renamed top-level
FakeControllerclasses in multiple specs to unique, concern-specific controller names. - Updated corresponding
describeblocks and stubs (allow_any_instance_of) to reference the renamed classes.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| modules/appeals_api/spec/controllers/concerns/appeals_api/header_modification_spec.rb | Renames the fake controller constant used to test AppealsApi::HeaderModification to avoid cross-spec collisions. |
| modules/claims_api/spec/concerns/claims_api/v2/claims_requests/supporting_documents_spec.rb | Renames the fake controller used to exercise SupportingDocuments methods and updates instantiation. |
| modules/claims_api/spec/concerns/claims_api/v2/claims_requests/tracked_items_assistance_spec.rb | Renames the fake controller constant used to test TrackedItemsAssistance concern helpers. |
| modules/claims_api/spec/concerns/claims_api/v2/claims_requests/tracked_items_spec.rb | Renames the fake controller constant used to test tracked items behavior and BGS interactions. |
| modules/claims_api/spec/concerns/claims_api/endpoint_deprecation_spec.rb | Renames the fake controller constant used to test EndpointDeprecation header behavior. |
| modules/claims_api/spec/concerns/claims_api/poa_verification_spec.rb | Renames the fake controller constant and updates allow_any_instance_of stubs accordingly. |
…veterans-affairs/vets-api into jeremyhunton-va/API-55276
…deprecation_spec and supporting_documents_spec
…isions with test-only classes.
stiehlrod
approved these changes
Apr 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
FakeControllernamespace in specs to unique names in order to resolve issue with spec class name collisions.Related issue(s)
Resolve API-55276

Affected Areas
Testing Plan
Screenshots
Note: Optional
What areas of the site does it impact?
(Describe what parts of the site are impacted andifcode touched other areas)
Acceptance criteria
Requested Feedback
(OPTIONAL)What should the reviewers know in addition to the above. Is there anything specific you wish the reviewer to assist with. Do you have any concerns with this PR, why?