diff --git a/test/unit/downloads/pixiv_test.rb b/test/unit/downloads/pixiv_test.rb index 17da0da7c..f348c347f 100644 --- a/test/unit/downloads/pixiv_test.rb +++ b/test/unit/downloads/pixiv_test.rb @@ -14,7 +14,7 @@ module Downloads end should "capture the data" do - assert_equal("https://i1.pixiv.net/img-zip-ugoira/img/2017/04/04/08/57/38/62247364_ugoira1920x1080.zip", @download.source) + assert_equal("https://i.pximg.net/img-zip-ugoira/img/2017/04/04/08/57/38/62247364_ugoira1920x1080.zip", @download.source) assert_equal([{"file"=>"000000.jpg", "delay"=>125}, {"file"=>"000001.jpg", "delay"=>125}], @download.data[:ugoira_frame_data]) end end @@ -117,7 +117,7 @@ module Downloads context "downloading a ugoira" do setup do @medium_page = "http://www.pixiv.net/member_illust.php?mode=medium&illust_id=62247364" - @zip_file = "https://i1.pixiv.net/img-zip-ugoira/img/2017/04/04/08/57/38/62247364_ugoira1920x1080.zip" + @zip_file = "https://i.pximg.net/img-zip-ugoira/img/2017/04/04/08/57/38/62247364_ugoira1920x1080.zip" @file_size = 2804 end diff --git a/test/unit/sources/pixiv_test.rb b/test/unit/sources/pixiv_test.rb index d73d21ea8..d3bf9237a 100644 --- a/test/unit/sources/pixiv_test.rb +++ b/test/unit/sources/pixiv_test.rb @@ -51,7 +51,7 @@ module Sources end should "get the file url" do - assert_equal("https://i1.pixiv.net/img-zip-ugoira/img/2017/04/04/08/57/38/62247364_ugoira1920x1080.zip", @site.file_url) + assert_equal("https://i.pximg.net/img-zip-ugoira/img/2017/04/04/08/57/38/62247364_ugoira1920x1080.zip", @site.file_url) end should "capture the frame data" do diff --git a/test/unit/upload_test.rb b/test/unit/upload_test.rb index 05da30aaa..25920a7cd 100644 --- a/test/unit/upload_test.rb +++ b/test/unit/upload_test.rb @@ -278,7 +278,7 @@ class UploadTest < ActiveSupport::TestCase assert_equal("0d94800c4b520bf3d8adda08f95d31e2", post.md5) assert_equal(60, post.image_width) assert_equal(60, post.image_height) - assert_equal("https://i3.pixiv.net/img-zip-ugoira/img/2014/10/05/23/42/23/46378654_ugoira1920x1080.zip", post.source) + assert_equal("https://i.pximg.net/img-zip-ugoira/img/2014/10/05/23/42/23/46378654_ugoira1920x1080.zip", post.source) assert_operator(File.size(post.large_file_path), :>, 0) assert_operator(File.size(post.preview_file_path), :>, 0) end