Commit 1da1fed1 authored by Rémy Coutable's avatar Rémy Coutable

Resolve conflict in spec/requests/api/v3/builds_spec.rb

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 06d8df22
require 'spec_helper' require 'spec_helper'
describe API::Boards do describe API::Boards do
<<<<<<< HEAD
let(:user) { create(:user) }
let(:non_member) { create(:user) }
let(:guest) { create(:user) }
let(:admin) { create(:user, :admin) }
let!(:project) { create(:project, :public, creator_id: user.id, namespace: user.namespace ) }
# EE only
let(:milestone) { create(:milestone, project: project) }
let!(:dev_label) do
=======
set(:user) { create(:user) } set(:user) { create(:user) }
set(:user2) { create(:user) }
set(:non_member) { create(:user) } set(:non_member) { create(:user) }
set(:guest) { create(:user) } set(:guest) { create(:user) }
set(:admin) { create(:user, :admin) } set(:admin) { create(:user, :admin) }
set(:project) { create(:project, :public, creator_id: user.id, namespace: user.namespace ) } set(:project) { create(:project, :public, creator_id: user.id, namespace: user.namespace ) }
set(:dev_label) do set(:dev_label) do
>>>>>>> upstream/master
create(:label, title: 'Development', color: '#FFAABB', project: project) create(:label, title: 'Development', color: '#FFAABB', project: project)
end end
...@@ -41,13 +27,11 @@ describe API::Boards do ...@@ -41,13 +27,11 @@ describe API::Boards do
create(:list, label: test_label, position: 2) create(:list, label: test_label, position: 2)
end end
<<<<<<< HEAD # EE only
let!(:board) do set(:milestone) { create(:milestone, project: project) }
create(:board, project: project, milestone: milestone, lists: [dev_list, test_list])
=======
set(:board) do set(:board) do
create(:board, project: project, lists: [dev_list, test_list]) create(:board, project: project, milestone: milestone, lists: [dev_list, test_list])
>>>>>>> upstream/master
end end
before do before do
......
...@@ -3,21 +3,12 @@ require 'spec_helper' ...@@ -3,21 +3,12 @@ require 'spec_helper'
describe API::V3::Builds do describe API::V3::Builds do
set(:user) { create(:user) } set(:user) { create(:user) }
let(:api_user) { user } let(:api_user) { user }
<<<<<<< HEAD
let!(:project) { create(:project, :repository, creator: user, public_builds: false) } let!(:project) { create(:project, :repository, creator: user, public_builds: false) }
let!(:developer) { create(:project_member, :developer, user: user, project: project) } let!(:developer) { create(:project_member, :developer, user: user, project: project) }
let(:reporter) { create(:project_member, :reporter, project: project) } let(:reporter) { create(:project_member, :reporter, project: project) }
let(:guest) { create(:project_member, :guest, project: project) } let(:guest) { create(:project_member, :guest, project: project) }
let(:pipeline) { create(:ci_empty_pipeline, project: project, sha: project.commit.id, ref: project.default_branch) } let(:pipeline) { create(:ci_empty_pipeline, project: project, sha: project.commit.id, ref: project.default_branch) }
let(:build) { create(:ci_build, pipeline: pipeline) } let(:build) { create(:ci_build, pipeline: pipeline) }
=======
set(:project) { create(:project, :repository, creator: user, public_builds: false) }
set(:developer) { create(:project_member, :developer, user: user, project: project) }
set(:reporter) { create(:project_member, :reporter, project: project) }
set(:guest) { create(:project_member, :guest, project: project) }
set(:pipeline) { create(:ci_empty_pipeline, project: project, sha: project.commit.id, ref: project.default_branch) }
let!(:build) { create(:ci_build, pipeline: pipeline) }
>>>>>>> upstream/master
describe 'GET /projects/:id/builds ' do describe 'GET /projects/:id/builds ' do
let(:query) { '' } let(:query) { '' }
......
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