Commit fdfc20c3 authored by Micaël Bergeron's avatar Micaël Bergeron

apply feedback

parent 59d3e84f
...@@ -11,7 +11,7 @@ describe ObjectStorage::MigrateUploadsWorker, :sidekiq do ...@@ -11,7 +11,7 @@ describe ObjectStorage::MigrateUploadsWorker, :sidekiq do
let(:uploads) { Upload.all } let(:uploads) { Upload.all }
let(:to_store) { ObjectStorage::Store::REMOTE } let(:to_store) { ObjectStorage::Store::REMOTE }
shared_examples "correctly" do shared_examples "uploads migration worker" do
describe '.enqueue!' do describe '.enqueue!' do
def enqueue! def enqueue!
described_class.enqueue!(uploads, Project, mounted_as, to_store) described_class.enqueue!(uploads, Project, mounted_as, to_store)
...@@ -122,7 +122,7 @@ describe ObjectStorage::MigrateUploadsWorker, :sidekiq do ...@@ -122,7 +122,7 @@ describe ObjectStorage::MigrateUploadsWorker, :sidekiq do
stub_uploads_object_storage(AvatarUploader) stub_uploads_object_storage(AvatarUploader)
end end
it_behaves_like "correctly" it_behaves_like "uploads migration worker"
end end
context "for FileUploader" do context "for FileUploader" do
...@@ -139,6 +139,6 @@ describe ObjectStorage::MigrateUploadsWorker, :sidekiq do ...@@ -139,6 +139,6 @@ describe ObjectStorage::MigrateUploadsWorker, :sidekiq do
end end
end end
it_behaves_like "correctly" it_behaves_like "uploads migration worker"
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