Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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"
```