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