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
11fe44b7
Commit
11fe44b7
authored
Mar 31, 2022
by
Mayra Cabrera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Call local_file.validate on file/local spec
parent
24f0ddb0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
spec/lib/gitlab/ci/config/external/file/local_spec.rb
spec/lib/gitlab/ci/config/external/file/local_spec.rb
+1
-0
No files found.
spec/lib/gitlab/ci/config/external/file/local_spec.rb
View file @
11fe44b7
...
@@ -88,6 +88,7 @@ RSpec.describe Gitlab::Ci::Config::External::File::Local do
...
@@ -88,6 +88,7 @@ RSpec.describe Gitlab::Ci::Config::External::File::Local do
it
'returns false and adds an error message about an empty file'
do
it
'returns false and adds an error message about an empty file'
do
allow_any_instance_of
(
described_class
).
to
receive
(
:fetch_local_content
).
and_return
(
""
)
allow_any_instance_of
(
described_class
).
to
receive
(
:fetch_local_content
).
and_return
(
""
)
local_file
.
validate!
expect
(
local_file
.
errors
).
to
include
(
"Local file `/lib/gitlab/ci/templates/xxxxxx/existent-file.yml` is empty!"
)
expect
(
local_file
.
errors
).
to
include
(
"Local file `/lib/gitlab/ci/templates/xxxxxx/existent-file.yml` is empty!"
)
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