Sha256: b016510f65ae040af4577e8b96f3e1d24f40d7b8fd8b61950f47d40474c4d825
Contents?: true
Size: 545 Bytes
Versions: 1
Compression:
Stored size: 545 Bytes
Contents
require 'spec_helper' describe Identity do it { is_expected.to be_a_kind_of Persona::Identity } it { is_expected.to belong_to(:individual) } it { is_expected.to belong_to(:state) } it 'should allow past dates for issue' do expect(subject).to allow_value(Date.yesterday).for(:issue) end it 'should not allow today for issue' do expect(subject).to_not allow_value(Date.current).for(:issue) end it 'should not allow future dates for issue' do expect(subject).to_not allow_value(Date.tomorrow).for(:issue) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
unico-training-7.8.0 | spec/models/identity_spec.rb |