mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Merge pull request #2624 from differentreality/proposal_form_cfp_existence
Check CfP existence in proposal form
This commit is contained in:
commit
c7660d2201
2 changed files with 12 additions and 1 deletions
|
|
@ -43,7 +43,7 @@
|
||||||
250
|
250
|
||||||
words.
|
words.
|
||||||
|
|
||||||
- if current_user.is_admin? or @program.cfp.enable_registrations?
|
- if current_user.is_admin? or @program.cfp&.enable_registrations?
|
||||||
= f.inputs 'Enable pre-registration' do
|
= f.inputs 'Enable pre-registration' do
|
||||||
= f.input :require_registration, label: 'Require participants to register to your event'
|
= f.input :require_registration, label: 'Require participants to register to your event'
|
||||||
- message = @event.room ? "Value must be between 1 and #{@event.room.size}" : 'Check room capacity after scheduling.'
|
- message = @event.room ? "Value must be between 1 and #{@event.room.size}" : 'Check room capacity after scheduling.'
|
||||||
|
|
|
||||||
|
|
@ -91,6 +91,17 @@ feature Event do
|
||||||
expect(User.count).to eq(expected_count_user)
|
expect(User.count).to eq(expected_count_user)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
scenario 'edit proposal without cfp' do
|
||||||
|
conference = create(:conference)
|
||||||
|
proposal = create(:event, program: conference.program)
|
||||||
|
|
||||||
|
sign_in proposal.submitter
|
||||||
|
|
||||||
|
visit edit_conference_program_proposal_path(proposal.program.conference.short_title, proposal)
|
||||||
|
|
||||||
|
expect(page).to have_content 'Proposal Information'
|
||||||
|
end
|
||||||
|
|
||||||
scenario 'update a proposal' do
|
scenario 'update a proposal' do
|
||||||
conference = create(:conference)
|
conference = create(:conference)
|
||||||
create(:cfp, program: conference.program)
|
create(:cfp, program: conference.program)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue