-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create model definitions and user associations for #20426
Create model definitions and user associations for #20426
Conversation
abcd51c
to
32ed17a
Compare
30d28e0
to
32ed17a
Compare
Error: A file (or its parent directories) does not have a CODEOWNERS entry. Please update the .github/CODEOWNERS file and add the entry for the Offending file: app/models/user_action.rb |
Error: A file (or its parent directories) does not have a CODEOWNERS entry. Please update the .github/CODEOWNERS file and add the entry for the Offending file: spec/factories/user_action_events.rb |
b3a1f1b
to
caf2119
Compare
Error: A file (or its parent directories) does not have a CODEOWNERS entry. Please update the .github/CODEOWNERS file and add the entry for the Offending file: spec/factories/user_action_events.rb |
Error: A file (or its parent directories) does not have a CODEOWNERS entry. Please update the .github/CODEOWNERS file and add the entry for the Offending file: spec/factories/user_action_events.rb |
Error: A file (or its parent directories) does not have a CODEOWNERS entry. Please update the .github/CODEOWNERS file and add the entry for the Offending file: spec/factories/user_action_events.rb |
Error: A file (or its parent directories) does not have a CODEOWNERS entry. Please update the .github/CODEOWNERS file and add the entry for the Offending file: spec/factories/user_action_events.rb |
.github/CODEOWNERS
Outdated
@@ -1268,6 +1270,8 @@ spec/factories/supporting_evidence_attachment.rb @department-of-veterans-affairs | |||
spec/factories/triage_teams.rb @department-of-veterans-affairs/vfs-mhv-secure-messaging @department-of-veterans-affairs/va-api-engineers @department-of-veterans-affairs/backend-review-group | |||
spec/factories/user_acceptable_verified_credentials.rb @department-of-veterans-affairs/octo-identity | |||
spec/factories/user_accounts.rb @department-of-veterans-affairs/octo-identity | |||
spec/factories/user_action_event.rb @department-of-veterans-affairs/octo-identity |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pluralize these:
- user_action_events.rb
- user_actions.rb
Removes unnecessary status predicate tests Improves status enum testing with invalid status case
- user_action_event.rb -> user_action_events.rb - user_action.rb -> user_actions.rb
Summary
Related issue(s)
Testing done
bundle exec rspec spec/models/user_action_spec.rb
What areas of the site does it impact?
This change only impacts the test suite for the UserAction model. No production code was modified, only test improvements were made.
Acceptance criteria
Requested Feedback
Please review the approach taken for testing Rails enums. We've updated the invalid status test to expect an ArgumentError instead of a validation error, as this better reflects Rails' actual behavior with enums. Let me know if you think we should handle this differently.