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

Fix regression related to require_relative and fix integration tests #65

Merged
merged 8 commits into from
Jun 13, 2024

Conversation

rogerluan
Copy link
Owner

@rogerluan rogerluan commented Jun 13, 2024

Description

This PR fixes #64 which was caused by #56 and introduced in v2.1.0

Even though I identified what was causing the issue, I wanted to fix the integration tests so that these type of incidents don't happen again. Took me awhile to figure out what was causing this to only fail when installing specifically using Bundler, but issue was that in the old [broken] integration tests, we were installing the gem at the root folder of this project, which caused some coincidences in the filepaths to make require_relative to work, but once we changed the installation path, they stopped working.

This was proven by first committing only the changes that make the tests fail:

image

And then committing the fix:

image

@rogerluan rogerluan self-assigned this Jun 13, 2024
@rogerluan rogerluan changed the title Fix regression related to require_relative and fix integration tests Fix regression related to require_relative and fix integration tests Jun 13, 2024
Copy link
Owner Author

@rogerluan rogerluan left a comment

Choose a reason for hiding this comment

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

Self-reviewed

@rogerluan rogerluan merged commit 87b5841 into main Jun 13, 2024
14 checks passed
@rogerluan rogerluan deleted the roger/fix-require-relative branch June 13, 2024 06:03
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.

`require_relative': cannot load such file in 2.1.0
1 participant