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
0
Merge Requests
0
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
iv
gitlab-ce
Commits
5417fbfe
Commit
5417fbfe
authored
Feb 14, 2013
by
Sebastian Ziebell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test to check 404 error when project id not found
parent
12a1f73b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
spec/requests/api/projects_spec.rb
spec/requests/api/projects_spec.rb
+5
-0
No files found.
spec/requests/api/projects_spec.rb
View file @
5417fbfe
...
@@ -195,6 +195,11 @@ describe Gitlab::API do
...
@@ -195,6 +195,11 @@ describe Gitlab::API do
json_response
.
count
.
should
==
1
json_response
.
count
.
should
==
1
json_response
.
first
[
'email'
].
should
==
user
.
email
json_response
.
first
[
'email'
].
should
==
user
.
email
end
end
it
"should return a 404 error if id not found"
do
get
api
(
"/projects/9999/members"
,
user
)
response
.
status
.
should
==
404
end
end
end
describe
"GET /projects/:id/members/:user_id"
do
describe
"GET /projects/:id/members/:user_id"
do
...
...
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