Last active
September 22, 2015 15:44
-
-
Save concertman/084ba933dbd08d4d8d1e to your computer and use it in GitHub Desktop.
assert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import XCTest | |
class USTAssert: XCTestCase { | |
func assertExistsWithWait(wait: NSTimeInterval, evaluatedWithObject object: AnyObject) -> XCTestExpectation { | |
let predicate = NSPredicate(format: "exists == true", argumentArray: nil) | |
let result = self.expectationForPredicate(predicate, evaluatedWithObject: object, handler: nil) | |
waitForExpectationsWithTimeout(wait, handler: nil) | |
return result | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment