mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-23 04:04:22 +00:00
14 lines
353 B
Swift
14 lines
353 B
Swift
import GRDB
|
|
|
|
class MigrationCrashTests: GRDBCrashTestCase {
|
|
|
|
func testMigrationNamesMustBeUnique() {
|
|
assertCrash("already registered migration: \"foo\"") {
|
|
var migrator = DatabaseMigrator()
|
|
migrator.registerMigration("foo") { db in }
|
|
migrator.registerMigration("foo") { db in }
|
|
}
|
|
}
|
|
|
|
}
|