Commit 6bc2b2c1 authored by Vitali Tatarintev's avatar Vitali Tatarintev

Merge branch 'improve_create_pipeline_policy_spec' into 'master'

Improve realism of policy spec

See merge request gitlab-org/gitlab!55319
parents 5ffe0ec9 100c3ccc
...@@ -105,6 +105,10 @@ RSpec.describe ProjectPolicy do ...@@ -105,6 +105,10 @@ RSpec.describe ProjectPolicy do
context 'pipeline feature' do context 'pipeline feature' do
let(:project) { private_project } let(:project) { private_project }
before do
private_project.add_developer(current_user)
end
describe 'for unconfirmed user' do describe 'for unconfirmed user' do
let(:current_user) { create(:user, confirmed_at: nil) } let(:current_user) { create(:user, confirmed_at: nil) }
......
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