uploads: remove useless code.

This commit is contained in:
evazion
2021-10-18 06:25:02 -05:00
parent 748fdf33d4
commit 0221ecdf29
3 changed files with 4 additions and 24 deletions

View File

@@ -28,12 +28,6 @@ class UploadServiceTest < ActiveSupport::TestCase
@upload = FactoryBot.build(:jpg_upload)
end
context "with an original_post_id" do
should "run" do
UploadService::Utils.process_file(@upload, @upload.file.tempfile, original_post_id: 12345)
end
end
should "run" do
UploadService::Utils.process_file(@upload, @upload.file.tempfile)
assert_equal("jpg", @upload.file_ext)
@@ -723,7 +717,7 @@ class UploadServiceTest < ActiveSupport::TestCase
assert_equal(true, upload.valid?)
assert_equal("s", upload.rating)
assert_equal("rating:safe blah ", upload.tag_string)
assert_equal("rating:safe blah", upload.tag_string)
assert_equal("s", upload.post.rating)
assert_equal("blah", upload.post.tag_string)