Commit cd0f6887 authored by Douwe Maan's avatar Douwe Maan

Don't use potentially slow ForkService in spec

parent 4a8a28eb
...@@ -86,11 +86,13 @@ describe Projects::BlobController do ...@@ -86,11 +86,13 @@ describe Projects::BlobController do
end end
context 'when user has forked project' do context 'when user has forked project' do
let(:guest) { create(:user) } let(:forked_project_link) { create(:forked_project_link, forked_from_project: project) }
let!(:forked_project) { Projects::ForkService.new(project, guest).execute } let!(:forked_project) { forked_project_link.forked_to_project }
let!(:merge_request) { create(:merge_request, source_project: project, target_project: project, source_branch: "fork-test-1", target_branch: "master") } let(:guest) { forked_project.owner }
before { sign_in(guest) } before do
sign_in(guest)
end
context 'when editing on the fork' do context 'when editing on the fork' do
before do before do
......
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