summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2018-07-19 21:00:40 +0900
committerShinya Maeda <shinya@gitlab.com>2018-07-19 21:00:40 +0900
commitd88523ca88420354f61bd36f533c62a6ca474423 (patch)
tree25fc72bc9d4ed15dd83a075dfddf6502deffd530
parentd9beb10ede5e4e8abe388fadbd6412640293917a (diff)
downloadgitlab-ce-d88523ca88420354f61bd36f533c62a6ca474423.tar.gz
Revert unnecessary change
-rw-r--r--spec/models/ci/build_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/ci/build_spec.rb b/spec/models/ci/build_spec.rb
index 7c3ddab1751..ee923374480 100644
--- a/spec/models/ci/build_spec.rb
+++ b/spec/models/ci/build_spec.rb
@@ -861,7 +861,7 @@ describe Ci::Build do
let!(:build) { create(:ci_build, :success, :artifacts) }
before do
- build.job_artifacts_metadata.destroy
+ build.remove_artifacts_metadata!
end
describe '#erase' do
@@ -930,7 +930,7 @@ describe Ci::Build do
let!(:build) { create(:ci_build, :success, :legacy_artifacts) }
before do
- build.remove_legacy_artifacts_metadata!
+ build.remove_artifacts_metadata!
end
describe '#erase' do