Skip to content
This repository has been archived by the owner on Nov 30, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
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