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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
a91899be
Commit
a91899be
authored
Oct 22, 2018
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve specs for abstract remote `include` file
parent
e26a30e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
spec/lib/gitlab/ci/config/external/file/base_spec.rb
spec/lib/gitlab/ci/config/external/file/base_spec.rb
+4
-4
No files found.
spec/lib/gitlab/ci/config/external/file/base_spec.rb
View file @
a91899be
...
@@ -11,25 +11,25 @@ describe Gitlab::Ci::Config::External::File::Base do
...
@@ -11,25 +11,25 @@ describe Gitlab::Ci::Config::External::File::Base do
end
end
describe
'#valid?'
do
describe
'#valid?'
do
context
'when location is not a YAML file
by extension
'
do
context
'when location is not a YAML file'
do
let
(
:location
)
{
'some/file.txt'
}
let
(
:location
)
{
'some/file.txt'
}
it
{
is_expected
.
not_to
be_valid
}
it
{
is_expected
.
not_to
be_valid
}
end
end
context
'when location
is not an invalid YAML extension
'
do
context
'when location
has not a valid naming scheme
'
do
let
(
:location
)
{
'some/file/.yml'
}
let
(
:location
)
{
'some/file/.yml'
}
it
{
is_expected
.
not_to
be_valid
}
it
{
is_expected
.
not_to
be_valid
}
end
end
context
'when location is
not an valid YAML
extension'
do
context
'when location is
a valid .yml
extension'
do
let
(
:location
)
{
'some/file/config.yml'
}
let
(
:location
)
{
'some/file/config.yml'
}
it
{
is_expected
.
to
be_valid
}
it
{
is_expected
.
to
be_valid
}
end
end
context
'when location is
not an valid YAML
extension'
do
context
'when location is
a valid .yaml
extension'
do
let
(
:location
)
{
'some/file/config.yaml'
}
let
(
:location
)
{
'some/file/config.yaml'
}
it
{
is_expected
.
to
be_valid
}
it
{
is_expected
.
to
be_valid
}
...
...
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