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 ...@@ -44,9 +44,9 @@ describe Gitlab::Ci::Pipeline::Chain::Validate::Repository do
context 'when ref is ambiguous' do context 'when ref is ambiguous' do
let(:project) do let(:project) do
p = create(:project, :repository) create(:project, :repository).tap do |proj|
p.repository.add_tag(user, 'master', 'master') proj.repository.add_tag(user, 'master', 'master')
p end
end end
let(:command) do let(:command) do
Gitlab::Ci::Pipeline::Chain::Command.new( 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