add support for nico seiga manga (fixes #4060)
This commit is contained in:
@@ -6,6 +6,7 @@ module Sources
|
||||
setup do
|
||||
@site_1 = Sources::Strategies.find("http://lohas.nicoseiga.jp/o/910aecf08e542285862954017f8a33a8c32a8aec/1433298801/4937663")
|
||||
@site_2 = Sources::Strategies.find("http://seiga.nicovideo.jp/seiga/im4937663")
|
||||
@site_3 = Sources::Strategies.find("http://seiga.nicovideo.jp/watch/mg376206")
|
||||
end
|
||||
|
||||
should "get the profile" do
|
||||
@@ -59,6 +60,12 @@ module Sources
|
||||
assert_match(full_image_url, site.image_url)
|
||||
assert_match(full_image_url, site.canonical_url)
|
||||
end
|
||||
|
||||
context "for a manga page" do
|
||||
should "not try to find the image url" do
|
||||
assert_nil(@site_3.image_url)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user