From 8242eb333877dc5493e0112e2bc0ea3f959eec92 Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Mon, 8 Mar 2021 02:18:44 -0800 Subject: [PATCH] Remove submission_limit validation for submission_text --- app/views/proposals/new.html.haml | 2 +- spec/models/event_spec.rb | 14 -------------- 2 files changed, 1 insertion(+), 15 deletions(-) diff --git a/app/views/proposals/new.html.haml b/app/views/proposals/new.html.haml index 41969acc..2d4f200a 100644 --- a/app/views/proposals/new.html.haml +++ b/app/views/proposals/new.html.haml @@ -68,7 +68,7 @@ = event_type.name Instructions %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 = markdown(event_type.submission_instructions) diff --git a/spec/models/event_spec.rb b/spec/models/event_spec.rb index e2c6f584..030ad382 100644 --- a/spec/models/event_spec.rb +++ b/spec/models/event_spec.rb @@ -117,20 +117,6 @@ describe Event do event.event_type.minimum_abstract_length = 2 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 it 'when submission text is within limts' do event.abstract = 'the magic three'