Sha256: 511a084f123ba9387f714f7ec364590aba08e60b7225432fbf79711312c374e6
Contents?: true
Size: 527 Bytes
Versions: 4
Compression:
Stored size: 527 Bytes
Contents
shared_examples_for 'a field' do | value, active| subject do described_class.new({ :value => value, :active => active }) end it { should respond_to :active } it { should respond_to :value } it { should respond_to :size } it { should respond_to :parse } it { should respond_to :serialize } it 'should set the value from initialize options' do subject.value.should == value end it 'should set active from initialize options' do subject.active.should == active end end
Version data entries
4 entries across 4 versions & 3 rubygems