diff options
| author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-10-15 23:49:27 +0200 |
|---|---|---|
| committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-10-15 23:51:45 +0200 |
| commit | 9419046196dc1a09716d5b2bbc424b4f89d696ae (patch) | |
| tree | b60f088240bfffcda8e3021763a782308e896eed /spec/lib/ci | |
| parent | 0aa6061d6ab0ab921ad585329b43b84d20da873e (diff) | |
| download | gitlab-ce-9419046196dc1a09716d5b2bbc424b4f89d696ae.tar.gz | |
Fix specs
Diffstat (limited to 'spec/lib/ci')
| -rw-r--r-- | spec/lib/ci/gitlab_ci_yaml_processor_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb b/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb index 65696cb1ed3..2260a6f8130 100644 --- a/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb +++ b/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb @@ -24,7 +24,8 @@ module Ci commands: "pwd\nrspec", tag_list: [], options: {}, - allow_failure: false + allow_failure: false, + when: "on_success" }) end @@ -330,7 +331,7 @@ module Ci end it "returns errors if job when is not on_success, on_failure or always" do - config = YAML.dump({ rspec: { script: "test", when: false } }) + config = YAML.dump({ rspec: { script: "test", when: 1 } }) expect do GitlabCiYamlProcessor.new(config) end.to raise_error(GitlabCiYamlProcessor::ValidationError, "rspec job: when parameter should be on_success, on_failure or always") |
