Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d66025dc
Commit
d66025dc
authored
Oct 22, 2019
by
allison.browne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix specs update issue specs
parent
6e7946b8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
app/services/issues/update_service.rb
app/services/issues/update_service.rb
+2
-1
app/services/zoom_notes_service.rb
app/services/zoom_notes_service.rb
+1
-1
spec/services/zoom_notes_service_spec.rb
spec/services/zoom_notes_service_spec.rb
+1
-1
No files found.
app/services/issues/update_service.rb
View file @
d66025dc
...
...
@@ -62,7 +62,8 @@ module Issues
notification_service
.
async
.
new_mentions_in_issue
(
issue
,
added_mentions
,
current_user
)
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
def
handle_task_changes
(
issuable
)
...
...
app/services/zoom_notes_service.rb
View file @
d66025dc
# frozen_string_literal: true
class
ZoomNotesService
def
initialize
(
issue
,
project
,
current_user
,
old_zoom_meetings
:
nil
)
def
initialize
(
issue
,
project
,
current_user
,
old_zoom_meetings
)
@issue
=
issue
@project
=
project
@current_user
=
current_user
...
...
spec/services/zoom_notes_service_spec.rb
View file @
d66025dc
...
...
@@ -12,7 +12,7 @@ describe ZoomNotesService do
let
(
:old_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
it
"doesn't create notifications"
do
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment