diff options
author | Valery Sizov <valery@gitlab.com> | 2015-06-24 12:03:46 +0000 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2015-06-24 12:03:46 +0000 |
commit | 9ae34fda713d0ef0b9c824ff2ef37bc2c5f5d817 (patch) | |
tree | b9f000158524be476a7719cb656fbb2e2740ac62 /spec | |
parent | 5d7884df60facff5f91b577fdd6c0b9149d7266b (diff) | |
parent | 306acf65c32963b38d7db74677d3eaedcf441771 (diff) | |
download | gitlab-ci-9ae34fda713d0ef0b9c824ff2ef37bc2c5f5d817.tar.gz |
Merge branch 'lint_improve' into 'master'
Improved lint stability
https://dev.gitlab.org/gitlab/gitlab-ci/issues/294
See merge request !163
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab_ci_yaml_processor_spec.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/spec/lib/gitlab_ci_yaml_processor_spec.rb b/spec/lib/gitlab_ci_yaml_processor_spec.rb index 0bbe5c1..070e0c0 100644 --- a/spec/lib/gitlab_ci_yaml_processor_spec.rb +++ b/spec/lib/gitlab_ci_yaml_processor_spec.rb @@ -124,11 +124,18 @@ describe GitlabCiYamlProcessor do expect{GitlabCiYamlProcessor.new("invalid_yaml\n!ccdvlf%612334@@@@")}.to raise_error(GitlabCiYamlProcessor::ValidationError) end - it "returns errors" do + it "returns errors if tags parameter is invalid" do config = YAML.dump({rspec: {tags: "mysql"}}) expect do GitlabCiYamlProcessor.new(config) end.to raise_error(GitlabCiYamlProcessor::ValidationError, "rspec job: tags parameter should be an array") end + + it "returns errors if before_script parameter is invalid" do + config = YAML.dump({before_script: "bundle update"}) + expect do + GitlabCiYamlProcessor.new(config) + end.to raise_error(GitlabCiYamlProcessor::ValidationError, "before_script should be an array") + end end end
\ No newline at end of file |