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
90488d20
Commit
90488d20
authored
Feb 26, 2018
by
Stan Hu
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'sh-fix-issue-43631-ee'
parents
876f7a56
27739503
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
spec/requests/api/issues_spec.rb
spec/requests/api/issues_spec.rb
+2
-2
spec/requests/api/v3/issues_spec.rb
spec/requests/api/v3/issues_spec.rb
+2
-2
No files found.
spec/requests/api/issues_spec.rb
View file @
90488d20
...
...
@@ -1421,7 +1421,7 @@ describe API::Issues do
context
'when source project does not exist'
do
it
'returns 404 when trying to move an issue'
do
post
api
(
"/projects/
12345
/issues/
#{
issue
.
iid
}
/move"
,
user
),
post
api
(
"/projects/
0
/issues/
#{
issue
.
iid
}
/move"
,
user
),
to_project_id:
target_project
.
id
expect
(
response
).
to
have_gitlab_http_status
(
404
)
...
...
@@ -1432,7 +1432,7 @@ describe API::Issues do
context
'when target project does not exist'
do
it
'returns 404 when trying to move an issue'
do
post
api
(
"/projects/
#{
project
.
id
}
/issues/
#{
issue
.
iid
}
/move"
,
user
),
to_project_id:
12345
to_project_id:
0
expect
(
response
).
to
have_gitlab_http_status
(
404
)
end
...
...
spec/requests/api/v3/issues_spec.rb
View file @
90488d20
...
...
@@ -1266,7 +1266,7 @@ describe API::V3::Issues do
context
'when source project does not exist'
do
it
'returns 404 when trying to move an issue'
do
post
v3_api
(
"/projects/
999999
/issues/
#{
issue
.
id
}
/move"
,
user
),
post
v3_api
(
"/projects/
0
/issues/
#{
issue
.
id
}
/move"
,
user
),
to_project_id:
target_project
.
id
expect
(
response
).
to
have_gitlab_http_status
(
404
)
...
...
@@ -1277,7 +1277,7 @@ describe API::V3::Issues do
context
'when target project does not exist'
do
it
'returns 404 when trying to move an issue'
do
post
v3_api
(
"/projects/
#{
project
.
id
}
/issues/
#{
issue
.
id
}
/move"
,
user
),
to_project_id:
999999
to_project_id:
0
expect
(
response
).
to
have_gitlab_http_status
(
404
)
end
...
...
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