mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
refactoring setup_roles and updated tests
This commit is contained in:
parent
86c188a38a
commit
84843ade48
5 changed files with 27 additions and 14 deletions
|
|
@ -52,6 +52,11 @@ describe Conference do
|
|||
|
||||
describe '#user_registered?' do
|
||||
|
||||
# It is necessary to use bang version of let to build roles before user
|
||||
let!(:organizer_role) { create(:organizer_role) }
|
||||
let!(:participant_role) { create(:participant_role) }
|
||||
let!(:admin_role) { create(:admin_role) }
|
||||
|
||||
let(:user) { create(:user) }
|
||||
|
||||
context 'user not registered' do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue