new version

This commit is contained in:
r888888888
2015-03-15 16:03:21 -07:00
parent 2d266fc0b6
commit 259d738c8d
3 changed files with 152 additions and 71 deletions

View File

@@ -13,7 +13,7 @@ module Downloads
end
should "set the direct image link as the source" do
assert_equal("http://fc03.deviantart.net/fs71/f/2012/330/e/7/resolution_by_mochikko-d5m713n.jpg", @download.source)
assert_equal("http://www.deviantart.com/download/339610451/resolution_by_mochikko-d5m713n.jpg?token=f828643e6e86a658e80f362745a0b20e20880fc6&ts=1414021578", @download.source)
end
should "work" do
@@ -26,7 +26,7 @@ module Downloads
@source = "http://fc03.deviantart.net/fs71/200H/f/2012/330/e/7/resolution_by_mochikko-d5m713n.jpg"
@tempfile = Tempfile.new("danbooru-test")
@download = Downloads::File.new(@source, @tempfile.path)
VCR.use_cassette("download-deviant-art-thumb", :record => :new_episodes) do
VCR.use_cassette("download-deviant-art-thumb", :record => :none) do
@download.download!
end
end