fix bug with source::site

This commit is contained in:
r888888888
2017-11-17 17:26:33 -08:00
parent c0ddf266fc
commit 3c524aa5e6
6 changed files with 10 additions and 13 deletions

View File

@@ -11,7 +11,7 @@ module Downloads
end
should "download the large image instead" do
assert_equal("https://cdnb3.artstation.com/p/assets/images/images/003/716/071/original/aoi-ogata-hate-city.jpg?1476754974", @download.source)
assert_equal("https://cdnb3.artstation.com/p/assets/images/images/003/716/071/large/aoi-ogata-hate-city.jpg?1476754974", @download.source)
end
end
@@ -37,7 +37,7 @@ module Downloads
end
should "download the original image instead" do
assert_equal("https://cdna.artstation.com/p/assets/images/images/006/066/534/original/yinan-cui-reika.jpg?1495781565", @download.source)
assert_equal("https://cdna.artstation.com/p/assets/images/images/006/066/534/large/yinan-cui-reika.jpg?1495781565", @download.source)
end
end
end

View File

@@ -11,7 +11,7 @@ module Downloads
end
should "set the html page as the source" do
assert_equal("http://orig00.deviantart.net/82ef/f/2016/271/7/1/aaaaaa_by_starbitt-daj8b46.gif", @download.source)
assert_equal("https://orig00.deviantart.net/82ef/f/2016/271/7/1/aaaaaa_by_starbitt-daj8b46.gif", @download.source)
end
should "work" do