summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-09-04 17:56:49 +0900
committerShinya Maeda <shinya@gitlab.com>2017-12-06 15:53:59 +0900
commit6e343b27bfb993b2c19dd4b4fd8d2b48747fbac3 (patch)
treec44165535bd71c1017f610186105293fba413022 /spec
parent8917726bb5e6746750129c0d9322c2daa7f88172 (diff)
downloadgitlab-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.rb5
-rw-r--r--spec/models/ci/build_spec.rb2
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