From 33edab1b60dbd6792e7d95c9ecccda4c0015c72c Mon Sep 17 00:00:00 2001 From: Shinya Maeda Date: Fri, 5 Apr 2019 20:05:22 +0700 Subject: Fix yaml Processor spec --- spec/lib/gitlab/ci/yaml_processor_spec.rb | 4 ++-- 1 file 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 -- cgit v1.2.1