Sha256: 9c8317b7504e86dce8bbe6f3f99e2b905023fc4de2311f407fe7dc68fd89f3b9
Contents?: true
Size: 418 Bytes
Versions: 2
Compression:
Stored size: 418 Bytes
Contents
require 'rext/hash' describe Hash do describe "helpers" do describe "#delete_at" do it "should delete several keys, returning their values when present" do options = { :foo => 1, :bar => 2 } foo, bar, does_not_exist = options.delete_at :foo, :bar, :does_not_exist foo.should == 1 bar.should == 2 does_not_exist.should be_nil end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
visionmedia-rext-0.0.2 | spec/hash_spec.rb |
visionmedia-rext-0.0.3 | spec/hash_spec.rb |