Changeset 562

Show
Ignore:
Timestamp:
06/24/08 11:05:50 (3 months ago)
Author:
bbleything
Message:
  • add spec to indifferent hash. 100% coverage!
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • linen/trunk/spec/indifferent_hash_spec.rb

    r399 r562  
    3838        @ihash[ :ambiguous  ].should == "symbol" 
    3939    end 
     40     
     41    it "returns nil when you access a key that it doesn't know about" do 
     42        @ihash[ :bogus_key  ].should be_nil 
     43        @ihash[ 'bogus_key' ].should be_nil 
     44    end 
    4045end