summaryrefslogtreecommitdiff
path: root/spec/support/api/repositories_shared_context.rb
blob: ea38fe4f5b8e918b8e5ecaed37373aa818459288 (plain)
1
2
3
4
5
6
7
8
9
10
shared_context 'disabled repository' do
  before do
    project.project_feature.update_attributes!(
      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