Commit 100c3ccc authored by Thong Kuah's avatar Thong Kuah

Improve realism of policy spec

This spec is againts unconfirmed user, not developer access
parent 03669dea
......@@ -105,6 +105,10 @@ RSpec.describe ProjectPolicy do
context 'pipeline feature' do
let(:project) { private_project }
before do
private_project.add_developer(current_user)
end
describe 'for unconfirmed user' do
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