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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
384cb713
Commit
384cb713
authored
Feb 22, 2018
by
Shinya Maeda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix spec
parent
edd0eb18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
ee/spec/support/shared_examples/uploaders/object_storage_shared_examples.rb
...ared_examples/uploaders/object_storage_shared_examples.rb
+3
-1
No files found.
ee/spec/support/shared_examples/uploaders/object_storage_shared_examples.rb
View file @
384cb713
...
...
@@ -41,8 +41,10 @@ shared_examples "migrates" do |to_store:, from_store: nil|
it
'can access to the original file during migration'
do
original_file
=
subject
.
file
.
path
allow
(
subject
).
to
receive
(
:delete_migrated_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)
expect
(
File
.
exist?
(
original_file
)).
to
be_truthy
expect
{
migrate
(
to
)
}.
not_to
change
{
File
.
exist?
(
original_file
)
}
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