Sha256: 4306cc6c6a8bec8d447a328881f216801de166d5bc2db8497fbbc37bdfab13b2
Contents?: true
Size: 382 Bytes
Versions: 5
Compression:
Stored size: 382 Bytes
Contents
require 'spec_helper' describe Anima::Attribute, '#set' do let(:object) { described_class.new(:foo) } subject { object.set(target, value) } let(:target) { Object.new } let(:value) { mock('Value') } it_should_behave_like 'a command method' it 'should set value as instance variable' do subject target.instance_variable_get(:@foo).should be(value) end end
Version data entries
5 entries across 5 versions & 1 rubygems