sources: remove image_url method from base strategy.
Remove the `image_url` method from source strategies. This method would return only the first image if a source had multiple images. The `image_urls` method should be used instead. Tests were the main place that still used `image_url` instead of `image_urls`. Also make post replacements return an error if replacing with a source that contains multiple images, instead of just blindly replacing the post with the first image in the source.
This commit is contained in:
@@ -14,7 +14,6 @@ module Sources
|
||||
should "find the metadata" do
|
||||
assert_equal("oremuhax.x0.com", @site.site_name)
|
||||
assert_equal(["http://oremuhax.x0.com/yoro1603.jpg"], @site.image_urls)
|
||||
assert_equal("http://oremuhax.x0.com/yoro1603.jpg", @site.image_url)
|
||||
assert_equal("http://oremuhax.x0.com/yoro1603.jpg", @site.canonical_url)
|
||||
assert_nil(@site.artist_name)
|
||||
assert_nil(@site.profile_url)
|
||||
|
||||
Reference in New Issue
Block a user