diff options
| author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-10-18 11:14:10 +0200 |
|---|---|---|
| committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-10-18 11:17:42 +0200 |
| commit | e0830a748a9efe817bcc48f7d0bf7fc5282f58ea (patch) | |
| tree | c67098e797e260b283c42888e22936cd6f8e0d67 /spec/lib | |
| parent | 2243f0e3deaf0c9557fdc971e566b5606e9e9c52 (diff) | |
| download | gitlab-ce-e0830a748a9efe817bcc48f7d0bf7fc5282f58ea.tar.gz | |
Extract method that fetchesremote CI/CD included config
Diffstat (limited to 'spec/lib')
| -rw-r--r-- | spec/lib/gitlab/ci/config/external/processor_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/ci/config/external/processor_spec.rb b/spec/lib/gitlab/ci/config/external/processor_spec.rb index 0196e11628d..ede6e769cfe 100644 --- a/spec/lib/gitlab/ci/config/external/processor_spec.rb +++ b/spec/lib/gitlab/ci/config/external/processor_spec.rb @@ -20,7 +20,7 @@ describe Gitlab::Ci::Config::External::Processor do it 'should raise an error' do expect { processor.perform }.to raise_error( - described_class::FileError, + described_class::IncludeError, "Local file '/lib/gitlab/ci/templates/non-existent-file.yml' is not valid." ) end @@ -36,7 +36,7 @@ describe Gitlab::Ci::Config::External::Processor do it 'should raise an error' do expect { processor.perform }.to raise_error( - described_class::FileError, + described_class::IncludeError, "Remote file '#{remote_file}' is not valid." ) end |
