2016-12-20 09:05:57 -05:00
|
|
|
shared_context 'disabled repository' do
|
|
|
|
before do
|
2018-07-02 06:43:06 -04:00
|
|
|
project.project_feature.update!(
|
2016-12-20 09:05:57 -05:00
|
|
|
repository_access_level: ProjectFeature::DISABLED,
|
|
|
|
merge_requests_access_level: ProjectFeature::DISABLED,
|
|
|
|
builds_access_level: ProjectFeature::DISABLED
|
|
|
|
)
|
|
|
|
expect(project.feature_available?(:repository, current_user)).to be false
|
|
|
|
end
|
|
|
|
end
|