Commit d66025dc authored by allison.browne's avatar allison.browne

Fix specs update issue specs

parent 6e7946b8
...@@ -62,7 +62,8 @@ module Issues ...@@ -62,7 +62,8 @@ module Issues
notification_service.async.new_mentions_in_issue(issue, added_mentions, current_user) notification_service.async.new_mentions_in_issue(issue, added_mentions, current_user)
end end
ZoomNotesService.new(issue, project, current_user, old_zoom_meetings: old_associations[:zoom_meetings]).execute old_zoom_meetings = old_associations.fetch(:zoom_meetings, [])
ZoomNotesService.new(issue, project, current_user, old_zoom_meetings).execute
end end
def handle_task_changes(issuable) def handle_task_changes(issuable)
......
# frozen_string_literal: true # frozen_string_literal: true
class ZoomNotesService class ZoomNotesService
def initialize(issue, project, current_user, old_zoom_meetings: nil) def initialize(issue, project, current_user, old_zoom_meetings)
@issue = issue @issue = issue
@project = project @project = project
@current_user = current_user @current_user = current_user
......
...@@ -12,7 +12,7 @@ describe ZoomNotesService do ...@@ -12,7 +12,7 @@ describe ZoomNotesService do
let(:old_zoom_meetings) { [] } let(:old_zoom_meetings) { [] }
let(:zoom_meetings) { [] } let(:zoom_meetings) { [] }
subject { described_class.new(issue, project, user, old_zoom_meetings: old_zoom_meetings) } subject { described_class.new(issue, project, user, old_zoom_meetings) }
shared_examples 'no notifications' do shared_examples 'no notifications' do
it "doesn't create notifications" do it "doesn't create notifications" do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment