Sha256: 0de5558b640d3ae26ecbbb42ff094b96fccec7d8bc1124df8c2350d4d5922e68

Contents?: true

Size: 731 Bytes

Versions: 27

Compression:

Stored size: 731 Bytes

Contents

require 'minitest/spec'
require 'minitest/autorun'
require 'gumdrop'

# describe Gumdrop::HashObject 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

27 entries across 27 versions & 1 rubygems

Version Path
gumdrop-0.8.0 specs/deferred_loader_spec.rb
gumdrop-0.7.5 specs/deferred_loader_spec.rb
gumdrop-0.7.4 specs/deferred_loader_spec.rb
gumdrop-0.7.3.1 specs/deferred_loader_spec.rb
gumdrop-0.7.3 specs/deferred_loader_spec.rb
gumdrop-0.7.2 specs/deferred_loader_spec.rb
gumdrop-0.7.1 specs/deferred_loader_spec.rb
gumdrop-0.7.0 specs/deferred_loader_spec.rb
gumdrop-0.6.4 specs/deferred_loader_spec.rb
gumdrop-0.6.3 specs/deferred_loader_spec.rb
gumdrop-0.6.2 specs/deferred_loader_spec.rb
gumdrop-0.6.1 specs/deferred_loader_spec.rb
gumdrop-0.6.0 specs/deferred_loader_spec.rb
gumdrop-0.5.2 specs/deferred_loader_spec.rb
gumdrop-0.5.1 specs/deferred_loader_spec.rb
gumdrop-0.5 specs/deferred_loader_spec.rb
gumdrop-0.4.0 specs/deferred_loader_spec.rb
gumdrop-0.3.10 specs/deferred_loader_spec.rb
gumdrop-0.3.9 specs/deferred_loader_spec.rb
gumdrop-0.3.8 specs/deferred_loader_spec.rb