Sha256: 7008cd3c428b10874011624531e70f369cd1636379e26af2e41ff7302b67a515
Contents?: true
Size: 436 Bytes
Versions: 2
Compression:
Stored size: 436 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Immutable::Memory, '#[]=' do subject { object[key] = value } let(:object) { described_class.new } let(:key) { '@key' } let(:value) { mock('Value') } it { should equal(value) } it 'sets the instance variable' do object.should_not be_instance_variable_defined(key) subject object.instance_variable_get(key).should equal(value) end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.5 | spec/unit/veritas/immutable/memory/element_set_spec.rb |
veritas-0.0.4 | spec/unit/veritas/immutable/memory/element_set_spec.rb |