Adapt ability to allow proposal creation if cfp is open
This was not possible before when iChain was enabled. - Initialize @event object now with load_and_autorize before filter - Remove not necessary event_users initilization in :new action - Adapt ability and feature tests
This commit is contained in:
parent
65ee166570
commit
406e37a1d8
4 changed files with 16 additions and 24 deletions
|
|
@ -13,6 +13,8 @@ feature Event do
|
|||
@options = {}
|
||||
@options[:send_mail] = 'false'
|
||||
@event = create(:event, program: conference.program, title: 'Example Proposal')
|
||||
@event.event_users.create(user: participant, event_role: 'submitter')
|
||||
@event.event_users.create(user: participant, event_role: 'speaker')
|
||||
end
|
||||
|
||||
after(:each) do
|
||||
|
|
@ -63,10 +65,6 @@ feature Event do
|
|||
context 'as a participant' do
|
||||
before(:each) do
|
||||
@event.accept!(@options)
|
||||
@event.event_users = [create(:event_user,
|
||||
user_id: participant.id,
|
||||
event_id: @event.id,
|
||||
event_role: 'submitter')]
|
||||
end
|
||||
|
||||
scenario 'not signed_in user submits proposal' do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue