From a91899be10aa0808171185ba5377d243e4716efe Mon Sep 17 00:00:00 2001 From: Grzegorz Bizon Date: Mon, 22 Oct 2018 12:00:11 +0200 Subject: Improve specs for abstract remote `include` file --- spec/lib/gitlab/ci/config/external/file/base_spec.rb | 8 ++++---- 1 file 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 } -- cgit v1.2.1