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
2d5ada59
Commit
2d5ada59
authored
Jul 25, 2019
by
Alex Kalderimis
Committed by
Grzegorz Bizon
Jul 25, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ensure TO-DO's are applied to comments on designs
parent
2a4454a8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
ee/spec/services/todo_service_spec.rb
ee/spec/services/todo_service_spec.rb
+28
-0
No files found.
ee/spec/services/todo_service_spec.rb
View file @
2d5ada59
...
@@ -303,6 +303,34 @@ describe TodoService do
...
@@ -303,6 +303,34 @@ describe TodoService do
end
end
end
end
describe
'Designs'
do
let
(
:project
)
{
create
(
:project
)
}
let
(
:issue
)
{
create
(
:issue
,
project:
project
)
}
let
(
:design
)
{
create
(
:design
,
issue:
issue
)
}
before
do
project
.
add_guest
(
author
)
project
.
add_developer
(
john_doe
)
end
let
(
:note
)
do
build
(
:diff_note_on_design
,
project:
project
,
noteable:
design
,
author:
author
,
note:
"Hey
#{
john_doe
.
to_reference
}
"
)
end
it
'creates a todo for mentioned user on new diff note'
do
service
.
new_note
(
note
,
author
)
should_create_todo
(
user:
john_doe
,
target:
design
,
action:
Todo
::
MENTIONED
,
note:
note
)
end
end
def
should_create_todo
(
attributes
=
{})
def
should_create_todo
(
attributes
=
{})
attributes
.
reverse_merge!
(
attributes
.
reverse_merge!
(
project:
project
,
project:
project
,
...
...
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