f0391c2517
Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
12 lines
384 B
Ruby
12 lines
384 B
Ruby
# frozen_string_literal: true
|
|
|
|
shared_context 'disabled repository' do
|
|
before do
|
|
project.project_feature.update!(
|
|
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
|