Unverified Commit e5d491d1 authored by Paul B's avatar Paul B
Browse files

tests: adding a failing unit test

parent cd1a907b
...@@ -602,6 +602,15 @@ module Gitlab ...@@ -602,6 +602,15 @@ module Gitlab
end end
end end
describe "Include" do
it "does not return any error with a valid configuration" do
config = YAML.dump({ include: "/local.gitlab-ci.yml" })
expect do
end.not_to raise_error(Gitlab::Ci::YamlProcessor::ValidationError)
describe "When" do describe "When" do
%w(on_success on_failure always).each do |when_state| %w(on_success on_failure always).each do |when_state|
it "returns #{when_state} when defined" do it "returns #{when_state} when defined" do
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment