Skip to content

Commit 9539a4f

Browse files
author
Rob Rix
committed
Fix up the tests.
1 parent 1392d05 commit 9539a4f

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

ObjectiveGitTests/GTBranchSpec.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@
122122
static NSString * const originalSHA = @"a4bca6b67a5483169963572ee3da563da33712f7";
123123
static NSString * const updatedSHA = @"6b0c1c8b8816416089c534e474f4c692a76ac14f";
124124
expect([masterBranch targetCommitAndReturnError:NULL].SHA).to(equal(originalSHA));
125-
[masterBranch.reference referenceByUpdatingTarget:updatedSHA committer:nil message:nil error:NULL];
125+
[masterBranch.reference referenceByUpdatingTarget:updatedSHA message:nil error:NULL];
126126

127127
GTBranch *reloadedBranch = [masterBranch reloadedBranchWithError:NULL];
128128
expect(reloadedBranch).notTo(beNil());
@@ -158,7 +158,7 @@
158158
GTOID *OID = [[GTOID alloc] initWithSHA:@"6b0c1c8b8816416089c534e474f4c692a76ac14f"];
159159

160160
NSError *error = nil;
161-
GTReference *otherRef = [repository createReferenceNamed:@"refs/heads/yet-another-branch" fromOID:OID committer:nil message:nil error:&error];
161+
GTReference *otherRef = [repository createReferenceNamed:@"refs/heads/yet-another-branch" fromOID:OID message:nil error:&error];
162162
expect(otherRef).notTo(beNil());
163163
expect(error).to(beNil());
164164

ObjectiveGitTests/GTReferenceSpec.m

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
expect(repository).notTo(beNil());
6363

6464
NSError *error;
65-
reference = [repository createReferenceNamed:testRefName fromOID:testRefOID committer:nil message:nil error:&error];
65+
reference = [repository createReferenceNamed:testRefName fromOID:testRefOID message:nil error:&error];
6666
expect(reference).notTo(beNil());
6767
expect(reference.name).to(equal(testRefName));
6868
expect(reference.targetSHA).to(equal(testRefOID.SHA));
@@ -80,7 +80,7 @@
8080
it(@"should be able to change the target", ^{
8181
NSString *newRefTarget = @"5b5b025afb0b4c913b4c338a42934a3863bf3644";
8282

83-
GTReference *updatedRef = [reference referenceByUpdatingTarget:newRefTarget committer:nil message:nil error:NULL];
83+
GTReference *updatedRef = [reference referenceByUpdatingTarget:newRefTarget message:nil error:NULL];
8484
expect(updatedRef).notTo(beNil());
8585
expect(updatedRef.name).to(equal(testRefName));
8686
expect(updatedRef.targetSHA).to(equal(newRefTarget));
@@ -154,7 +154,7 @@
154154
expect(target).notTo(beNil());
155155

156156
NSError *error = nil;
157-
GTReference *ref = [bareRepository createReferenceNamed:@"refs/heads/unit_test" fromReference:target committer:nil message:nil error:&error];
157+
GTReference *ref = [bareRepository createReferenceNamed:@"refs/heads/unit_test" fromReference:target message:nil error:&error];
158158
expect(error).to(beNil());
159159
expect(ref).notTo(beNil());
160160

@@ -166,7 +166,7 @@
166166
GTOID *target = [[GTOID alloc] initWithSHA:@"36060c58702ed4c2a40832c51758d5344201d89a"];
167167

168168
NSError *error = nil;
169-
GTReference *ref = [bareRepository createReferenceNamed:@"refs/heads/unit_test" fromOID:target committer:nil message:nil error:&error];
169+
GTReference *ref = [bareRepository createReferenceNamed:@"refs/heads/unit_test" fromOID:target message:nil error:&error];
170170
expect(error).to(beNil());
171171
expect(ref).notTo(beNil());
172172

@@ -179,7 +179,7 @@
179179
GTOID *target = [[GTOID alloc] initWithSHA:@"36060c58702ed4c2a40832c51758d5344201d89a"];
180180

181181
NSError *error = nil;
182-
GTReference *ref = [bareRepository createReferenceNamed:@"refs/heads/unit_test" fromOID:target committer:nil message:nil error:&error];
182+
GTReference *ref = [bareRepository createReferenceNamed:@"refs/heads/unit_test" fromOID:target message:nil error:&error];
183183

184184
expect(error).to(beNil());
185185
expect(ref).notTo(beNil());

ObjectiveGitTests/GTRemotePushSpec.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
GTBranch *branch1 = localBranchWithName(@"master", localRepo);
187187

188188
// Create refs/heads/new_master on local
189-
[localRepo createReferenceNamed:@"refs/heads/new_master" fromReference:branch1.reference committer:localRepo.userSignatureForNow message:@"Create new_master branch" error:&error];
189+
[localRepo createReferenceNamed:@"refs/heads/new_master" fromReference:branch1.reference message:@"Create new_master branch" error:&error];
190190
GTBranch *branch2 = localBranchWithName(@"new_master", localRepo);
191191

192192
BOOL result = [localRepo pushBranches:@[ branch1, branch2 ] toRemote:remote withOptions:nil error:&error progress:NULL];

ObjectiveGitTests/GTRepositorySpec.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@
276276
NSString *branchName = @"new-test-branch";
277277

278278
NSError *error = nil;
279-
GTBranch *newBranch = [repository createBranchNamed:branchName fromOID:[[GTOID alloc] initWithSHA:currentBranch.SHA] committer:nil message:nil error:&error];
279+
GTBranch *newBranch = [repository createBranchNamed:branchName fromOID:[[GTOID alloc] initWithSHA:currentBranch.SHA] message:nil error:&error];
280280
expect(newBranch).notTo(beNil());
281281
expect(error).to(beNil());
282282

0 commit comments

Comments
 (0)