Sha256: a29f1bae831c4c7dcf477a6e4527032f6d4afa3ee8768eeabd33297f11f83cc7
Contents?: true
Size: 411 Bytes
Versions: 135
Compression:
Stored size: 411 Bytes
Contents
describe :hash_length, :shared => true do it "returns the number of entries" do new_hash(:a => 1, :b => 'c').send(@method).should == 2 new_hash(:a => 1, :b => 2, :a => 2).send(@method).should == 2 new_hash(:a => 1, :b => 1, :c => 1).send(@method).should == 3 new_hash().send(@method).should == 0 new_hash(5).send(@method).should == 0 new_hash { 5 }.send(@method).should == 0 end end
Version data entries
135 entries across 135 versions & 2 rubygems