Sha256: b5ecd60fbd0cf726a4ec9394aab89a0cb6b7a2aa0057bd5ec11a69008fc479b0
Contents?: true
Size: 596 Bytes
Versions: 1
Compression:
Stored size: 596 Bytes
Contents
require "spec_helper" require "tagen/core/extend_hash" describe ExtendHash do describe "#[]" do it "convert string-key to symbol-key" do h = ExtendHash.new h.store(:ok, 1) h["ok"].should == 1 end end describe "#[]=" do it "convert string-key to symbol-key" do h = ExtendHash.new h["ok"] = 1 h[:ok] = 1 end end describe "#method_missing" do it "#key" do h = ExtendHash.new h[:ok] = 1 h.ok.should == 1 end it "#key=" do h = ExtendHash.new h.ok = 1 h.ok.should == 1 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tagen-1.0.4 | spec/tagen/core/extend_hash_spec.rb |