rubinius/rubinius — Issue #1362: Failure in Hash#compare_by_identity spec
Author: jfirebaugh
Created: 2011-10-25 04:18:19+00:00
State: open

I think this is a spurious failure; it isn't 100% reproducible.

```
An exception occurred during: Mock.verify_count
Hash#compare_by_identity doesn't call #equal? on keys to determine their identity FAILED
Mock 'equal' expected to receive 'equal?' exactly 0 times but received it 1 times
/expectations.rb:15
Array#each at kernel/bootstrap/array.rb:66
Hash#each at kernel/common/hash19.rb:403
BasicObject(Object)#instance_eval at kernel/common/eval19.rb:43
{ } in Enumerable(Array)#all? at kernel/common/enumerable.rb:235
Array#each at kernel/bootstrap/array.rb:66
Enumerable(Array)#all? at kernel/common/enumerable.rb:235
Array#each at kernel/bootstrap/array.rb:66
{ } in Object#__script__ at spec/ruby/core/hash
/compare_by_identity_spec.rb:2
Object#__script__ at spec/ruby/core/hash
/compare_by_identity_spec.rb:1
Kernel.load at kernel/common/kernel.rb:621
BasicObject(Object)#instance_eval at kernel/common/eval19.rb:43
Array#each at kernel/bootstrap/array.rb:66
Rubinius::CodeLoader#load_script at kernel/delta/codeloader.rb:65
Rubinius::CodeLoader.load_script at kernel/delta/codeloader.rb:107
Rubinius::Loader#script at kernel/loader.rb:626
Rubinius::Loader#main at kernel/loader.rb:780
```