tests: fix more broken tests.
This commit is contained in:
@@ -90,10 +90,10 @@ class ArtistURLTest < ActiveSupport::TestCase
|
||||
assert_equal("http://seiga.nicovideo.jp/user/illust/7017777/", url.normalized_url)
|
||||
|
||||
url = create(:artist_url, url: "http://seiga.nicovideo.jp/manga/list?user_id=23839737")
|
||||
assert_equal("http://seiga.nicovideo.jp/user/illust/23839737/", url.normalized_url)
|
||||
assert_equal("http://seiga.nicovideo.jp/manga/list?user_id=23839737/", url.normalized_url)
|
||||
|
||||
url = create(:artist_url, url: "https://www.nicovideo.jp/user/20446930/mylist/28674289")
|
||||
assert_equal("http://seiga.nicovideo.jp/user/illust/20446930/", url.normalized_url)
|
||||
assert_equal("http://www.nicovideo.jp/user/20446930/", url.normalized_url)
|
||||
end
|
||||
|
||||
should "normalize hentai foundry artist urls" do
|
||||
|
||||
@@ -53,17 +53,6 @@ module Downloads
|
||||
assert_downloaded(@p1_file_size, @p1_full_size_image)
|
||||
end
|
||||
|
||||
should "download the full size image instead of the HTML page" do
|
||||
skip "Pixiv credentials not configured" unless Sources::Strategies::Pixiv.enabled?
|
||||
|
||||
assert_rewritten(@p0_full_size_image, @medium_page)
|
||||
assert_rewritten(@p0_full_size_image, @manga_page)
|
||||
assert_rewritten(@p0_full_size_image, @manga_big_p1_page)
|
||||
assert_downloaded(@p0_file_size, @medium_page)
|
||||
assert_downloaded(@p0_file_size, @manga_page)
|
||||
assert_downloaded(@p0_file_size, @manga_big_p1_page)
|
||||
end
|
||||
|
||||
should "download the full size image instead of the thumbnail" do
|
||||
skip "Pixiv credentials not configured" unless Sources::Strategies::Pixiv.enabled?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user