Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
fdfc20c3
Commit
fdfc20c3
authored
May 09, 2018
by
Micaël Bergeron
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
apply feedback
parent
59d3e84f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/uploaders/workers/object_storage/migrate_uploads_worker_spec.rb
...ers/workers/object_storage/migrate_uploads_worker_spec.rb
+3
-3
No files found.
spec/uploaders/workers/object_storage/migrate_uploads_worker_spec.rb
View file @
fdfc20c3
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment