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

Add an autoload spec for the behavior inside autoload but after the constant is defined #9613

Merged
merged 1 commit into from
Jan 22, 2024

Conversation

casperisfine
Copy link
Contributor

@casperisfine casperisfine force-pushed the autoload-spec-after-const-defined branch from a9b85fa to a34eb22 Compare January 19, 2024 14:03
spec/ruby/core/module/autoload_spec.rb Outdated Show resolved Hide resolved
spec/ruby/core/module/autoload_spec.rb Outdated Show resolved Hide resolved
@eregon
Copy link
Member

eregon commented Jan 22, 2024

BTW it would be great to also test the case of the constant is set and then an exception happens in the autoload.

@casperisfine casperisfine force-pushed the autoload-spec-after-const-defined branch from a34eb22 to 3c9bc2a Compare January 22, 2024 11:40
@casperisfine casperisfine force-pushed the autoload-spec-after-const-defined branch from 3c9bc2a to 5a090a9 Compare January 22, 2024 11:58
@casperisfine
Copy link
Contributor Author

I fixed the naming issues.

I'll look into the error thing but no promises.

@byroot byroot merged commit b4b35b1 into ruby:master Jan 22, 2024
100 checks passed
@fxn
Copy link
Contributor

fxn commented Jan 22, 2024

❤️ I'll have a stab at the spec for the error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants