summaryrefslogtreecommitdiff
path: root/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-06-10 21:25:48 +0200
committerPhil Hughes <me@iamphill.com>2016-06-13 11:08:15 +0100
commitd23b91b0d9b8db16801872c49a1fb1d3be3a7144 (patch)
treeb7faeddf096365649b893fcd980f9f63586f334e /spec/lib/ci/gitlab_ci_yaml_processor_spec.rb
parent93080b65cd42ca90ccab8c9ecb2b68c79aafa193 (diff)
downloadgitlab-ce-d23b91b0d9b8db16801872c49a1fb1d3be3a7144.tar.gz
Improve after review
Diffstat (limited to 'spec/lib/ci/gitlab_ci_yaml_processor_spec.rb')
-rw-r--r--spec/lib/ci/gitlab_ci_yaml_processor_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb b/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb
index 00a04683e50..ad693dd05f5 100644
--- a/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb
+++ b/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb
@@ -608,7 +608,7 @@ module Ci
})
end
- %w(on_success on_failure always).each do |when_state|
+ %w[on_success on_failure always].each do |when_state|
it "returns artifacts for when #{when_state} defined" do
config = YAML.dump({
rspec: {
@@ -618,6 +618,7 @@ module Ci
})
config_processor = GitlabCiYamlProcessor.new(config, path)
+
builds = config_processor.builds_for_stage_and_ref("test", "master")
expect(builds.size).to eq(1)
expect(builds.first[:options][:artifacts][:when]).to eq(when_state)