Merge pull request #4570 from nonamethanks/fix_4543

Nijie: fix login
This commit is contained in:
evazion
2020-08-12 09:46:09 -05:00
committed by GitHub
2 changed files with 37 additions and 11 deletions

View File

@@ -292,6 +292,18 @@ module Sources
end
end
context "a post requiring login" do
should "not fail" do
site = Sources::Strategies.find("https://nijie.info/view.php?id=203688")
urls = %w[
https://pic.nijie.net/01/nijie_picture/676327_20170216212803_0.jpg
https://pic.nijie.net/04/nijie_picture/diff/main/676327_20170216212806_0.jpg
]
assert_equal(urls, site.image_urls)
end
end
context "normalizing for source" do
should "normalize correctly" do
source1 = "https://pic01.nijie.info/nijie_picture/diff/main/218856_0_236014_20170620101329.png"