Skip to content

Commit f7e8580

Browse files
committed
Fix autoload spec description
* The constant cannot be really "removed", otherwise other threads would find a missing constant instead of waiting for the autoloaded constant.
1 parent def97c5 commit f7e8580

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

spec/ruby/core/module/autoload_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ module ModuleSpecs::Autoload
217217
end
218218
end
219219

220-
describe "the autoload is removed when the same file is required directly without autoload" do
220+
describe "the autoload is triggered when the same file is required directly" do
221221
before :each do
222222
module ModuleSpecs::Autoload
223223
autoload :RequiredDirectly, fixture(__FILE__, "autoload_required_directly.rb")
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
fails:Module#autoload (concurrently) blocks others threads while doing an autoload
2-
fails:Module#autoload the autoload is removed when the same file is required directly without autoload with a full path
3-
fails:Module#autoload the autoload is removed when the same file is required directly without autoload with a relative path
4-
fails:Module#autoload the autoload is removed when the same file is required directly without autoload in a nested require
2+
fails:Module#autoload the autoload is triggered when the same file is required directly with a full path
3+
fails:Module#autoload the autoload is triggered when the same file is required directly with a relative path
4+
fails:Module#autoload the autoload is triggered when the same file is required directly in a nested require

0 commit comments

Comments
 (0)