mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Wrong order for S3Helper#copy_file.
This commit is contained in:
@@ -125,10 +125,10 @@ describe FileStore::S3Store do
|
||||
|
||||
s3_object = stub
|
||||
|
||||
s3_bucket.expects(:object).with(source).returns(s3_object)
|
||||
s3_bucket.expects(:object).with(destination).returns(s3_object)
|
||||
|
||||
s3_object.expects(:copy_from).with(
|
||||
copy_source: "s3-upload-bucket/#{destination}"
|
||||
copy_source: "s3-upload-bucket/#{source}"
|
||||
)
|
||||
|
||||
store.copy_file(upload.url, source, destination)
|
||||
|
||||
Reference in New Issue
Block a user