test/test_plugin_wikipedia.rb in serienrenamer-0.0.2 vs test/test_plugin_wikipedia.rb in serienrenamer-0.0.3
- old
+ new
@@ -86,20 +86,36 @@
assert_equal("Auch Reiche sind nur Menschen", seasons[1][1])
assert_equal("Krank vor Liebe", seasons[2][2])
assert_equal("Mich trifft der Blitz", seasons[2][16])
data = wiki.get("Flashpoint – Das Spezialkommando")
- seasons = Plugin::Wikipedia.parse_inarticle_episodelist_page_data(data, true)
+ seasons = Plugin::Wikipedia.parse_inarticle_episodelist_page_data(data)
assert_equal("Skorpion", seasons[1][1])
assert_equal("Die Festung", seasons[2][2])
assert_equal("Der Beschützer", seasons[2][16])
data = wiki.get("Dr. Dani Santino – Spiel des Lebens")
seasons = Plugin::Wikipedia.parse_inarticle_episodelist_page_data(data)
assert_equal("Touchdown", seasons[1][1])
assert_equal("Zickenkrieg", seasons[1][7])
+
+ # the following series have an old inarticle episodelist
+ data = wiki.get("Prison Break")
+ seasons = Plugin::Wikipedia.parse_inarticle_episodelist_page_data(data)
+
+ assert_equal("Der große Plan", seasons[1][1])
+ assert_equal("Seite 1213", seasons[2][5])
+
+ data = wiki.get("Numbers – Die Logik des Verbrechens")
+ seasons = Plugin::Wikipedia.parse_inarticle_episodelist_page_data(data)
+
+ assert_equal("Brandzeichen", seasons[1][1])
+ assert_equal("Das Attentat", seasons[2][5])
+ assert_equal("Gequälte Kreatur", seasons[5][19])
+ assert_equal("Hauptgewinn", seasons[6][11])
+
end
def test_episode_information_generation