From 6a77dfbb167f8e7ae8b72757b08cc87a8683049f Mon Sep 17 00:00:00 2001 From: Takuya Aramaki Date: Thu, 28 Sep 2023 23:00:21 +0900 Subject: [PATCH] Fix typo `Method#define_method` -> `Module#define_method` --- core/module/define_method_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/module/define_method_spec.rb b/core/module/define_method_spec.rb index d742ece6b..e04bb87ce 100644 --- a/core/module/define_method_spec.rb +++ b/core/module/define_method_spec.rb @@ -724,7 +724,7 @@ def foo; end end end -describe "Method#define_method when passed a Method object" do +describe "Module#define_method when passed a Method object" do before :each do @klass = Class.new do def m(a, b, *c) @@ -749,7 +749,7 @@ def m(a, b, *c) end end -describe "Method#define_method when passed an UnboundMethod object" do +describe "Module#define_method when passed an UnboundMethod object" do before :each do @klass = Class.new do def m(a, b, *c) @@ -774,7 +774,7 @@ def m(a, b, *c) end end -describe "Method#define_method when passed a Proc object" do +describe "Module#define_method when passed a Proc object" do describe "and a method is defined inside" do it "defines the nested method in the default definee where the Proc was created" do prc = nil @@ -799,7 +799,7 @@ def nested_method_in_proc_for_define_method end end -describe "Method#define_method when passed a block" do +describe "Module#define_method when passed a block" do describe "behaves exactly like a lambda" do it "for return" do Class.new do