diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-10-22 12:00:11 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-10-22 12:00:11 +0200 |
commit | a91899be10aa0808171185ba5377d243e4716efe (patch) | |
tree | 1273232748e3913ad32c19cc431928c87029e865 | |
parent | e26a30e5cef35b3ba7c920b941498c2ed16c54ee (diff) | |
download | gitlab-ce-a91899be10aa0808171185ba5377d243e4716efe.tar.gz |
Improve specs for abstract remote `include` filefeature/gb/improve-include-config-errors-reporting
-rw-r--r-- | spec/lib/gitlab/ci/config/external/file/base_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/lib/gitlab/ci/config/external/file/base_spec.rb b/spec/lib/gitlab/ci/config/external/file/base_spec.rb index 0aa7996d688..2e92d5204d6 100644 --- a/spec/lib/gitlab/ci/config/external/file/base_spec.rb +++ b/spec/lib/gitlab/ci/config/external/file/base_spec.rb @@ -11,25 +11,25 @@ describe Gitlab::Ci::Config::External::File::Base do end 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' } it { is_expected.not_to be_valid } 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' } it { is_expected.not_to be_valid } 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' } it { is_expected.to be_valid } 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' } it { is_expected.to be_valid } |