fix pixiv tests

This commit is contained in:
r888888888
2015-05-14 16:48:39 -07:00
parent c31b869a01
commit 9bdc0116bf
105 changed files with 66123 additions and 47848 deletions

View File

@@ -13,7 +13,10 @@ class ArtistUrl < ActiveRecord::Base
url = url.gsub(/^http:\/\/blog\d+\.fc2/, "http://blog.fc2")
url = url.gsub(/^http:\/\/blog-imgs-\d+\.fc2/, "http://blog.fc2")
url = url.gsub(/^http:\/\/blog-imgs-\d+-\w+\.fc2/, "http://blog.fc2")
url = Sources::Site.new(url).normalize_for_artist_finder!
begin
url = Sources::Site.new(url).normalize_for_artist_finder!
rescue PixivApiClient::Error
end
url = url.gsub(/\/+\Z/, "")
url + "/"
end