Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-06-10 22:25:48 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-06-10 22:25:48 +0300
commit3714e1914b6b891274ab7d8b8db8f21dedd29e37 (patch)
tree4cfcffc974929b088f098a647aa21050f2d08594 /spec
parente6209a407e2e8abee99bb61f089e262c3a5e51e8 (diff)
Improve after review
Diffstat (limited to 'spec')
-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 3d3715f0ef0..fe1e8b2262e 100644
--- a/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb
+++ b/spec/lib/ci/gitlab_ci_yaml_processor_spec.rb
@@ -602,7 +602,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: {
@@ -612,6 +612,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)