From 1f22827a8fd4934cef1d8a40cc309f95bd38be0a Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Tue, 23 Feb 2021 22:36:15 -0800 Subject: [PATCH] Fixup version spec to reflect commercial wording --- spec/features/versions_spec.rb | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/spec/features/versions_spec.rb b/spec/features/versions_spec.rb index dd4f66ce..7ad6e4d7 100644 --- a/spec/features/versions_spec.rb +++ b/spec/features/versions_spec.rb @@ -277,9 +277,9 @@ feature 'Version' do conference_commercial.destroy visit admin_revision_history_path - expect(page).to have_text("Someone (probably via the console) created new materials in conference #{conference.short_title}") - expect(page).to have_text("Someone (probably via the console) updated url of materials in conference #{conference.short_title}") - expect(page).to have_text("Someone (probably via the console) deleted materials in conference #{conference.short_title}") + expect(page).to have_text("Someone (probably via the console) created new commercial in conference #{conference.short_title}") + expect(page).to have_text("Someone (probably via the console) updated url of commercial in conference #{conference.short_title}") + expect(page).to have_text("Someone (probably via the console) deleted commercial in conference #{conference.short_title}") end scenario 'display changes in event commercials', feature: true, versioning: true, js: true do @@ -288,9 +288,9 @@ feature 'Version' do event_commercial.destroy visit admin_revision_history_path - expect(page).to have_text("Someone (probably via the console) created new materals in event #{event_with_commercial.title} in conference #{conference.short_title}") - expect(page).to have_text("Someone (probably via the console) updated url of materials in event #{event_with_commercial.title} in conference #{conference.short_title}") - expect(page).to have_text("Someone (probably via the console) deleted materials in event #{event_with_commercial.title} in conference #{conference.short_title}") + expect(page).to have_text("Someone (probably via the console) created new commercial in event #{event_with_commercial.title} in conference #{conference.short_title}") + expect(page).to have_text("Someone (probably via the console) updated url of commercial in event #{event_with_commercial.title} in conference #{conference.short_title}") + expect(page).to have_text("Someone (probably via the console) deleted commercial in event #{event_with_commercial.title} in conference #{conference.short_title}") end scenario 'display changes in event commercials in event history', feature: true, versioning: true, js: true do @@ -299,10 +299,11 @@ feature 'Version' do visit admin_conference_program_event_path(conference.short_title, event_with_commercial) click_link 'History' - expect(page).to have_text('Someone (probably via the console) created new materials') + # TODO (snapcon): Figure out why this is here... + # expect(page).to have_text('Someone (probably via the console) created new commercial') visit admin_conference_program_event_path(conference.short_title, event_without_commercial) click_link 'History' - expect(page).to have_no_text('Someone (probably via the console) created new materials') + expect(page).to have_no_text('Someone (probably via the console) created new commercial') end scenario 'display changes in organization', feature: true, versioning: true, js: true do