spec/spec.google_hash.rb in google_hash-0.8.6 vs spec/spec.google_hash.rb in google_hash-0.8.7
- old
+ new
@@ -54,9 +54,12 @@
@subject.length.should == 1
@subject.size.should == 1
sum = 0
@subject.each{|k, v| sum += k; sum += v}
sum.should == (33+34)
+ sum = 0
+ @subject.each_pair{|k, v| sum += k; sum += v}
+ sum.should == (33+34)
@subject[33] = 'abc'
@subject.each{|k, v|
k.should == 33
v.should == 'abc'
}