New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release/3.14.1 #1264
Release/3.14.1 #1264
Changes from 2 commits
1b265af
57ec26d
db2c3ce
b547943
a4c4d2f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1374,6 +1374,20 @@ class PurchasesTests: XCTestCase { | |
expect(self.receiptFetcher.receiptDataCalled).to(beTrue()) | ||
} | ||
|
||
func testGetEligibilityDoesntRefreshReceipt() { | ||
setupPurchases() | ||
self.receiptFetcher.shouldReturnReceipt = false | ||
|
||
expect(self.requestFetcher.refreshReceiptCalled) == false | ||
expect(self.receiptFetcher.receiptDataCalled) == false | ||
|
||
purchases!.checkTrialOrIntroductoryPriceEligibility([]) { (eligibilities) in | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. great catch!! I was mislead because we're actually treating |
||
} | ||
|
||
expect(self.receiptFetcher.receiptDataCalled) == true | ||
expect(self.requestFetcher.refreshReceiptCalled) == false | ||
} | ||
|
||
func testFetchVersionSendsAReceiptIfNoVersion() { | ||
setupPurchases() | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LOL I went to fix it and I made it worse