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
5d2d2789
Commit
5d2d2789
authored
May 25, 2018
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify users API QA spec
parent
b0777168
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
qa/qa/specs/features/api/users_spec.rb
qa/qa/specs/features/api/users_spec.rb
+4
-5
No files found.
qa/qa/specs/features/api/users_spec.rb
View file @
5d2d2789
...
@@ -17,17 +17,16 @@ module QA
...
@@ -17,17 +17,16 @@ module QA
get
request
.
url
,
{
params:
{
username:
Runtime
::
User
.
name
}
}
get
request
.
url
,
{
params:
{
username:
Runtime
::
User
.
name
}
}
expect_status
(
200
)
expect_status
(
200
)
expect
(
json_body
).
to
be_an
Array
expect
(
json_body
).
to
contain_exactly
(
expect
(
json_body
.
size
).
to
eq
(
1
)
a_hash_including
(
username:
Runtime
::
User
.
name
)
expect
(
json_body
.
first
[
:username
]).
to
eq
Runtime
::
User
.
name
)
end
end
scenario
'submit request with an invalid user name'
do
scenario
'submit request with an invalid user name'
do
get
request
.
url
,
{
params:
{
username:
SecureRandom
.
hex
(
10
)
}
}
get
request
.
url
,
{
params:
{
username:
SecureRandom
.
hex
(
10
)
}
}
expect_status
(
200
)
expect_status
(
200
)
expect
(
json_body
).
to
be_an
Array
expect
(
json_body
).
to
eq
([])
expect
(
json_body
.
size
).
to
eq
(
0
)
end
end
end
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