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
3720198d
Commit
3720198d
authored
May 17, 2017
by
Oswaldo Ferreira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust test texts
parent
4d306322
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
spec/services/related_issues/create_service_spec.rb
spec/services/related_issues/create_service_spec.rb
+1
-1
spec/services/related_issues/destroy_service_spec.rb
spec/services/related_issues/destroy_service_spec.rb
+2
-2
No files found.
spec/services/related_issues/create_service_spec.rb
View file @
3720198d
...
...
@@ -72,7 +72,7 @@ describe RelatedIssues::CreateService, service: true do
another_project
.
team
<<
[
user
,
:developer
]
end
it
'create relationships'
do
it
'create
s
relationships'
do
expect
{
subject
}.
to
change
(
RelatedIssue
,
:count
).
from
(
0
).
to
(
2
)
expect
(
RelatedIssue
.
first
).
to
have_attributes
(
issue:
issue
,
related_issue:
issue_a
)
...
...
spec/services/related_issues/destroy_service_spec.rb
View file @
3720198d
...
...
@@ -7,11 +7,11 @@ describe RelatedIssues::DestroyService, service: true do
subject
{
described_class
.
new
(
related_issue
,
user
).
execute
}
it
'remove related issue'
do
it
'remove
s
related issue'
do
expect
{
subject
}.
to
change
(
RelatedIssue
,
:count
).
from
(
1
).
to
(
0
)
end
it
'create notes'
do
it
'create
s
notes'
do
# Two-way notes creation
expect
(
SystemNoteService
).
to
receive
(
:unrelate_issue
)
.
with
(
related_issue
.
issue
,
related_issue
.
related_issue
,
user
)
...
...
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