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
e737ffc4
Commit
e737ffc4
authored
Jun 13, 2016
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Todo service tests
parent
16970d07
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
spec/services/todo_service_spec.rb
spec/services/todo_service_spec.rb
+16
-0
No files found.
spec/services/todo_service_spec.rb
View file @
e737ffc4
...
...
@@ -220,6 +220,14 @@ describe TodoService, services: true do
should_not_create_any_todo
{
service
.
new_note
(
note_on_project_snippet
,
john_doe
)
}
end
end
describe
'#mark_todo'
do
it
'creates a todo from a issue'
do
service
.
mark_todo
(
unassigned_issue
,
author
)
should_create_todo
(
user:
author
,
target:
unassigned_issue
,
action:
Todo
::
MARKED
)
end
end
end
describe
'Merge Requests'
do
...
...
@@ -351,6 +359,14 @@ describe TodoService, services: true do
expect
(
second_todo
.
reload
).
not_to
be_done
end
end
describe
'#mark_todo'
do
it
'creates a todo from a merge request'
do
service
.
mark_todo
(
mr_unassigned
,
author
)
should_create_todo
(
user:
author
,
target:
mr_unassigned
,
action:
Todo
::
MARKED
)
end
end
end
def
should_create_todo
(
attributes
=
{})
...
...
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