Create repositories in IssuesController specs
In the real world a project always has a repository. This fact allows code such as Issue#related_branches to work without explicitly checking if a repository exists.
This commit is contained in:
parent
68a4c98f50
commit
295fdf720a
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@ require('spec_helper')
|
|||
|
||||
describe Projects::IssuesController do
|
||||
describe "GET #index" do
|
||||
let(:project) { create(:project) }
|
||||
let(:project) { create(:project_empty_repo) }
|
||||
let(:user) { create(:user) }
|
||||
let(:issue) { create(:issue, project: project) }
|
||||
|
||||
|
@ -41,7 +41,7 @@ describe Projects::IssuesController do
|
|||
end
|
||||
|
||||
describe 'Confidential Issues' do
|
||||
let(:project) { create(:empty_project, :public) }
|
||||
let(:project) { create(:project_empty_repo, :public) }
|
||||
let(:assignee) { create(:assignee) }
|
||||
let(:author) { create(:user) }
|
||||
let(:non_member) { create(:user) }
|
||||
|
|
Loading…
Reference in a new issue