[#1092] fixed
This commit is contained in:
parent
8335aa8b43
commit
693798b3f4
3 changed files with 8 additions and 3 deletions
|
|
@ -21,7 +21,6 @@ describe Event do
|
|||
end
|
||||
|
||||
it { is_expected.to validate_presence_of(:title) }
|
||||
it { is_expected.to validate_presence_of(:abstract) }
|
||||
it { is_expected.to validate_presence_of(:program) }
|
||||
it { is_expected.to validate_presence_of(:event_type) }
|
||||
|
||||
|
|
@ -75,6 +74,13 @@ describe Event do
|
|||
expect(event.valid?).to eq true
|
||||
expect(event.errors.size).to eq 0
|
||||
end
|
||||
|
||||
it 'when abstract is empty and minimum_abstract_length equal to zero' do
|
||||
event.abstract = ''
|
||||
event.event_type.minimum_abstract_length = 0
|
||||
expect(event.valid?).to eq true
|
||||
expect(event.errors.size).to eq 0
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue