debian-mirror-gitlab/spec/support/api/repositories_shared_context.rb

11 lines
353 B
Ruby
Raw Normal View History

2017-08-17 22:00:37 +05:30
shared_context 'disabled repository' do
before do
2018-11-18 11:00:15 +05:30
project.project_feature.update!(
2017-08-17 22:00:37 +05:30
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