Closed JanC closed 11 years ago
It sounds like you're using a fetch request without an entity. This isn't a data kit issue.
I just instantiate my SSManagedObject:
TMCard *card = [[TMCard alloc] init];
In your subclass, you need to define entityName
and make sure the model file is added to the tests target.
That's what I do
This is my model file:
The name ob my class and model entity is TMCard.
I did not override the entityName because the SSManagedObject impl uses the class name as the entity name and they are the same.
I believe the model file is somehow not copied to the test app.
Well sounds like you got it all setup. Sounds like an OCTest issue. I'd strongly recommend switching to SenTest/XCTest by the way.
okey, I'll try that. thanks
Hi, my app works fine with SSDataKit but when I try to run some Unit Tests, I get the exception
when instantiating a new managed object. My model definition is included in the test target.
any idea what is wrong?
cheers