From bbba62fa51419b14be4f39873afdd45b5b248764 Mon Sep 17 00:00:00 2001 From: Katarzyna Kobierska Date: Fri, 26 Aug 2016 12:49:59 +0200 Subject: Fix errors and grammar --- spec/lib/ci/gitlab_ci_yaml_processor_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'spec/lib/ci') diff --git a/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb b/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb index 0125f149581..d3a37ba6eb5 100644 --- a/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb +++ b/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb @@ -1251,19 +1251,19 @@ EOT end end - describe "#errors(content)" do + describe "#errors" do describe "Error handling" do - it "returns error if parse YAML failed" do + it "returns an error if the YAML could not be parsed" do content = YAML.dump("invalid: yaml: test") expect(GitlabCiYamlProcessor.errors(content)).to eq "Invalid configuration format" end - it "returns errors if tags parameter is invalid" do + it "returns an error if the tags parameter is invalid" do content = YAML.dump({ rspec: { script: "test", tags: "mysql" } }) expect(GitlabCiYamlProcessor.errors(content)).to eq "jobs:rspec tags should be an array of strings" end - it "does not return errors" do + it "does not return any errors when the YAML is valid" do content = File.read(Rails.root.join('spec/support/gitlab_stubs/gitlab_ci.yml')) expect(GitlabCiYamlProcessor.errors(content)).to eq nil end -- cgit v1.2.3