Skip to content

Commit

Permalink
clean unit test comments
Browse files Browse the repository at this point in the history
  • Loading branch information
yramanchuk committed Oct 5, 2016
1 parent 5dcc177 commit d8f7705
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions FirebaseGoogleAuthUITests/FirebaseGoogleAuthUITests.m
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ - (void)testSuccessfullLogin {

OCMExpect([_mockProvider configuredGoogleSignIn]).andReturn(mockSignIn);


// OCMExpect([mockSignInDelegate signIn:mockSignIn didSignInForUser:mockGoogleUser withError:nil]);
// OCMExpect([mockSignIn signIn]).andCall(mockSignInDelegate, @selector(signIn:didSignInForUser:withError:));
//forward call to signIn delegate
OCMExpect([mockSignIn signIn]).andDo(^(NSInvocation *invocation) {
[mockSignInDelegate signIn:mockSignIn didSignInForUser:mockGoogleUser withError:nil];
});
Expand Down Expand Up @@ -136,8 +134,6 @@ - (void)testErrorLogin {
OCMExpect([_mockProvider configuredGoogleSignIn]).andReturn(mockSignIn);
NSError *signInError = [NSError errorWithDomain:@"sign in domain" code:kGIDSignInErrorCodeUnknown userInfo:@{}];

// OCMExpect([mockSignInDelegate signIn:mockSignIn didSignInForUser:mockGoogleUser withError:nil]);
// OCMExpect([mockSignIn signIn]).andCall(mockSignInDelegate, @selector(signIn:didSignInForUser:withError:));
OCMExpect([mockSignIn signIn]).andDo(^(NSInvocation *invocation) {
[mockSignInDelegate signIn:mockSignIn didSignInForUser:mockGoogleUser withError:signInError];
});
Expand Down Expand Up @@ -188,8 +184,6 @@ - (void)testCancelLogin {
OCMExpect([_mockProvider configuredGoogleSignIn]).andReturn(mockSignIn);
NSError *signInError = [NSError errorWithDomain:@"sign in domain" code:kGIDSignInErrorCodeCanceled userInfo:@{}];

// OCMExpect([mockSignInDelegate signIn:mockSignIn didSignInForUser:mockGoogleUser withError:nil]);
// OCMExpect([mockSignIn signIn]).andCall(mockSignInDelegate, @selector(signIn:didSignInForUser:withError:));
OCMExpect([mockSignIn signIn]).andDo(^(NSInvocation *invocation) {
[mockSignInDelegate signIn:mockSignIn didSignInForUser:mockGoogleUser withError:signInError];
});
Expand Down

0 comments on commit d8f7705

Please sign in to comment.