Commit 1c36766f authored by Kamil Trzciński's avatar Kamil Trzciński
Browse files

Update style of yaml_processor_spec.rb

parent 66d41d2c
......@@ -1394,11 +1394,15 @@ EOT
describe "Error handling" do
it "fails to parse YAML" do
expect {"invalid: yaml: test")}.to raise_error(Gitlab::Ci::YamlProcessor::ValidationError)
expect do"invalid: yaml: test") raise_error(Gitlab::Ci::YamlProcessor::ValidationError)
it "indicates that object is invalid" do
expect {"invalid_yaml")}.to raise_error(Gitlab::Ci::YamlProcessor::ValidationError)
expect do"invalid_yaml") raise_error(Gitlab::Ci::YamlProcessor::ValidationError)
it "returns errors if tags parameter is invalid" do
......@@ -1704,6 +1708,7 @@ EOT
context "when YAML content is empty" do
let(:content) { '' }
it { eq "Please provide content of .gitlab-ci.yml" }
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