diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-05-06 14:25:36 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-05-06 14:25:36 +0200 |
commit | 59b2cfc6689c0554ffdeccf12b5dcfc4f8e867d9 (patch) | |
tree | 28e337be8b07d1ae487471d09c6222a40ed0441c | |
parent | dd93376bdb899bb7ffdad1194ea98f6fb9c37427 (diff) | |
download | gitlab-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.rb | 5 |
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 |