diff options
author | drx777 <david.rekowski@gmx.de> | 2010-04-29 18:42:54 +0000 |
---|---|---|
committer | drx777 <david.rekowski@gmx.de> | 2010-04-29 18:42:54 +0000 |
commit | 6f6a32030c374acc5afd253bc3a8f6488d0b9433 (patch) | |
tree | 4d721f5155490f9bf9e0f9ee3cd3d64c41dd85cc /UnitTests/SPDatabaseCopyTest.m | |
parent | 230f6295f5c6a80201410bc0347e83920df08bfe (diff) | |
download | sequelpro-6f6a32030c374acc5afd253bc3a8f6488d0b9433.tar.gz sequelpro-6f6a32030c374acc5afd253bc3a8f6488d0b9433.tar.bz2 sequelpro-6f6a32030c374acc5afd253bc3a8f6488d0b9433.zip |
Only switch to the renamed/duplicated database name, if the action was successful. Caused an existing DB to be selected, after ren/dup failed because it exists.
Diffstat (limited to 'UnitTests/SPDatabaseCopyTest.m')
-rw-r--r-- | UnitTests/SPDatabaseCopyTest.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/UnitTests/SPDatabaseCopyTest.m b/UnitTests/SPDatabaseCopyTest.m index c9a37d3c..593989de 100644 --- a/UnitTests/SPDatabaseCopyTest.m +++ b/UnitTests/SPDatabaseCopyTest.m @@ -76,7 +76,7 @@ NSString *source = [[NSString alloc] initWithString:@"source_name"]; NSString *target = [[NSString alloc] initWithString:@"target_name"]; - [dbCopy copyDatabaseFrom:source to:target withContent:YES]; + STAssertTrue([dbCopy copyDatabaseFrom:source to:target withContent:YES], @"method renameDatabaseFrom:to: is supposed to return YES"); [mockConnection verify]; [source release]; |