Skip to content

Instantly share code, notes, and snippets.

@fgarcia
Created October 30, 2012 23:20
Show Gist options
  • Select an option

  • Save fgarcia/3983738 to your computer and use it in GitHub Desktop.

Select an option

Save fgarcia/3983738 to your computer and use it in GitHub Desktop.
unit testing with coredata
{
Entity *_this;
}
- (void)setUp
{
[MagicalRecord setupCoreDataStackWithInMemoryStore];
_this = [Entity MR_createEntity];
}
- (void)tearDown
{
_this = nil;
[MagicalRecord cleanUp];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment