diff --git a/app/views/admin/commercials/index.html.haml b/app/views/admin/commercials/index.html.haml index 2b91c1a6..d318707c 100644 --- a/app/views/admin/commercials/index.html.haml +++ b/app/views/admin/commercials/index.html.haml @@ -1,7 +1,7 @@ .row .col-md-12 .page-header - %h1 Session Materials + %h1 #{@conference.title} Materials %p.text-muted Conference materials will be displayed on the events in the = link_to 'schedule,', conference_schedule_path(@conference.short_title) diff --git a/spec/features/commercials_spec.rb b/spec/features/commercials_spec.rb index d6fc7f38..c9b30a6e 100644 --- a/spec/features/commercials_spec.rb +++ b/spec/features/commercials_spec.rb @@ -10,11 +10,18 @@ feature Commercial do let!(:participant) { create(:user) } context 'in admin area' do - scenario 'adds, updates, deletes of a conference', feature: true, js: true do + + before do sign_in organizer - visit admin_conference_commercials_path(conference.short_title) + end + scenario 'contains the conference name in the title', feature: true, js: true do + header = conference.title + ' Materials' + expect(page).to have_content(header) + end + + scenario 'adds, updates, deletes of a conference', feature: true, js: true do # Create valid commercial fill_in 'commercial_url', with: 'https://www.youtube.com/watch?v=M9bq_alk-sw' click_button 'Save Materials'