mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-25 04:07:47 +00:00
Fix bad tests
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user