1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
This commit is contained in:
Benoit Daloze 2022-09-28 18:37:17 +02:00
parent 5a1ab740fc
commit 31cf1bb525
51 changed files with 1141 additions and 258 deletions

View file

@ -12,4 +12,11 @@ describe "UnboundMethod#hash" do
to_s, inspect = Array.instance_method(:to_s), Array.instance_method(:inspect)
to_s.hash.should == inspect.hash
end
it "equals a hash of the same method in the superclass" do
foo_in_superclass = UnboundMethodSpecs::HashSpecs::SuperClass.instance_method(:foo)
foo = UnboundMethodSpecs::HashSpecs::SubClass.instance_method(:foo)
foo.hash.should == foo_in_superclass.hash
end
end