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

As each file is required in RSpec::Core::Configuration, push it onto requires. #3117

Merged
merged 2 commits into from
Oct 10, 2024

Conversation

JonRowe
Copy link
Member

@JonRowe JonRowe commented Oct 7, 2024

We expose RSpec::Core::Configuration#requires to show the list of files configured to be required, but currently if you were to look at those files during the require process they would be empty, or partially complete based on any previous config passes, this is an attempt to make this slightly more transparent, I think recording the file as required after we have required it is the best compromise?

Fixes #3116

@JonRowe JonRowe force-pushed the push_requires_into_config_as_required branch from 69a0c8b to 739e435 Compare October 10, 2024 00:14
@JonRowe JonRowe merged commit cb8a65e into main Oct 10, 2024
30 checks passed
@JonRowe JonRowe deleted the push_requires_into_config_as_required branch October 10, 2024 07:15
JonRowe added a commit that referenced this pull request Oct 10, 2024
…ired

As each file is required in RSpec::Core::Configuration, push it onto `requires`.
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.

Command line --require are not visible in spec_helper.rb configuration block
1 participant