Sha256: 8cf8cb7e2a69bf6c63a78e9a6d34026315ef3503a7c68665910302011ce7189e
Contents?: true
Size: 269 Bytes
Versions: 29
Compression:
Stored size: 269 Bytes
Contents
describe "Hash#empty?" do it "returns true if the hash has no entries" do {}.empty?.should == true {1 => 1}.empty?.should == false end it "returns true if the hash has no entires and has a default value" do Hash.new(5).empty?.should == true end end
Version data entries
29 entries across 29 versions & 1 rubygems