remove overlapping STPPaymentContext test

This commit is contained in:
Ben Guo 2016-09-19 15:12:41 -04:00
parent b74a1f945e
commit 186e0e547c
1 changed files with 1 additions and 8 deletions

View File

@ -96,18 +96,11 @@
XCTAssertTrue([itemTotalAmount isEqualToNumber:correctTotalAmount]);
}
- (void)testSummaryItems_generateAmountDecimalCurrency {
- (void)testSummaryItems_generateAmount {
STPPaymentContext *context = [[STPPaymentContext alloc] initWithAPIAdapter:[TestSTPBackendAPIAdapter new]];
context.paymentSummaryItems = [self testSummaryItems];
context.paymentCurrency = @"USD";
XCTAssertTrue(context.paymentAmount == 10000);
}
- (void)testSummaryItems_generateAmountNoDecimalCurrency {
STPPaymentContext *context = [[STPPaymentContext alloc] initWithAPIAdapter:[TestSTPBackendAPIAdapter new]];
context.paymentSummaryItems = [self testSummaryItems];
context.paymentCurrency = @"JPY";
XCTAssertTrue(context.paymentAmount == 100);
}
@end