summaryrefslogtreecommitdiff
path: root/spec/support/shared_examples/uploaders/object_storage_shared_examples.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-09-19 23:18:09 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2022-09-19 23:18:09 +0000
commit6ed4ec3e0b1340f96b7c043ef51d1b33bbe85fde (patch)
treedc4d20fe6064752c0bd323187252c77e0a89144b /spec/support/shared_examples/uploaders/object_storage_shared_examples.rb
parent9868dae7fc0655bd7ce4a6887d4e6d487690eeed (diff)
downloadgitlab-ce-6ed4ec3e0b1340f96b7c043ef51d1b33bbe85fde.tar.gz
Add latest changes from gitlab-org/gitlab@15-4-stable-eev15.4.0-rc42
Diffstat (limited to 'spec/support/shared_examples/uploaders/object_storage_shared_examples.rb')
-rw-r--r--spec/support/shared_examples/uploaders/object_storage_shared_examples.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/shared_examples/uploaders/object_storage_shared_examples.rb b/spec/support/shared_examples/uploaders/object_storage_shared_examples.rb
index f8b00d1e4c0..3c977e62a10 100644
--- a/spec/support/shared_examples/uploaders/object_storage_shared_examples.rb
+++ b/spec/support/shared_examples/uploaders/object_storage_shared_examples.rb
@@ -56,8 +56,8 @@ RSpec.shared_examples "migrates" do |to_store:, from_store: nil|
it 'can access to the original file during migration' do
file = subject.file
- allow(subject).to receive(:delete_migrated_file) { } # Remove as a callback of :migrate
- allow(subject).to receive(:record_upload) { } # Remove as a callback of :store (:record_upload)
+ allow(subject).to receive(:delete_migrated_file) {} # Remove as a callback of :migrate
+ allow(subject).to receive(:record_upload) {} # Remove as a callback of :store (:record_upload)
expect(file.exists?).to be_truthy
expect { migrate(to) }.not_to change { file.exists? }