Commit ce14c20a authored by Matija Čupić's avatar Matija Čupić

Avoid using magic variable in spec

parent 837ab8c5
......@@ -44,9 +44,9 @@ describe Gitlab::Ci::Pipeline::Chain::Validate::Repository do
context 'when ref is ambiguous' do
let(:project) do
p = create(:project, :repository)
p.repository.add_tag(user, 'master', 'master')
p
create(:project, :repository).tap do |proj|
proj.repository.add_tag(user, 'master', 'master')
end
end
let(:command) do
Gitlab::Ci::Pipeline::Chain::Command.new(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment