for artist urls, normalize https

This commit is contained in:
albert
2013-02-21 16:13:06 -05:00
parent 19398df28e
commit d16a240eda
4 changed files with 13 additions and 0 deletions

View File

@@ -22,6 +22,12 @@ class ArtistUrlTest < ActiveSupport::TestCase
assert_equal("http://monet.com/", url.url)
assert_equal("http://monet.com/", url.normalized_url)
end
should "normalise https" do
url = FactoryGirl.create(:artist_url, :url => "https://google.com")
assert_equal("https://google.com", url.url)
assert_equal("http://google.com/", url.normalized_url)
end
should "normalize fc2 urls" do
url = FactoryGirl.create(:artist_url, :url => "http://blog55.fc2.com/monet")