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
96ef1f01
Commit
96ef1f01
authored
Apr 21, 2021
by
Vitali Tatarintev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace let with let_it_be
parent
f6f3d8b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
spec/controllers/projects/settings/ci_cd_controller_spec.rb
spec/controllers/projects/settings/ci_cd_controller_spec.rb
+6
-6
No files found.
spec/controllers/projects/settings/ci_cd_controller_spec.rb
View file @
96ef1f01
...
...
@@ -14,9 +14,9 @@ RSpec.describe Projects::Settings::CiCdController do
end
describe
'GET show'
do
let
(
:parent_group
)
{
create
(
:group
)
}
let
(
:group
)
{
create
(
:group
,
parent:
parent_group
)
}
let
(
:other_project
)
{
create
(
:project
,
group:
group
)
}
let
_it_be
(
:parent_group
)
{
create
(
:group
)
}
let
_it_be
(
:group
)
{
create
(
:group
,
parent:
parent_group
)
}
let
_it_be
(
:other_project
)
{
create
(
:project
,
group:
group
)
}
it
'renders show with 200 status code'
do
get
:show
,
params:
{
namespace_id:
project
.
namespace
,
project_id:
project
}
...
...
@@ -26,9 +26,9 @@ RSpec.describe Projects::Settings::CiCdController do
end
context
'with group runners'
do
let
(
:group_runner
)
{
create
(
:ci_runner
,
:group
,
groups:
[
group
])
}
let
!
(
:project_runner
)
{
create
(
:ci_runner
,
:project
,
projects:
[
other_project
])
}
let
!
(
:shared_runner
)
{
create
(
:ci_runner
,
:instance
)
}
let
_it_be
(
:group_runner
)
{
create
(
:ci_runner
,
:group
,
groups:
[
group
])
}
let
_it_be
(
:project_runner
)
{
create
(
:ci_runner
,
:project
,
projects:
[
other_project
])
}
let
_it_be
(
:shared_runner
)
{
create
(
:ci_runner
,
:instance
)
}
it
'sets assignable project runners only'
do
group
.
add_maintainer
(
user
)
...
...
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