summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-08-31 00:49:10 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-08-31 00:49:10 +0800
commit7dcc2446077084c0cbce92bc5b1279984cc75920 (patch)
tree47d576fabb11df72523592d42e7dfae737a400ef
parent4789adc565b08ed4979ef3b876b2fbd6224fa084 (diff)
downloadgitlab-ce-7dcc2446077084c0cbce92bc5b1279984cc75920.tar.gz
It's renamed to periods
-rw-r--r--spec/lib/gitlab/ci/pipeline_duration_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/lib/gitlab/ci/pipeline_duration_spec.rb b/spec/lib/gitlab/ci/pipeline_duration_spec.rb
index 21d5a5c96a2..acb690581d6 100644
--- a/spec/lib/gitlab/ci/pipeline_duration_spec.rb
+++ b/spec/lib/gitlab/ci/pipeline_duration_spec.rb
@@ -114,10 +114,10 @@ describe Gitlab::Ci::PipelineDuration do
end
def create_calculator(data)
- segments = data.shuffle.map do |(first, last)|
+ periods = data.shuffle.map do |(first, last)|
Gitlab::Ci::PipelineDuration::Period.new(first, last)
end
- Gitlab::Ci::PipelineDuration.new(segments)
+ Gitlab::Ci::PipelineDuration.new(periods)
end
end