Implements event submissions over time chart

This commit is contained in:
Chrisbr 2014-05-30 10:10:47 +02:00
parent b6538cddb2
commit 40c61ed717
12 changed files with 215 additions and 9 deletions

View file

@ -147,11 +147,22 @@ describe Admin::ConferenceController do
describe 'GET #index' do
context 'with more than 0 conferences' do
it 'populates an array with conferences' do
conference
con2 = create(:conference)
get :index
expect(assigns(:conferences)).to match_array([conference, con2])
end
it 'assigns cfp_max an array with maximum weeks' do
conference
date = Date.new(2014, 05, 28)
conference.call_for_papers = create(:call_for_papers,
start_date: date,
end_date: date + 14)
get :index
expect(assigns(:weeks)).to match_array([1, 2])
end
it 'renders the index template' do
conference
get :index