From a3dde79b842f0652b008e9bd499227d4a21cbc65 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Tue, 19 Dec 2017 11:02:05 -0800 Subject: [PATCH] Add test to make sure RSS parser is using guid for article.uniqueID. --- .../RSParser/RSParserTests/RSSParserTests.swift | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Frameworks/RSParser/RSParserTests/RSSParserTests.swift b/Frameworks/RSParser/RSParserTests/RSSParserTests.swift index 497f3e425..36c4f5091 100644 --- a/Frameworks/RSParser/RSParserTests/RSSParserTests.swift +++ b/Frameworks/RSParser/RSParserTests/RSSParserTests.swift @@ -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/")) + } + } }