Increases specs examples regarding projects & deploy tokens
This commit is contained in:
parent
cdac54e2a2
commit
82d66ac96d
|
@ -3606,7 +3606,7 @@ describe Project do
|
|||
it { is_expected.to be_nil }
|
||||
end
|
||||
|
||||
context 'when there is a gitlab deploy token associated but it has expired' do
|
||||
context 'when there is a gitlab deploy token associated but it is expired' do
|
||||
let!(:deploy_token) { create(:deploy_token, :gitlab_deploy_token, :expired, projects: [project]) }
|
||||
|
||||
it { is_expected.to be_nil }
|
||||
|
@ -3617,5 +3617,12 @@ describe Project do
|
|||
|
||||
it { is_expected.to be_nil }
|
||||
end
|
||||
|
||||
context 'when there is a deploy token associated to a different project' do
|
||||
let(:project_2) { create(:project) }
|
||||
let!(:deploy_token) { create(:deploy_token, projects: [project_2]) }
|
||||
|
||||
it { is_expected.to be_nil }
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue