Sha256: 8cb61213fad3d8bd22617b09d67f7a2d3f5891a867299d93b63eaf5db773e9e9
Contents?: true
Size: 446 Bytes
Versions: 2
Compression:
Stored size: 446 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Immutable::Memory, '#[]' do subject { object[key] } let(:object) { described_class.new } context 'with known key' do let(:key) { '@key' } let(:value) { mock('Value') } before do object.instance_variable_set(key, value) end it { should equal(value) } end context 'with unknown key' do let(:key) { '@key' } it { should be_nil } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.5 | spec/unit/veritas/immutable/memory/element_reference_spec.rb |
veritas-0.0.4 | spec/unit/veritas/immutable/memory/element_reference_spec.rb |