summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/ci/build/policy/refs_spec.rb
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-09-18 14:29:43 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-09-18 14:29:43 +0200
commitd79ad28fcb44c35d77de26d428ae61bc6d71e8ec (patch)
tree0eab721907e46ad6f91b22f719850f32529569f9 /spec/lib/gitlab/ci/build/policy/refs_spec.rb
parent6681ea9cd8d7001a352c95237d625057b6147f0b (diff)
downloadgitlab-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/refs_spec.rb')
-rw-r--r--spec/lib/gitlab/ci/build/policy/refs_spec.rb6
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