diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-09-05 10:17:13 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-09-05 10:19:35 +0200 |
commit | b83fa58f063b0b086b2c4def68835dbec4fd6bcd (patch) | |
tree | 8f2da6f5e94c7ea8093a025499313832c0457fa3 /spec/lib/gitlab/ci/config/extendable | |
parent | d7133d946c0ecd13a2f5be723ccb541f37b8c1f2 (diff) | |
download | gitlab-ce-b83fa58f063b0b086b2c4def68835dbec4fd6bcd.tar.gz |
Improve extended CI/CD config error messages
Diffstat (limited to 'spec/lib/gitlab/ci/config/extendable')
-rw-r--r-- | spec/lib/gitlab/ci/config/extendable/entry_spec.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/spec/lib/gitlab/ci/config/extendable/entry_spec.rb b/spec/lib/gitlab/ci/config/extendable/entry_spec.rb index 86a3d13ee97..e05bd22ebd0 100644 --- a/spec/lib/gitlab/ci/config/extendable/entry_spec.rb +++ b/spec/lib/gitlab/ci/config/extendable/entry_spec.rb @@ -126,7 +126,8 @@ describe Gitlab::Ci::Config::Extendable::Entry do it 'raises an error' do expect { subject.extend! } - .to raise_error(StandardError, /Invalid base hash/) + .to raise_error(described_class::InvalidExtensionError, + /invalid base hash/) end end @@ -137,7 +138,8 @@ describe Gitlab::Ci::Config::Extendable::Entry do it 'raises an error' do expect { subject.extend! } - .to raise_error(StandardError, /Unknown extends key/) + .to raise_error(described_class::InvalidExtensionError, + /unknown `extends` key/) end end @@ -199,7 +201,7 @@ describe Gitlab::Ci::Config::Extendable::Entry do it 'raises an error' do expect { subject.extend! } .to raise_error(described_class::CircularDependencyError, - /Circular dependency detected/) + /circular dependency detected/) end end |