File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change 307
307
});
308
308
});
309
309
310
- // TODO: Test branch renaming, branch upstream
311
- // - (void)testCanRenameBranch {
312
- //
313
- // NSError *error = nil;
314
- // GTRepository *repo = [GTRepository repoByOpeningRepositoryInDirectory:[NSURL URLWithString:TEST_REPO_PATH()] error:&error];
315
- // STAssertNil(error, [error localizedDescription]);
316
- //
317
- // NSArray *branches = [GTBranch listAllLocalBranchesInRepository:repo error:&error];
318
- // STAssertNotNil(branches, [error localizedDescription], nil);
319
- // STAssertEquals(2, (int)branches.count, nil);
320
- //
321
- // NSString *newBranchName = [NSString stringWithFormat:@"%@%@", [GTBranch localNamePrefix], @"this_is_the_renamed_branch"];
322
- // GTBranch *firstBranch = [branches objectAtIndex:0];
323
- // NSString *originalBranchName = firstBranch.name;
324
- // BOOL success = [firstBranch.reference setName:newBranchName error:&error];
325
- // STAssertTrue(success, [error localizedDescription]);
326
- // STAssertEqualObjects(firstBranch.name, newBranchName, nil);
327
- //
328
- // success = [firstBranch.reference setName:originalBranchName error:&error];
329
- // STAssertTrue(success, [error localizedDescription]);
330
- // STAssertEqualObjects(firstBranch.name, originalBranchName, nil);
331
- // }
332
-
333
310
afterEach (^{
334
311
[self tearDown ];
335
312
});
You can’t perform that action at this time.
0 commit comments