diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-09-18 14:29:43 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-09-18 14:29:43 +0200 |
commit | d79ad28fcb44c35d77de26d428ae61bc6d71e8ec (patch) | |
tree | 0eab721907e46ad6f91b22f719850f32529569f9 /spec/lib/gitlab/ci/build/policy | |
parent | 6681ea9cd8d7001a352c95237d625057b6147f0b (diff) | |
download | gitlab-ce-d79ad28fcb44c35d77de26d428ae61bc6d71e8ec.tar.gz |
Do not pass project path from YAML processor
Use project full path that can be received from a pipeline object
Diffstat (limited to 'spec/lib/gitlab/ci/build/policy')
-rw-r--r-- | spec/lib/gitlab/ci/build/policy/refs_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/gitlab/ci/build/policy/refs_spec.rb b/spec/lib/gitlab/ci/build/policy/refs_spec.rb index 2eb612800fb..7211187e511 100644 --- a/spec/lib/gitlab/ci/build/policy/refs_spec.rb +++ b/spec/lib/gitlab/ci/build/policy/refs_spec.rb @@ -46,13 +46,13 @@ describe Gitlab::Ci::Build::Policy::Refs do end it 'is satisfied when provided patch matches specified one' do - expect(described_class.new(%w[master@some/repository])) - .to be_satisfied_by(pipeline, path: 'some/repository') + expect(described_class.new(%W[master@#{pipeline.project_full_path}])) + .to be_satisfied_by(pipeline) end it 'is not satisfied when path differs' do expect(described_class.new(%w[master@some/fork/repository])) - .not_to be_satisfied_by(pipeline, path: 'some/repository') + .not_to be_satisfied_by(pipeline) end end |