Parcourir la source

Fix up "double" stub (#298)

Co-authored-by: mdmathias <mdmathias@google.com>
dmaclach il y a 2 ans
Parent
commit
312d5068fc
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      GoogleSignIn/Tests/Unit/GIDSignInTest.m

+ 1 - 1
GoogleSignIn/Tests/Unit/GIDSignInTest.m

@@ -1494,7 +1494,7 @@ static NSString *const kNewScope = @"newScope";
                         authorizationResponse:SAVE_TO_ARG_BLOCK(updatedAuthorizationResponse)
                                   profileData:SAVE_TO_ARG_BLOCK(profileData)];
     } else {
-      [[[_user stub] andReturn:_user] alloc];
+      [[[_user expect] andReturn:_user] alloc];
       (void)[[[_user expect] andReturn:_user] initWithAuthState:SAVE_TO_ARG_BLOCK(authState)
                                                     profileData:SAVE_TO_ARG_BLOCK(profileData)];
     }