implements adding the proposal by admin users

This commit is contained in:
Eugene Dubinin 2017-01-19 17:05:25 +02:00
parent 2a0e1b5dea
commit b86c03f898
8 changed files with 287 additions and 4 deletions

View file

@ -0,0 +1,15 @@
require 'spec_helper'
describe 'admin/conferences/events/new' do
it 'renders the new event template' do
@conference = create(:conference)
@user = create(:user)
@program = @conference.program
@event = build(:event, program: @conference.program)
@event_type = create(:event_type, program: @program)
@url = admin_conference_program_events_path(@conference.short_title, @event)
@users = User.all
render template: 'admin/events/_form.html.haml'
expect(rendered).to include('New Event')
end
end