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
ea843123
Commit
ea843123
authored
Apr 04, 2017
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Multiple issue assignees] Fix spec/services/todo_service_spec.rb
parent
f800e8fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/services/todo_service_spec.rb
spec/services/todo_service_spec.rb
+3
-3
No files found.
spec/services/todo_service_spec.rb
View file @
ea843123
...
@@ -240,20 +240,20 @@ describe TodoService, services: true do
...
@@ -240,20 +240,20 @@ describe TodoService, services: true do
describe
'#reassigned_issue'
do
describe
'#reassigned_issue'
do
it
'creates a pending todo for new assignee'
do
it
'creates a pending todo for new assignee'
do
unassigned_issue
.
update_attribute
(
:assignee
,
john_doe
)
unassigned_issue
.
assignees
<<
john_doe
service
.
reassigned_issue
(
unassigned_issue
,
author
)
service
.
reassigned_issue
(
unassigned_issue
,
author
)
should_create_todo
(
user:
john_doe
,
target:
unassigned_issue
,
action:
Todo
::
ASSIGNED
)
should_create_todo
(
user:
john_doe
,
target:
unassigned_issue
,
action:
Todo
::
ASSIGNED
)
end
end
it
'does not create a todo if unassigned'
do
it
'does not create a todo if unassigned'
do
issue
.
update_attribute
(
:assignee
,
nil
)
issue
.
assignees
.
destroy_all
should_not_create_any_todo
{
service
.
reassigned_issue
(
issue
,
author
)
}
should_not_create_any_todo
{
service
.
reassigned_issue
(
issue
,
author
)
}
end
end
it
'creates a todo if new assignee is the current user'
do
it
'creates a todo if new assignee is the current user'
do
unassigned_issue
.
update_attribute
(
:assignee
,
john_doe
)
unassigned_issue
.
assignees
<<
john_doe
service
.
reassigned_issue
(
unassigned_issue
,
john_doe
)
service
.
reassigned_issue
(
unassigned_issue
,
john_doe
)
should_create_todo
(
user:
john_doe
,
target:
unassigned_issue
,
author:
john_doe
,
action:
Todo
::
ASSIGNED
)
should_create_todo
(
user:
john_doe
,
target:
unassigned_issue
,
author:
john_doe
,
action:
Todo
::
ASSIGNED
)
...
...
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