Commit 66855b9b authored by Nick Thomas's avatar Nick Thomas

Fix a merge conflict in build specs by moving the code to an EE-only spec file

parent 9af75704
...@@ -1653,39 +1653,6 @@ describe Ci::Build, :models do ...@@ -1653,39 +1653,6 @@ describe Ci::Build, :models do
end end
end end
<<<<<<< HEAD
describe '#has_codeclimate_json?' do
context 'valid build' do
let!(:build) do
create(
:ci_build,
:artifacts,
name: 'codeclimate',
pipeline: pipeline,
options: {
artifacts: {
paths: ['codeclimate.json']
}
}
)
end
it { expect(build.has_codeclimate_json?).to be_truthy }
end
context 'invalid build' do
let!(:build) do
create(
:ci_build,
:artifacts,
name: 'codeclimate',
pipeline: pipeline,
options: {}
)
end
it { expect(build.has_codeclimate_json?).to be_falsey }
=======
describe 'state transition when build fails' do describe 'state transition when build fails' do
context 'when build is configured to be retried' do context 'when build is configured to be retried' do
subject { create(:ci_build, :running, options: { retry: 3 }) } subject { create(:ci_build, :running, options: { retry: 3 }) }
...@@ -1714,7 +1681,6 @@ describe Ci::Build, :models do ...@@ -1714,7 +1681,6 @@ describe Ci::Build, :models do
subject.drop! subject.drop!
end end
>>>>>>> ce/master
end end
end end
end end
...@@ -105,4 +105,38 @@ describe Ci::Build, models: true do ...@@ -105,4 +105,38 @@ describe Ci::Build, models: true do
end end
end end
end end
describe '#has_codeclimate_json?' do
context 'valid build' do
let!(:build) do
create(
:ci_build,
:artifacts,
name: 'codeclimate',
pipeline: pipeline,
options: {
artifacts: {
paths: ['codeclimate.json']
}
}
)
end
it { expect(build.has_codeclimate_json?).to be_truthy }
end
context 'invalid build' do
let!(:build) do
create(
:ci_build,
:artifacts,
name: 'codeclimate',
pipeline: pipeline,
options: {}
)
end
it { expect(build.has_codeclimate_json?).to be_falsey }
end
end
end end
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