Fix #3738: Artist URL search should be case-insensitive for domains.
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user