verify user if accessing admin area. Testing: setup organizer_conference_1_role

This commit is contained in:
Stella Rouzi 2014-07-18 20:49:50 +03:00
parent ab17e6db11
commit 940f76bf13
22 changed files with 91 additions and 62 deletions

View file

@ -4,7 +4,7 @@ feature Conference do
# It is necessary to use bang version of let to build roles before user
let!(:participant_role) { create(:participant_role) }
let!(:organizer_role) { create(:organizer_role) }
let!(:organizer_conference_1_role) { create(:organizer_conference_1_role) }
shared_examples 'add and update cfp' do |user|
scenario 'adds a new cfp', feature: true, js: true do
@ -87,6 +87,6 @@ feature Conference do
end
describe 'organizer' do
it_behaves_like 'add and update cfp', :organizer
it_behaves_like 'add and update cfp', :organizer_conference_1
end
end