[前][次][番号順一覧][スレッド一覧]

ruby-changes:56189

From: Benoit <ko1@a...>
Date: Sat, 22 Jun 2019 01:22:04 +0900 (JST)
Subject: [ruby-changes:56189] Benoit Daloze: 3b2d11ad90 (trunk): Use different names for autoload constants in specs for clarity

https://git.ruby-lang.org/ruby.git/commit/?id=3b2d11ad90

From 3b2d11ad90fcb64b41acc9006dfd1e40b4bd9000 Mon Sep 17 00:00:00 2001
From: Benoit Daloze <eregontp@g...>
Date: Fri, 21 Jun 2019 18:21:16 +0200
Subject: Use different names for autoload constants in specs for clarity


diff --git a/spec/ruby/core/module/autoload_spec.rb b/spec/ruby/core/module/autoload_spec.rb
index e737d3a..ca4c638 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 https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/module/autoload_spec.rb#L19
 
   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
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]