Skip to content

Commit b3e79e0

Browse files
author
Ben Chatelain
committed
Remove tests for assertions
1 parent 302d1cf commit b3e79e0

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

ObjectiveGitTests/GTRemotePushSpec.m

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -100,32 +100,6 @@
100100
error = NULL;
101101
});
102102

103-
context(@"when -pushBranch: is given invalid parameters", ^{
104-
it(@"needs a non-nil branch", ^{
105-
XCTAssertThrowsSpecificNamed([localRepo pushBranch:nil toRemote:remote withOptions:nil error:&error progress:NULL], NSException, NSInternalInconsistencyException, @"should throw NSInternalInconsistencyException");
106-
});
107-
108-
it(@"needs a non-nil remote", ^{
109-
GTBranch *masterBranch = localBranchWithName(@"master", localRepo);
110-
XCTAssertThrowsSpecificNamed([localRepo pushBranch:masterBranch toRemote:nil withOptions:nil error:&error progress:NULL], NSException, NSInternalInconsistencyException, @"should throw NSInternalInconsistencyException");
111-
});
112-
});
113-
114-
context(@"when -pushBranches: is given invalid parameters", ^{
115-
it(@"needs a non-nil branch array", ^{
116-
XCTAssertThrowsSpecificNamed([localRepo pushBranches:nil toRemote:remote withOptions:nil error:&error progress:NULL], NSException, NSInternalInconsistencyException, @"should throw NSInternalInconsistencyException");
117-
});
118-
119-
it(@"needs a non-empty branch array", ^{
120-
XCTAssertThrowsSpecificNamed([localRepo pushBranches:@[] toRemote:remote withOptions:nil error:&error progress:NULL], NSException, NSInternalInconsistencyException, @"should throw NSInternalInconsistencyException");
121-
});
122-
123-
it(@"needs a non-nil remote", ^{
124-
GTBranch *masterBranch = localBranchWithName(@"master", localRepo);
125-
XCTAssertThrowsSpecificNamed([localRepo pushBranches:@[masterBranch] toRemote:nil withOptions:nil error:&error progress:NULL], NSException, NSInternalInconsistencyException, @"should throw NSInternalInconsistencyException");
126-
});
127-
});
128-
129103
context(@"when the local and remote branches are in sync", ^{
130104
it(@"should push no commits", ^{
131105
GTBranch *masterBranch = localBranchWithName(@"master", localRepo);

0 commit comments

Comments
 (0)