diff options
author | Kamil Trzciński <ayufan@ayufan.eu> | 2018-02-07 15:30:08 +0300 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2018-02-07 15:30:08 +0300 |
commit | 1c36766f93180620e4ba4b50bea6908817d01631 (patch) | |
tree | d74a9b1b75dd2f97909f189abf519e131a2df268 /spec | |
parent | 66d41d2c22ca949cb1877818b923109c914dffa9 (diff) |
Update style of yaml_processor_spec.rb
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/ci/yaml_processor_spec.rb | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/spec/lib/gitlab/ci/yaml_processor_spec.rb b/spec/lib/gitlab/ci/yaml_processor_spec.rb index 0f42d0a026b..f83f932e61e 100644 --- a/spec/lib/gitlab/ci/yaml_processor_spec.rb +++ b/spec/lib/gitlab/ci/yaml_processor_spec.rb @@ -1394,11 +1394,15 @@ EOT describe "Error handling" 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 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 it "returns errors if tags parameter is invalid" do @@ -1704,6 +1708,7 @@ EOT context "when YAML content is empty" do let(:content) { '' } + it { is_expected.to eq "Please provide content of .gitlab-ci.yml" } end |