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

Delay extending Rails until loaded #42

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

eric-hemasystems
Copy link

When extending Rails, instrumentation should be used to wait until the component being extended is fully loaded. Without this, it triggers the loading early through the autoloader which can lead to other problems.

For more background see rails/rails#36546.

When extending Rails, instrumentation should be used to wait until the component being
extended is fully loaded. Without this, it triggers the loading early through the autoloader
which can lead to other problems.

For more background see rails/rails#36546.
@eric-hemasystems
Copy link
Author

Failures look like they are due to mocks not behaving like the real thing. I could add more mocking although at some point you have to ask what the tests are proving it the components being tested with don't really model the real thing. Seems better to use the real thing and stop playing wack-a-mole with mocks.

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.

1 participant