diff options
author | Shinya Maeda <shinya@gitlab.com> | 2017-09-04 17:56:49 +0900 |
---|---|---|
committer | Shinya Maeda <shinya@gitlab.com> | 2017-12-06 15:53:59 +0900 |
commit | 6e343b27bfb993b2c19dd4b4fd8d2b48747fbac3 (patch) | |
tree | c44165535bd71c1017f610186105293fba413022 /spec | |
parent | 8917726bb5e6746750129c0d9322c2daa7f88172 (diff) | |
download | gitlab-ce-6e343b27bfb993b2c19dd4b4fd8d2b48747fbac3.tar.gz |
Use Class.new(StandardError) instead of custom extended error class. Bring back specified_dependencies?.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/ci/error/missing_dependencies_spec.rb | 5 | ||||
-rw-r--r-- | spec/models/ci/build_spec.rb | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/spec/lib/gitlab/ci/error/missing_dependencies_spec.rb b/spec/lib/gitlab/ci/error/missing_dependencies_spec.rb deleted file mode 100644 index 039a4776dc3..00000000000 --- a/spec/lib/gitlab/ci/error/missing_dependencies_spec.rb +++ /dev/null @@ -1,5 +0,0 @@ -require 'spec_helper' - -describe Gitlab::Ci::Error::MissingDependencies do - it { expect(described_class).to be < StandardError } -end diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb index 61ac2dd78d1..f8d8b1800b8 100644 --- a/spec/models/ci/build_spec.rb +++ b/spec/models/ci/build_spec.rb @@ -1893,7 +1893,7 @@ describe Ci::Build do end context 'when depended jobs do not exist' do - it { expect { build.run! }.to raise_error(Gitlab::Ci::Error::MissingDependencies) } + it { expect { build.run! }.to raise_error(Ci::Build::MissingDependenciesError) } end end end |