Create a factory for organizer
Refactor organizer user creation in tests Fixes https://github.com/openSUSE/osem/issues/2398
This commit is contained in:
parent
0197ed3c46
commit
35ec178beb
31 changed files with 48 additions and 68 deletions
|
|
@ -6,8 +6,7 @@ feature Event do
|
|||
let!(:conference) { create(:conference) }
|
||||
let!(:registration_period) { create(:registration_period, conference: conference, start_date: Date.current) }
|
||||
let!(:cfp) { create(:cfp, program_id: conference.program.id) }
|
||||
let!(:organizer_role) { Role.find_by(name: 'organizer', resource: conference) }
|
||||
let!(:organizer) { create(:user, email: 'admin@example.com', role_ids: [organizer_role.id]) }
|
||||
let!(:organizer) { create(:organizer, resource: conference) }
|
||||
let!(:participant) { create(:user) }
|
||||
let!(:participant_without_bio) { create(:user, biography: '') }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue