Adding GHRunForInterval and GHRunUntilTimeoutWhileBlock as utilities to help test asynchronous runloop tasks. #101

Merged
merged 3 commits into from Oct 23, 2012

Conversation

Projects
None yet
2 participants
Contributor

johnboiles commented Oct 23, 2012

These are useful for testing things that may need some time to run on the main run loop. These methods allow the main loop to run without exiting the current test case. For example, these methods can be useful for allowing views to render fully before validating views in view tests.

Also moving a misplaced failing view test image.

John Boiles added some commits Oct 23, 2012

Instead of comparing NSDate's, I like to use NSTimeInterval doubles. Makes things a little easier to grok. Up to you though.

lg2m

@johnboiles johnboiles added a commit that referenced this pull request Oct 23, 2012

@johnboiles johnboiles Merge pull request #101 from johnboiles/master
Adding GHRunForInterval and GHRunUntilTimeoutWhileBlock as utilities to help test asynchronous runloop tasks.
f7b8d60

@johnboiles johnboiles merged commit f7b8d60 into gh-unit:master Oct 23, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment