Merge pull request #173 from ChrisBr/new_dashboard

Implements event submissions over time chart
This commit is contained in:
Christian Bruckmayer 2014-05-30 10:23:23 +02:00
commit fa129de063
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