tinami/pixa downloads now supported
This commit is contained in:
18
test/unit/downloads/tinami_test.rb
Normal file
18
test/unit/downloads/tinami_test.rb
Normal file
@@ -0,0 +1,18 @@
|
||||
require 'test_helper'
|
||||
|
||||
module Downloads
|
||||
class TinamiTest < ActiveSupport::TestCase
|
||||
context "a download for a pixa image" do
|
||||
setup do
|
||||
@source = "http://img.tinami.com/illust2/img/330/4e85ecd880a8f.jpg"
|
||||
@tempfile = Tempfile.new("danbooru-test")
|
||||
@download = Downloads::File.new(@source, @tempfile.path)
|
||||
end
|
||||
|
||||
should "work" do
|
||||
@download.download!
|
||||
assert_equal(201248, ::File.size(@tempfile.path))
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user