diff options
author | Matija Čupić <matteeyah@gmail.com> | 2019-04-01 20:44:58 +0200 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2019-04-02 01:07:03 +0200 |
commit | 2c8510703cd0e99b4e1adc7740a124e7a2157def (patch) | |
tree | 64bb4bf56d5382699b35a72bc97c70f594b29f72 /spec/lib/gitlab/ci/pipeline/seed/build_spec.rb | |
parent | 57cba4d1e9e9964359a5c55bca6558db0d511d98 (diff) | |
download | gitlab-ce-mc/refactor/bridges-ce.tar.gz |
Backport changes from EEmc/refactor/bridges-ce
This backports CE changes from
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/10521
Diffstat (limited to 'spec/lib/gitlab/ci/pipeline/seed/build_spec.rb')
-rw-r--r-- | spec/lib/gitlab/ci/pipeline/seed/build_spec.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/lib/gitlab/ci/pipeline/seed/build_spec.rb b/spec/lib/gitlab/ci/pipeline/seed/build_spec.rb index fae8add6453..d2f53780344 100644 --- a/spec/lib/gitlab/ci/pipeline/seed/build_spec.rb +++ b/spec/lib/gitlab/ci/pipeline/seed/build_spec.rb @@ -21,20 +21,20 @@ describe Gitlab::Ci::Pipeline::Seed::Build do end describe '#bridge?' do - context 'when job is a bridge' do + context 'when job is a downstream bridge' do let(:attributes) do { name: 'rspec', ref: 'master', options: { trigger: 'my/project' } } end it { is_expected.to be_bridge } - end - context 'when trigger definition is empty' do - let(:attributes) do - { name: 'rspec', ref: 'master', options: { trigger: '' } } - end + context 'when trigger definition is empty' do + let(:attributes) do + { name: 'rspec', ref: 'master', options: { trigger: '' } } + end - it { is_expected.not_to be_bridge } + it { is_expected.not_to be_bridge } + end end context 'when job is not a bridge' do @@ -50,7 +50,7 @@ describe Gitlab::Ci::Pipeline::Seed::Build do end end - context 'when job is a bridge' do + context 'when job is a downstream bridge' do let(:attributes) do { name: 'rspec', ref: 'master', options: { trigger: 'my/project' } } end |