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
454801b4
Commit
454801b4
authored
Aug 11, 2021
by
drew cimino
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a single repository project and clean up files directly
parent
af218f4d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
spec/lib/gitlab/ci/lint_spec.rb
spec/lib/gitlab/ci/lint_spec.rb
+10
-1
No files found.
spec/lib/gitlab/ci/lint_spec.rb
View file @
454801b4
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
require
'spec_helper'
require
'spec_helper'
RSpec
.
describe
Gitlab
::
Ci
::
Lint
do
RSpec
.
describe
Gitlab
::
Ci
::
Lint
do
let
(
:project
)
{
create
(
:project
,
:repository
)
}
let
_it_be
(
:project
)
{
create
(
:project
,
:repository
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let_it_be
(
:user
)
{
create
(
:user
)
}
let
(
:lint
)
{
described_class
.
new
(
project:
project
,
current_user:
user
)
}
let
(
:lint
)
{
described_class
.
new
(
project:
project
,
current_user:
user
)
}
...
@@ -89,6 +89,15 @@ RSpec.describe Gitlab::Ci::Lint do
...
@@ -89,6 +89,15 @@ RSpec.describe Gitlab::Ci::Lint do
)
)
end
end
after
do
project
.
repository
.
delete_file
(
project
.
creator
,
'another-gitlab-ci.yml'
,
message:
'Remove another-gitlab-ci.yml'
,
branch_name:
'master'
)
end
it
'sets merged_config'
do
it
'sets merged_config'
do
root_config
=
YAML
.
safe_load
(
content
,
[
Symbol
])
root_config
=
YAML
.
safe_load
(
content
,
[
Symbol
])
included_config
=
YAML
.
safe_load
(
included_content
,
[
Symbol
])
included_config
=
YAML
.
safe_load
(
included_content
,
[
Symbol
])
...
...
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