Commit c4b51c84 authored by Robert Speicher's avatar Robert Speicher

Resolve additional conflicts in spec/models/ci/build_spec.rb

parent 4cb84072
......@@ -1427,33 +1427,6 @@ describe Ci::Build do
end
end
<<<<<<< HEAD
context 'when destroying the build' do
let!(:build) { create(:ci_build, artifacts_size: 23) }
it 'updates project statistics' do
expect(ProjectStatistics)
.to receive(:increment_statistic)
.and_call_original
expect { build.destroy! }
.to change { build.project.statistics.reload.build_artifacts_size }
.by(-23)
=======
context 'when the artifact size stays the same' do
it 'does not update project statistics' do
build.name = 'changed'
expect(build).not_to receive(:update_project_statistics_after_save)
build.save!
end
>>>>>>> upstream/master
end
end
<<<<<<< HEAD
=======
context 'when destroying the build' do
let!(:build) { create(:ci_build, artifacts_size: 23) }
......@@ -1467,7 +1440,6 @@ describe Ci::Build do
.by(-23)
end
>>>>>>> upstream/master
context 'when the build is destroyed due to the project being destroyed' do
it 'does not update the project statistics' do
expect(ProjectStatistics)
......
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