Sha256: b5fd941577f50473a59ef0dd0ec3c8fe47075729f5d2ec13d992d4367ec19136
Contents?: true
Size: 584 Bytes
Versions: 1
Compression:
Stored size: 584 Bytes
Contents
require 'spec_helper' describe Virtus::ValueObject, '.equalizer' do subject { described_class.equalizer } let(:described_class) do Class.new do include Virtus::ValueObject attribute :first_name, String end end specify { subject.should be_instance_of(Virtus::ValueObject::Equalizer) } specify { described_class.included_modules.should include(subject) } context 'when equalizer is already initialized' do before { subject; described_class.equalizer } let(:equalizer) { subject } specify { subject.should be(equalizer) } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
virtus-0.2.0 | spec/unit/virtus/value_object/class_methods/equalizer_spec.rb |