summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-05-06 14:25:36 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-05-06 14:25:36 +0200
commit59b2cfc6689c0554ffdeccf12b5dcfc4f8e867d9 (patch)
tree28e337be8b07d1ae487471d09c6222a40ed0441c
parentdd93376bdb899bb7ffdad1194ea98f6fb9c37427 (diff)
downloadgitlab-ce-old-zj-realtime-graph.tar.gz
Add test for calculating correct jobs group nameszj-real-time-pipelinesold-zj-realtime-graph
-rw-r--r--spec/models/ci/stage_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/models/ci/stage_spec.rb b/spec/models/ci/stage_spec.rb
index 429abacdb78..372b662fab2 100644
--- a/spec/models/ci/stage_spec.rb
+++ b/spec/models/ci/stage_spec.rb
@@ -50,6 +50,11 @@ describe Ci::Stage, models: true do
expect(stage.groups.third.jobs.map(&:name))
.to eq ['spinach 0 1']
end
+
+ it 'returns groups with correct names' do
+ expect(stage.groups.map(&:name))
+ .to eq %w[aaaaa rspec spinach]
+ end
end
describe '#statuses_count' do