sources: factor out Source::URL::TwitPic.

This commit is contained in:
evazion
2022-02-23 18:19:04 -06:00
parent 7ed8f95a8e
commit 043c08eb05
9 changed files with 117 additions and 30 deletions

View File

@@ -29,11 +29,6 @@ module Sources
end
context "normalizing for source" do
should "normalize twitpic links" do
source = "http://d3j5vwomefv46c.cloudfront.net/photos/large/820960031.jpg?1384107199"
assert_equal("https://twitpic.com/dks0tb", Sources::Strategies.normalize_source(source))
end
should "normalize karabako links" do
source = "http://www.karabako.net/images/karabako_38835.jpg"
assert_equal("http://www.karabako.net/post/view/38835", Sources::Strategies.normalize_source(source))