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

Update style of yaml_processor_spec.rb

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