diff options
author | Benoit Daloze <eregontp@gmail.com> | 2019-06-21 18:21:16 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2019-06-21 18:21:45 +0200 |
commit | 3b2d11ad90fcb64b41acc9006dfd1e40b4bd9000 (patch) | |
tree | 5c75944ea9ed6b825aac8030f3d6bf85cbdd0c21 /spec/ruby | |
parent | e5e811e4a04482a5ad764fbb2b792ee5fbdd7195 (diff) | |
download | ruby-3b2d11ad90fcb64b41acc9006dfd1e40b4bd9000.tar.gz |
Use different names for autoload constants in specs for clarity
Diffstat (limited to 'spec/ruby')
-rw-r--r-- | spec/ruby/core/module/autoload_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/ruby/core/module/autoload_spec.rb b/spec/ruby/core/module/autoload_spec.rb index e737d3a3df..ca4c63838c 100644 --- a/spec/ruby/core/module/autoload_spec.rb +++ b/spec/ruby/core/module/autoload_spec.rb @@ -19,13 +19,13 @@ describe "Module#autoload?" do ruby_version_is "2.7" do it "returns nil if an ancestor defined that autoload but recursion is disabled" do - ModuleSpecs::Autoload::Parent.autoload :AnotherAutoload, "another_autoload.rb" - ModuleSpecs::Autoload::Child.autoload?(:AnotherAutoload, false).should be_nil + ModuleSpecs::Autoload::Parent.autoload :InheritedAutoload, "inherited_autoload.rb" + ModuleSpecs::Autoload::Child.autoload?(:InheritedAutoload, false).should be_nil end it "returns the name of the file that will be loaded if recursion is disabled but the autoload is defined on the classs itself" do - ModuleSpecs::Autoload::Child.autoload :AnotherAutoload, "another_autoload.rb" - ModuleSpecs::Autoload::Child.autoload?(:AnotherAutoload, false).should == "another_autoload.rb" + ModuleSpecs::Autoload::Child.autoload :ChildAutoload, "child_autoload.rb" + ModuleSpecs::Autoload::Child.autoload?(:ChildAutoload, false).should == "child_autoload.rb" end end end |