rubocop fixes

This commit is contained in:
rajavi-mishra 2021-04-29 13:54:35 -07:00 committed by CactusPuppy
parent 6e4ec14b83
commit 188c7fe2fc
No known key found for this signature in database
GPG key ID: 4B33B0A3E15E2C82

View file

@ -214,7 +214,7 @@ feature Event do
end
context 'as a user, looking at a conference with scheduled events' do, feature: true
context 'as a user, looking at a conference with scheduled events' do
before(:each) do
@program = conference.program
@selected_schedule = create(:schedule, program: @program)
@ -223,13 +223,13 @@ feature Event do
@event_schedule1 = create(:event_schedule, event: @scheduled_event1, schedule: @selected_schedule, start_time: conference.start_hour + 1.hour)
end
scenario 'for a scheduled event, can add an event to google calendar if signed in', feature: true, js: true do
scenario 'for a scheduled event, can add an event to google calendar if signed in', feature: true do
sign_in participant
visit conference_program_proposal_path(conference.short_title, @scheduled_event1.id)
expect(page).to have_content('Add to Google Calendar (beta)')
end
scenario 'for a scheduled event, cannot add an event to google calendar if not signed on', feature: true, js: true do
scenario 'for a scheduled event, cannot add an event to google calendar if not signed on', feature: true do
visit conference_program_proposal_path(conference.short_title, @scheduled_event1.id)
expect(page).not_to have_content('Add to Google Calendar (beta)')