Sha256: 1d1a95f8260b424ed6efcce6e1fd52de7460a9caceac1e930f8d8bf9c2a2864f
Contents?: true
Size: 339 Bytes
Versions: 3
Compression:
Stored size: 339 Bytes
Contents
require 'spec_helper' require 'ostruct' describe PoroRepository::WeakHash do subject do PoroRepository::WeakHash.new.tap do |h| h[:key1] = 'value1' h[:key2] = 'value2' end end describe do specify "accessing non-existent key returns nil" do subject[:non_existent_key].should be_nil end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
poro_repository-0.2.0 | spec/weak_hash_spec.rb |
poro_repository-0.1.2 | spec/weak_hash_spec.rb |
poro_repository-0.0.2 | spec/weak_hash_spec.rb |