mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-24 04:07:47 +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 }
|
|
}
|
|
}
|
|
|
|
}
|