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
620946fe
Commit
620946fe
authored
May 19, 2020
by
Rajendra Kadam
Committed by
Peter Leitzen
May 19, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace let! with let_it_be for user api spec
parent
b94dac6a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
changelogs/unreleased/user-api-spec.yml
changelogs/unreleased/user-api-spec.yml
+5
-0
spec/requests/api/users_spec.rb
spec/requests/api/users_spec.rb
+3
-3
No files found.
changelogs/unreleased/user-api-spec.yml
0 → 100644
View file @
620946fe
---
title
:
Replace let! with let_it_be in user api spec
merge_request
:
31901
author
:
Rajendra Kadam
type
:
fixed
spec/requests/api/users_spec.rb
View file @
620946fe
...
...
@@ -734,7 +734,7 @@ describe API::Users, :do_not_mock_admin_mode do
end
describe
"PUT /users/:id"
do
let
!
(
:admin_user
)
{
create
(
:admin
)
}
let
_it_be
(
:admin_user
)
{
create
(
:admin
)
}
it
"returns 200 OK on success"
do
put
api
(
"/users/
#{
user
.
id
}
"
,
admin
),
params:
{
bio:
'new test bio'
}
...
...
@@ -2405,8 +2405,8 @@ describe API::Users, :do_not_mock_admin_mode do
end
context
"user activities"
,
:clean_gitlab_redis_shared_state
do
let
!
(
:old_active_user
)
{
create
(
:user
,
last_activity_on:
Time
.
utc
(
2000
,
1
,
1
))
}
let
!
(
:newly_active_user
)
{
create
(
:user
,
last_activity_on:
2
.
days
.
ago
.
midday
)
}
let
_it_be
(
:old_active_user
)
{
create
(
:user
,
last_activity_on:
Time
.
utc
(
2000
,
1
,
1
))
}
let
_it_be
(
:newly_active_user
)
{
create
(
:user
,
last_activity_on:
2
.
days
.
ago
.
midday
)
}
context
'last activity as normal user'
do
it
'has no permission'
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