summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2019-04-05 20:05:22 +0700
committerShinya Maeda <shinya@gitlab.com>2019-04-05 20:05:22 +0700
commit33edab1b60dbd6792e7d95c9ecccda4c0015c72c (patch)
tree7731f41dee51c5c6d3d48bd99a96118269ec2362
parent7a48a06cf3b454021aa466464686fee8c82d6862 (diff)
downloadgitlab-ce-fix-yaml-processor-spec.tar.gz
Fix yaml Processor specfix-yaml-processor-spec
-rw-r--r--spec/lib/gitlab/ci/yaml_processor_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/ci/yaml_processor_spec.rb b/spec/lib/gitlab/ci/yaml_processor_spec.rb
index 2bea17ed030..66ab41a7a6a 100644
--- a/spec/lib/gitlab/ci/yaml_processor_spec.rb
+++ b/spec/lib/gitlab/ci/yaml_processor_spec.rb
@@ -618,8 +618,8 @@ module Gitlab
context "when a single string is provided" do
let(:include_content) { "/local.gitlab-ci.yml" }
- it "does not return any error" do
- expect { subject }.not_to raise_error
+ it "returns a validation error" do
+ expect { subject }.to raise_error(Gitlab::Ci::YamlProcessor::ValidationError, /does not have project/)
end
end