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
70ba12d1
Commit
70ba12d1
authored
Mar 22, 2022
by
Peter Leitzen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mirror intent in example name
parent
ec24e644
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
spec/requests/api/users_spec.rb
spec/requests/api/users_spec.rb
+2
-2
No files found.
spec/requests/api/users_spec.rb
View file @
70ba12d1
...
@@ -83,7 +83,7 @@ RSpec.describe API::Users do
...
@@ -83,7 +83,7 @@ RSpec.describe API::Users do
describe
'GET /users/'
do
describe
'GET /users/'
do
context
'when unauthenticated'
do
context
'when unauthenticated'
do
it
"does not contain
the note of user
s"
do
it
"does not contain
certain field
s"
do
get
api
(
"/users"
),
params:
{
username:
user
.
username
}
get
api
(
"/users"
),
params:
{
username:
user
.
username
}
expect
(
json_response
.
first
).
not_to
have_key
(
'note'
)
expect
(
json_response
.
first
).
not_to
have_key
(
'note'
)
...
@@ -93,7 +93,7 @@ RSpec.describe API::Users do
...
@@ -93,7 +93,7 @@ RSpec.describe API::Users do
context
'when authenticated'
do
context
'when authenticated'
do
context
'as a regular user'
do
context
'as a regular user'
do
it
'does not contain
the note of user
s'
do
it
'does not contain
certain field
s'
do
get
api
(
"/users"
,
user
),
params:
{
username:
user
.
username
}
get
api
(
"/users"
,
user
),
params:
{
username:
user
.
username
}
expect
(
json_response
.
first
).
not_to
have_key
(
'note'
)
expect
(
json_response
.
first
).
not_to
have_key
(
'note'
)
...
...
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