Remove submission_limit validation for submission_text
This commit is contained in:
parent
2d1246448c
commit
8242eb3338
2 changed files with 1 additions and 15 deletions
|
|
@ -68,7 +68,7 @@
|
||||||
= event_type.name
|
= event_type.name
|
||||||
Instructions
|
Instructions
|
||||||
%p Please use this as the template for your submission.
|
%p Please use this as the template for your submission.
|
||||||
This part of the submissions is intended only for the conference committee.
|
This part of the submission is intended only for the conference committee.
|
||||||
%hr
|
%hr
|
||||||
= markdown(event_type.submission_instructions)
|
= markdown(event_type.submission_instructions)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -117,20 +117,6 @@ describe Event do
|
||||||
event.event_type.minimum_abstract_length = 2
|
event.event_type.minimum_abstract_length = 2
|
||||||
end
|
end
|
||||||
|
|
||||||
context 'is invalid' do
|
|
||||||
it 'when submission text is too long' do
|
|
||||||
event.submission_text = 'four too many words'
|
|
||||||
expect(event.valid?).to eq false
|
|
||||||
expect(event.errors[:submission_text]).to eq ['cannot have more than 3 words']
|
|
||||||
end
|
|
||||||
|
|
||||||
it 'when submission text is too short' do
|
|
||||||
event.submission_text = 'word'
|
|
||||||
expect(event.valid?).to eq false
|
|
||||||
expect(event.errors[:submission_text]).to eq ['cannot have less than 2 words']
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
context 'is valid' do
|
context 'is valid' do
|
||||||
it 'when submission text is within limts' do
|
it 'when submission text is within limts' do
|
||||||
event.abstract = 'the magic three'
|
event.abstract = 'the magic three'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue