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

Prefer require_relative to avoid calculating relative paths #2528

Merged
merged 1 commit into from Oct 26, 2021

Conversation

jdufresne
Copy link
Contributor

@jdufresne jdufresne commented Oct 23, 2021

Calculating a relative path to require duplicates the builtin Ruby
feature.

https://ruby-doc.org/core-3.0.2/Kernel.html#method-i-require_relative

Calculating a relative path to require duplicates the builtin Ruby
feature.
Copy link
Member

@pirj pirj left a comment

Choose a reason for hiding this comment

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

https://ruby-doc.org/core-2.2.0/Kernel.html#method-i-require_relative is also present in Ruby 2.2, too, which is set as our minimum required Ruby version.

Thank you for the contribution!

@JonRowe JonRowe merged commit 3a496b0 into rspec:main Oct 26, 2021
@jdufresne jdufresne deleted the rel branch October 26, 2021 15:52
JonRowe added a commit that referenced this pull request Oct 26, 2021
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.

None yet

3 participants