Commit bc0d8112 authored by Robert Speicher's avatar Robert Speicher

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

(It wasn't possible.)
parent fcc4ba16
...@@ -79,7 +79,7 @@ describe 'Issuables Close/Reopen/Report toggle' do ...@@ -79,7 +79,7 @@ describe 'Issuables Close/Reopen/Report toggle' do
end end
context 'on a merge request' do context 'on a merge request' do
let(:project) { create(:project) } let(:project) { create(:project, :repository) }
let(:issuable) { create(:merge_request, source_project: project) } let(:issuable) { create(:merge_request, source_project: project) }
before do before do
...@@ -96,7 +96,7 @@ describe 'Issuables Close/Reopen/Report toggle' do ...@@ -96,7 +96,7 @@ describe 'Issuables Close/Reopen/Report toggle' do
end end
context 'when user doesnt have permission to update' do context 'when user doesnt have permission to update' do
let(:cant_project) { create(:project) } let(:cant_project) { create(:project, :repository) }
let(:cant_issuable) { create(:merge_request, source_project: cant_project) } let(:cant_issuable) { create(:merge_request, source_project: cant_project) }
before do before do
......
...@@ -3,7 +3,7 @@ require 'rails_helper' ...@@ -3,7 +3,7 @@ require 'rails_helper'
describe 'Issue Sidebar on Mobile' do describe 'Issue Sidebar on Mobile' do
include MobileHelpers include MobileHelpers
let(:project) { create(:project, :public) } let(:project) { create(:project, :public, :repository) }
let(:merge_request) { create(:merge_request, source_project: project) } let(:merge_request) { create(:merge_request, source_project: project) }
let(:issue) { create(:issue, project: project) } let(:issue) { create(:issue, project: project) }
let!(:user) { create(:user)} let!(:user) { create(:user)}
......
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