Skip to content
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

Removes 'require_dependency' From 'spec/' #12594

Merged
merged 0 commits into from
May 11, 2023

Conversation

gia-lexa
Copy link
Member

@gia-lexa gia-lexa commented May 9, 2023

Summary

The previous upgrade to Rails 6.x brought the addition of Zeitwerk, Rails' code loader, which renders require_dependency statements unnecessary. As a result, we can remove these statements from our code.

This PR removes require_dependency specifically from the spec/models/webhook directory. Other PRs have been opened to address this issue in our modules.

This is part of an effort by Backend COP to remove some older code conventions that are no longer necessary as a result of Zeitwerk.

Issue(s)

Current Issue: Clean Up Use of 'require_dependency': department-of-veterans-affairs/va.gov-team#14688

Previous Related Work: Remove 'require_dependency' from App: #5787

Testing done

Redundant require_dependency statements removed and amended files pushed up.

Acceptance criteria

[ X ] No error nor warning as a result of running the test suite.

Copy link
Contributor

@ryan-mcneil ryan-mcneil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@gia-lexa gia-lexa merged commit 33526b9 into master May 11, 2023
@gia-lexa gia-lexa deleted the gia_14688_require_dependency_spec_directory branch May 11, 2023 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants