Skip to content
This repository has been archived by the owner on Sep 12, 2018. It is now read-only.

added setDefaultModelFromClass for test purpose #39

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nanashi
Copy link
Contributor

@nanashi nanashi commented Oct 28, 2013

Support for Xcode Unit Test.

Example: in test case file

+(void)setUp{
  [super setUp];
  [[CoreDataManager sharedManager] setDefaultModelFromClass:[self class]];
  [[CoreDataManager sharedManager] useInMemoryStore];
}

Inspired by
http://www.cimgf.com/2012/05/15/unit-testing-with-core-data/
"Supporting Xcode’s Unit Test Support" Section

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant