tests: fix FC2 artist normalization url test.

This commit is contained in:
evazion
2020-12-13 04:10:48 -06:00
parent 71ba45c57c
commit 61e7d32f78
+2 -2
View File
@@ -120,11 +120,11 @@ class ArtistUrlTest < ActiveSupport::TestCase
should "normalize fc2 urls" do should "normalize fc2 urls" do
url = FactoryBot.create(:artist_url, :url => "http://blog55.fc2.com/monet") url = FactoryBot.create(:artist_url, :url => "http://blog55.fc2.com/monet")
assert_equal("http://blog55.fc2.com/monet", url.url) assert_equal("http://blog55.fc2.com/monet", url.url)
assert_equal("http://blog.fc2.com/monet/", url.normalized_url) assert_equal("http://monet.blog.fc2.com/", url.normalized_url)
url = FactoryBot.create(:artist_url, :url => "http://blog-imgs-55.fc2.com/monet") url = FactoryBot.create(:artist_url, :url => "http://blog-imgs-55.fc2.com/monet")
assert_equal("http://blog-imgs-55.fc2.com/monet", url.url) assert_equal("http://blog-imgs-55.fc2.com/monet", url.url)
assert_equal("http://blog.fc2.com/monet/", url.normalized_url) assert_equal("http://monet.blog.fc2.com/", url.normalized_url)
end end
should "normalize deviant art artist urls" do should "normalize deviant art artist urls" do