Fix bad tests

This commit is contained in:
Gwendal Roué committed 2019-11-08 20:32:54 +01:00
1 parent 218afa72c3
commit c09615bab0
2 files changed
+2 -2

No files matched your search

@@ -171,7 +171,7 @@ class MutablePersistableRecordDeleteTests: GRDBTestCase {
XCTAssertEqual(self.lastSQLQuery, "DELETE FROM \"persons\" LIMIT 1")
try Person.order(Column("name")).deleteAll(db)
XCTAssertEqual(self.lastSQLQuery, "DELETE FROM \"persons\" LIMIT 1")
XCTAssertEqual(self.lastSQLQuery, "DELETE FROM \"persons\"")
try Person.order(Column("name")).limit(1).deleteAll(db)
XCTAssertEqual(self.lastSQLQuery, "DELETE FROM \"persons\" ORDER BY \"name\" LIMIT 1")
@@ -87,7 +87,7 @@ class MutablePersistableRecordUpdateTests: GRDBTestCase {
try Player.order(Columns.name).updateAll(db, assignment)
XCTAssertEqual(self.lastSQLQuery, """
UPDATE "player" SET "score" = 0 LIMIT 1
UPDATE "player" SET "score" = 0
""")
try Player.order(Columns.name).limit(1).updateAll(db, assignment)