Please sign in to comment.
Fix spec failing on 1.8.7.
Weirdly, it appears that on 1.8.7, Array#delete will return the object you pass to it rather than the object in the array! O = Struct.new(:a, :b) i1, i2 = O.new(3, 5), O.new(3, 5) list = [i1] deleted = list.delete(i2) deleted.equal?(i1) # => true on 1.9.2, false on 1.8.7 deleted.equal?(i2) # => false on 1.9.2, true on 1.8.7
- Loading branch information...
Showing with 6 additions and 1 deletion.