mirror of
https://github.com/sparkle-project/Sparkle
synced 2026-11-24 04:38:16 +00:00
Appcast items are no longer sorted; reflect that in unit tests
This commit is contained in:
1 parent
9f2604b888
commit
8a04cc726f
1 file changed
+6
-4
@@ -21,11 +21,13 @@ class SUAppcastTest: XCTestCase {
|
||||
let items = try appcast.parseAppcastItemsFromXMLFile(testFileUrl) as! [SUAppcastItem];
|
||||
|
||||
XCTAssertEqual(2, items.count);
|
||||
XCTAssertEqual("Version 3.0", items[0].title);
|
||||
XCTAssertNil(items[0].itemDescription);
|
||||
|
||||
XCTAssertEqual("Version 2.0", items[1].title);
|
||||
XCTAssertEqual("desc", items[1].itemDescription);
|
||||
XCTAssertEqual("Version 2.0", items[0].title);
|
||||
XCTAssertEqual("desc", items[0].itemDescription);
|
||||
|
||||
XCTAssertEqual("Version 3.0", items[1].title);
|
||||
XCTAssertNil(items[1].itemDescription);
|
||||
|
||||
} catch let err as NSError {
|
||||
NSLog("%@", err);
|
||||
XCTFail(err.localizedDescription);
|
||||
|
||||
Reference in new issue
Block a user