Sha256: 271aa07e4ddb01c089e585bb1875c6874469be1dcb9911720dace6e85c1934b2
Contents?: true
Size: 724 Bytes
Versions: 22
Compression:
Stored size: 724 Bytes
Contents
require 'minitest/spec' require 'minitest/autorun' require 'gumdrop' describe Gumdrop::Content do # before do # @ho= Gumdrop::HashObject.new one:"ONE", two:"TWO", three:'THREE' # end # it "can be created with no arguments" do # Gumdrop::HashObject.new.must_be_instance_of Gumdrop::HashObject # end # it "can be used as a standard hash" do # @ho[:one].must_equal "ONE" # end # it "can be used as a standard with either a sym or string key" do # @ho[:two].must_equal "TWO" # @ho['two'].must_equal "TWO" # end # it "can be accessed like an object" do # @ho.three.must_equal "THREE" # end # it "should return nil for an unknown key" do # @ho.timmy.must_be_nil # end end
Version data entries
22 entries across 22 versions & 1 rubygems