https://github.com/keith/kscoredatatester
Core Data categories for easy testing with in memory stores
https://github.com/keith/kscoredatatester
Last synced: 21 days ago
JSON representation
Core Data categories for easy testing with in memory stores
- Host: GitHub
- URL: https://github.com/keith/kscoredatatester
- Owner: keith
- License: mit
- Created: 2015-01-15T05:47:13.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-19T14:40:25.000Z (about 11 years ago)
- Last Synced: 2025-02-01T20:24:14.849Z (over 1 year ago)
- Language: Objective-C
- Size: 230 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# KSCoreDataTester
[](https://travis-ci.org/keith/KSCoreDataTester)
Core Data categories to enable simple in memory store creation for
tests.
## Example with [specta](https://github.com/specta/specta)
```objective-c
__block NSManagedObjectContext *managedObjectContext;
beforeAll(^{
managedObjectContext = [NSManagedObjectContext contextForNewInMemoryStore];
});
beforeEach(^{
[managedObjectContext resetContextAndStores];
});
```
## Install with [CocoaPods](http://cocoapods.org)
```ruby
pod "KSCoreDataTester"
```