hounci fixes
This commit is contained in:
parent
87cd074e3c
commit
b27a42a671
1 changed files with 5 additions and 0 deletions
|
|
@ -7,6 +7,7 @@ feature Conference do
|
||||||
let!(:admin_role) { create(:admin_role) }
|
let!(:admin_role) { create(:admin_role) }
|
||||||
let(:admin) { create(:admin) }
|
let(:admin) { create(:admin) }
|
||||||
let(:conference) { create(:conference) }
|
let(:conference) { create(:conference) }
|
||||||
|
|
||||||
shared_examples 'volunteer' do |user|
|
shared_examples 'volunteer' do |user|
|
||||||
scenario 'adds and updates vdays', feature: true, js: true do
|
scenario 'adds and updates vdays', feature: true, js: true do
|
||||||
sign_in(admin)
|
sign_in(admin)
|
||||||
|
|
@ -56,6 +57,7 @@ feature Conference do
|
||||||
sign_in(admin)
|
sign_in(admin)
|
||||||
visit admin_conference_volunteers_info_path(
|
visit admin_conference_volunteers_info_path(
|
||||||
conference_id: conference.short_title)
|
conference_id: conference.short_title)
|
||||||
|
|
||||||
# Adding vday
|
# Adding vday
|
||||||
check('Enable Volunteering')
|
check('Enable Volunteering')
|
||||||
check('Use vdays')
|
check('Use vdays')
|
||||||
|
|
@ -76,6 +78,7 @@ feature Conference do
|
||||||
click_button 'Update Conference'
|
click_button 'Update Conference'
|
||||||
expect(flash).
|
expect(flash).
|
||||||
to eq('Volunteering options were successfully updated.')
|
to eq('Volunteering options were successfully updated.')
|
||||||
|
|
||||||
# Add vposition
|
# Add vposition
|
||||||
check('Use vpositions')
|
check('Use vpositions')
|
||||||
click_link 'Add vposition'
|
click_link 'Add vposition'
|
||||||
|
|
@ -114,9 +117,11 @@ feature Conference do
|
||||||
sign_out
|
sign_out
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
describe 'admin' do
|
describe 'admin' do
|
||||||
it_behaves_like 'volunteer', :admin
|
it_behaves_like 'volunteer', :admin
|
||||||
end
|
end
|
||||||
|
|
||||||
describe 'organizer' do
|
describe 'organizer' do
|
||||||
it_behaves_like 'volunteer', :organizer
|
it_behaves_like 'volunteer', :organizer
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue