mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Add test to make sure RSS parser is using guid for article.uniqueID.
This commit is contained in:
@@ -70,4 +70,15 @@ class RSSParserTests: XCTestCase {
|
||||
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/"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user