Merge pull request #3379 from evazion/fix-3377
Fix #3377: Batch bookmarklet doesn't fetch artist/tags from twitter
This commit is contained in:
@@ -123,6 +123,21 @@ module Sources
|
||||
end
|
||||
end
|
||||
|
||||
context "The source site for a direct image and a referer" do
|
||||
setup do
|
||||
@site = Sources::Site.new("https://pbs.twimg.com/media/B4HSEP5CUAA4xyu.png:large", referer_url: "https://twitter.com/nounproject/status/540944400767922176")
|
||||
@site.get
|
||||
end
|
||||
|
||||
should "get the artist name" do
|
||||
assert_equal("Noun Project", @site.artist_name)
|
||||
end
|
||||
|
||||
should "get the image url" do
|
||||
assert_equal("https://pbs.twimg.com/media/B4HSEP5CUAA4xyu.png:orig", @site.image_url)
|
||||
end
|
||||
end
|
||||
|
||||
context "A tweet" do
|
||||
setup do
|
||||
@site = Sources::Site.new("https://twitter.com/noizave/status/875768175136317440")
|
||||
|
||||
Reference in New Issue
Block a user