Add test to make sure RSS parser is using guid for article.uniqueID.

This commit is contained in:
Brent Simmons 2017-12-19 11:02:05 -08:00
parent a82cee29b8
commit a3dde79b84

View File

@ -70,4 +70,15 @@ class RSSParserTests: XCTestCase {
XCTAssertEqual(attachment.mimeType, "audio/mpeg") XCTAssertEqual(attachment.mimeType, "audio/mpeg")
} }
} }
func testTheOmniShow() {
let d = parserData("theomnishow", "rss", "https://theomnishow.omnigroup.com/")
let parsedFeed = try! FeedParser.parse(d)!
for article in parsedFeed.items {
XCTAssertNotNil(article.uniqueID)
XCTAssertTrue(article.uniqueID.hasPrefix("https://theomnishow.omnigroup.com/episode/"))
}
}
} }