Fix #3738: Artist URL search should be case-insensitive for domains.

This commit is contained in:
evazion
2018-09-05 19:14:24 -05:00
parent c2cf6a5441
commit aee1906761
3 changed files with 11 additions and 0 deletions

View File

@@ -35,6 +35,11 @@ class ArtistUrlTest < ActiveSupport::TestCase
assert_equal("http://google.com/", url.normalized_url)
end
should "normalise domains to lowercase" do
url = FactoryBot.create(:artist_url, url: "https://ArtistName.example.com")
assert_equal("http://artistname.example.com/", url.normalized_url)
end
context "normalize twitter profile urls" do
setup do
@url = FactoryBot.create(:artist_url, :url => "https://twitter.com/BLAH")