mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@1d9d5c6
This commit is contained in:
parent
5a1ab740fc
commit
31cf1bb525
51 changed files with 1141 additions and 258 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue