Skip to content

Align MfaPolicy spec filename to described class#11046

Merged
aduth merged 1 commit intomainfrom
aduth-rename-mfa-policy-spec
Aug 7, 2024
Merged

Align MfaPolicy spec filename to described class#11046
aduth merged 1 commit intomainfrom
aduth-rename-mfa-policy-spec

Conversation

@aduth
Copy link
Contributor

@aduth aduth commented Aug 7, 2024

🛠 Summary of changes

Renames spec/policies/user_mfa_policy_spec.rb to align to the source file it tests (app/policies/mfa_policy_spec.rb), i.e. renames to spec/policies/mfa_policy_spec.rb.

This came up in #11029 (comment), where I had assumed we had no tests for this class due to the lack of an expected test file. In fact, we do have tests, but the file is named incorrectly.

Fixing this issue should help avoid similar scenarios in the future where developers may be confused about the existence of tests.

📜 Testing Plan

rspec spec/policies/mfa_policy_spec.rb

changelog: Internal, Code Quality, Align MfaPolicy spec filename to described class
@aduth aduth requested a review from mdiarra3 August 7, 2024 14:24
@aduth aduth merged commit ca9270a into main Aug 7, 2024
@aduth aduth deleted the aduth-rename-mfa-policy-spec branch August 7, 2024 16:16
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