tumblr: rewrite html pages to image url.

This commit is contained in:
evazion
2017-06-25 01:03:23 -05:00
parent 118843b26a
commit 030052bf14
2 changed files with 19 additions and 0 deletions

View File

@@ -74,5 +74,15 @@ module Downloads
assert_rewritten(@rewrite, @source)
end
end
context "a download for a *.tumblr.com/post/* html page" do
should "download the best available version" do
@source = "https://noizave.tumblr.com/post/162206271767"
@rewrite = "http://data.tumblr.com/3bbfcbf075ddf969c996641b264086fd/tumblr_os2buiIOt51wsfqepo1_raw.png"
assert_downloaded(3_620, @source)
assert_rewritten(@rewrite, @source)
end
end
end
end