Use :empty_project
where possible in policy specs
This commit is contained in:
parent
d281835ac6
commit
90e802cd96
2 changed files with 2 additions and 2 deletions
|
@ -5,7 +5,7 @@ describe IssuePolicy, models: true do
|
|||
|
||||
describe '#rules' do
|
||||
context 'using a regular issue' do
|
||||
let(:project) { create(:project, :public) }
|
||||
let(:project) { create(:empty_project, :public) }
|
||||
let(:issue) { create(:issue, project: project) }
|
||||
let(:policies) { described_class.abilities(user, issue).to_set }
|
||||
|
||||
|
|
|
@ -74,7 +74,7 @@ describe ProjectPolicy, models: true do
|
|||
end
|
||||
|
||||
it 'does not include the read_issue permission when the issue author is not a member of the private project' do
|
||||
project = create(:project, :private)
|
||||
project = create(:empty_project, :private)
|
||||
issue = create(:issue, project: project)
|
||||
user = issue.author
|
||||
|
||||
|
|
Loading…
Reference in a new issue