diff --git a/core/proc/shared/dup.rb b/core/proc/shared/dup.rb index eda1d6929d..4480f3d0c9 100644 --- a/core/proc/shared/dup.rb +++ b/core/proc/shared/dup.rb @@ -7,4 +7,12 @@ a.call.should == b.call end + + ruby_version_is "3.2" do + it "returns an instance of subclass" do + cl = Class.new(Proc) + + cl.new{}.send(@method).class.should == cl + end + end end