Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/keith/kscoredatatester
Core Data categories for easy testing with in memory stores
https://github.com/keith/kscoredatatester
Last synced: 3 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 (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-06-19T14:40:25.000Z (over 9 years ago)
- Last Synced: 2024-10-31T16:29:23.447Z (13 days 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
[![Build Status](https://travis-ci.org/keith/KSCoreDataTester.svg?branch=master)](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"
```