potential fix for #3569
This commit is contained in:
@@ -12,7 +12,7 @@ class UploadServiceTest < ActiveSupport::TestCase
|
||||
],
|
||||
"content_type" => "image/jpeg"
|
||||
}
|
||||
}.freeze
|
||||
}
|
||||
|
||||
context "::Utils" do
|
||||
subject { UploadService::Utils }
|
||||
@@ -139,6 +139,13 @@ class UploadServiceTest < ActiveSupport::TestCase
|
||||
@file = @upload.file
|
||||
end
|
||||
|
||||
context "with an original_post_id" do
|
||||
should "run" do
|
||||
subject.expects(:distribute_files).times(3)
|
||||
subject.process_file(@upload, @file, original_post_id: 12345)
|
||||
end
|
||||
end
|
||||
|
||||
should "run" do
|
||||
subject.expects(:distribute_files).times(3)
|
||||
subject.process_file(@upload, @file)
|
||||
|
||||
Reference in New Issue
Block a user