fixes #3422
This commit is contained in:
@@ -3,7 +3,7 @@ module Sources::Strategies
|
||||
attr_reader :image_urls
|
||||
|
||||
def self.url_match?(url)
|
||||
self.status_id_from_url(url).present?
|
||||
url =~ %r{^https?://(?:mobile\.)?twitter\.com}i
|
||||
end
|
||||
|
||||
def referer_url
|
||||
|
||||
@@ -158,5 +158,15 @@ module Sources
|
||||
assert_equal(tags, @site.tags)
|
||||
end
|
||||
end
|
||||
|
||||
context "#normalize_for_artist_finder!" do
|
||||
setup do
|
||||
@site = Sources::Site.new("https://twitter.com/BLAH")
|
||||
end
|
||||
|
||||
should "downcase the url" do
|
||||
assert_equal("https://twitter.com/blah", @site.normalize_for_artist_finder!)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user