From 9b2182e0b7ea7b7ed88721976ddcd1129a05fb2f Mon Sep 17 00:00:00 2001 From: Ben Guo Date: Fri, 21 Apr 2017 14:12:17 -0400 Subject: [PATCH] fix flaky KVO test --- Tests/Tests/STPPaymentCardTextFieldTest.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Tests/STPPaymentCardTextFieldTest.m b/Tests/Tests/STPPaymentCardTextFieldTest.m index 3f092dd4c31..e8fb9a376b9 100644 --- a/Tests/Tests/STPPaymentCardTextFieldTest.m +++ b/Tests/Tests/STPPaymentCardTextFieldTest.m @@ -419,7 +419,7 @@ - (void)testSetCard_empty_whileEditingNumber { } - (void)testIsValidKVO { - id observer = OCMClassMock([NSObject class]); + id observer = OCMClassMock([UIViewController class]); self.sut.numberField.text = @"4242424242424242"; self.sut.expirationField.text = @"10/99"; XCTAssertFalse(self.sut.isValid);