mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-25 09:11:13 +01:00
Add test to make sure RSS parser is using guid for article.uniqueID.
This commit is contained in:
parent
a82cee29b8
commit
a3dde79b84
@ -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/"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user