Skip to content

Instantly share code, notes, and snippets.

@hartbit
Created March 14, 2012 18:09
Show Gist options
  • Select an option

  • Save hartbit/2038311 to your computer and use it in GitHub Desktop.

Select an option

Save hartbit/2038311 to your computer and use it in GitHub Desktop.
__block Texture* asyncTexture = nil;
[resourceManager textureWithName:VALID completion:^(Texture* texture) {
asyncTexture = texture;
}];
expect(asyncTexture).willNot.beNil();
expect([resourceManager resourceIsLoadedWithName:VALID]).will.beTruthy();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment