Sha256: 9197e40c70cc9e553efd9ad0848b8ee453612ba2c62c9e2ac9c99375140a330e
Contents?: true
Size: 350 Bytes
Versions: 2
Compression:
Stored size: 350 Bytes
Contents
shared_examples_for 'Attribute#complex?' do let(:attribute) { described_class.new(attribute_name, :complex => complex) } subject { attribute.complex? } context "when set to true" do let(:complex) { true } it { should be(true) } end context "when set to false" do let(:complex) { false } it { should be(false) } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
virtus-0.0.5 | spec/unit/shared/attribute/complex.rb |
virtus-0.0.4 | spec/unit/shared/attribute/complex.rb |