added conference wide information page and linked to the admin sidebar

This commit is contained in:
AnithaPal 2016-07-06 15:30:39 -04:00
parent 710b4d26a4
commit 35afdcead4
5 changed files with 54 additions and 1 deletions

View file

@ -165,6 +165,18 @@ describe Admin::ConferencesController do
end
end
describe 'GET #conference_wide_screen' do
it 'assigns the requested conference to conference' do
get :show, id: conference.short_title
expect(assigns(:conference)).to eq conference
end
it 'renders the conference_wide_screen page' do
get :conference_wide_screen, id: conference.short_title
expect(response).to render_template :conference_wide_screen
end
end
describe 'GET #index' do
context 'with more than 0 conferences' do
it 'populates an array with conferences' do
@ -280,8 +292,21 @@ describe Admin::ConferencesController do
end
end
end
describe 'GET #conference_wide_screen' do
it 'requires organizer privileges' do
get :conference_wide_screen, id: conference.short_title,
conference: attributes_for(:conference,
short_title: 'ExCon')
expect(response).to redirect_to(send(path))
if message
expect(flash[:alert]).to match(/#{message}/)
end
end
end
end
describe 'participant access' do
before(:each) do
sign_in(participant)