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
|
|
@ -39,8 +39,7 @@ feature Conference do
|
|||
|
||||
scenario 'update conference', feature: true, js: true do
|
||||
conference = create(:conference)
|
||||
organizer_role = Role.find_by(name: 'organizer', resource: conference)
|
||||
organizer = create(:user, role_ids: [organizer_role.id])
|
||||
organizer = create(:organizer, resource: conference)
|
||||
|
||||
expected_count = Conference.count
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue