Several schedules in the backend && routes changed

- Introduce plural resources for Schedule in routes.rb
- Introduce #index and #create actions for ScheduleController
- Make it possible to set a schedule as selected_schedule
This commit is contained in:
Ana 2016-07-29 01:05:15 +02:00
parent 3897ec79ca
commit 42848f929b
8 changed files with 90 additions and 36 deletions

View file

@ -69,8 +69,8 @@ feature 'Has correct abilities' do
visit admin_conference_program_events_path(conference1.short_title)
expect(current_path).to eq(admin_conference_program_events_path(conference1.short_title))
visit admin_conference_schedule_path(conference1.short_title)
expect(current_path).to eq(admin_conference_schedule_path(conference1.short_title))
visit admin_conference_schedule_index_path(conference1.short_title)
expect(current_path).to eq(admin_conference_schedule_index_path(conference1.short_title))
visit admin_conference_campaigns_path(conference1.short_title)
expect(current_path).to eq(admin_conference_campaigns_path(conference1.short_title))
@ -147,8 +147,8 @@ feature 'Has correct abilities' do
visit admin_conference_program_events_path(conference2.short_title)
expect(current_path).to eq(admin_conference_program_events_path(conference2.short_title))
visit admin_conference_schedule_path(conference2.short_title)
expect(current_path).to eq(admin_conference_schedule_path(conference2.short_title))
visit admin_conference_schedule_index_path(conference2.short_title)
expect(current_path).to eq(root_path)
visit admin_conference_campaigns_path(conference2.short_title)
expect(current_path).to eq(root_path)
@ -221,7 +221,7 @@ feature 'Has correct abilities' do
visit admin_conference_program_events_path(conference3.short_title)
expect(current_path).to eq(root_path)
visit admin_conference_schedule_path(conference3.short_title)
visit admin_conference_schedule_index_path(conference3.short_title)
expect(current_path).to eq(root_path)
visit admin_conference_campaigns_path(conference3.short_title)