Fix artist finder for hentai foundry

#2489
This commit is contained in:
Toks
2015-08-11 20:28:58 -04:00
parent 554a616963
commit 8e17b4936a
3 changed files with 16 additions and 0 deletions

View File

@@ -44,6 +44,11 @@ class ArtistUrlTest < ActiveSupport::TestCase
assert_equal("http://seiga.nicovideo.jp/user/illust/1826959/", url.normalized_url)
end
should "normalize hentai foundry artist urls" do
url = FactoryGirl.create(:artist_url, :url => "http://pictures.hentai-foundry.com//a/AnimeFlux/219123.jpg")
assert_equal("http://pictures.hentai-foundry.com/a/AnimeFlux/219123.jpg/", url.normalized_url)
end
should "normalize pixiv urls" do
url = FactoryGirl.create(:artist_url, :url => "http://img55.pixiv.net/img/monet")
assert_equal("http://img55.pixiv.net/img/monet", url.url)