Sha256: 6606a6f10d48f864d56630c12f49b2cf9ae76a887bd1e6865e7873309ba6de70
Contents?: true
Size: 408 Bytes
Versions: 15
Compression:
Stored size: 408 Bytes
Contents
require 'spec_helper' describe Virtus::Attribute, '#required?' do subject { object.required? } let(:object) { described_class.build(String, :required => required) } context 'when required option is true' do let(:required) { true } it { is_expected.to be(true) } end context 'when required option is false' do let(:required) { false } it { is_expected.to be(false) } end end
Version data entries
15 entries across 13 versions & 5 rubygems