Commit fcc4ba16 authored by Robert Speicher's avatar Robert Speicher

Use `empty_project` where possible in spec/features/atom

parent f7c5c686
...@@ -4,8 +4,8 @@ describe "Dashboard Issues Feed" do ...@@ -4,8 +4,8 @@ describe "Dashboard Issues Feed" do
describe "GET /issues" do describe "GET /issues" do
let!(:user) { create(:user, email: 'private1@example.com', public_email: 'public1@example.com') } let!(:user) { create(:user, email: 'private1@example.com', public_email: 'public1@example.com') }
let!(:assignee) { create(:user, email: 'private2@example.com', public_email: 'public2@example.com') } let!(:assignee) { create(:user, email: 'private2@example.com', public_email: 'public2@example.com') }
let!(:project1) { create(:project) } let!(:project1) { create(:empty_project) }
let!(:project2) { create(:project) } let!(:project2) { create(:empty_project) }
before do before do
project1.team << [user, :master] project1.team << [user, :master]
......
...@@ -19,7 +19,7 @@ describe "Dashboard Feed" do ...@@ -19,7 +19,7 @@ describe "Dashboard Feed" do
end end
context 'feed content' do context 'feed content' do
let(:project) { create(:project) } let(:project) { create(:empty_project) }
let(:issue) { create(:issue, project: project, author: user, description: '') } let(:issue) { create(:issue, project: project, author: user, description: '') }
let(:note) { create(:note, noteable: issue, author: user, note: 'Bug confirmed', project: project) } let(:note) { create(:note, noteable: issue, author: user, note: 'Bug confirmed', project: project) }
......
...@@ -5,7 +5,7 @@ describe 'Issues Feed' do ...@@ -5,7 +5,7 @@ describe 'Issues Feed' do
let!(:user) { create(:user, email: 'private1@example.com', public_email: 'public1@example.com') } let!(:user) { create(:user, email: 'private1@example.com', public_email: 'public1@example.com') }
let!(:assignee) { create(:user, email: 'private2@example.com', public_email: 'public2@example.com') } let!(:assignee) { create(:user, email: 'private2@example.com', public_email: 'public2@example.com') }
let!(:group) { create(:group) } let!(:group) { create(:group) }
let!(:project) { create(:project) } let!(:project) { create(:empty_project) }
let!(:issue) { create(:issue, author: user, assignees: [assignee], project: project) } let!(:issue) { create(:issue, author: user, assignees: [assignee], project: project) }
before do before do
......
...@@ -19,7 +19,7 @@ describe "User Feed" do ...@@ -19,7 +19,7 @@ describe "User Feed" do
end end
context 'feed content' do context 'feed content' do
let(:project) { create(:project) } let(:project) { create(:project, :repository) }
let(:issue) do let(:issue) do
create(:issue, create(:issue,
project: project, project: project,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment