Fix #4144: Deviantart Eclipse update broke strategy.

This commit is contained in:
evazion
2019-08-28 23:40:29 -05:00
parent eb94bf366b
commit eba6440b8b
10 changed files with 131 additions and 342 deletions

View File

@@ -1,19 +0,0 @@
require 'test_helper'
module Downloads
class DeviantArtTest < ActiveSupport::TestCase
context "a download for a deviant art html page" do
setup do
skip "DeviantArt API keys not set" unless Danbooru.config.deviantart_client_id.present?
@source = "https://www.deviantart.com/aeror404/art/Holiday-Elincia-424551484"
@download = Downloads::File.new(@source)
@tempfile, strategy = @download.download!
end
should "work" do
assert_equal(877987, ::File.size(@tempfile.path))
end
end
end
end