43 Commits

Author SHA1 Message Date
Tony Arnold
eb8865ae67 Add Clang-style documentation for the MagicalSaves category.
Also add Clang's -Wdocumentation warning to assist in writing in future documentation.
2013-01-02 08:44:20 +11:00
Tony Arnold
0c83121cb0 Fix broken GHUnit tests after recent changes to the save methods 2013-01-02 01:05:33 +11:00
Tony Arnold
065352d80d Execute save completion blocks on the main dispatch queue.
Addresses #351 in the context of saving.
2013-01-02 00:56:17 +11:00
Tony Arnold
357b62e323 Alter saveWithBlock: so that it runs asynchronously. Fixes #349. 2013-01-02 00:56:07 +11:00
Stephen Vanterpool
36d1630f8e Added additional case that will trigger persistant store cleanup 2012-12-27 16:03:45 -08:00
Tony Arnold
c2fa8c4859 All deprecated and non-deprecated methods have tests to ensure their function 2012-12-16 20:39:34 +11:00
Tony Arnold
2c66056016 The deprecated saveWithBlock: method should do it's work on the current thread 2012-12-16 20:39:34 +11:00
Tony Arnold
a28d4210ac Flesh out tests for MagicalRecord+Actions and the NSManagedObjectContext+MagicalSaves category 2012-12-16 20:39:34 +11:00
Tony Arnold
55af799d60 Add Kiwi for saner asynchronous testing and remove existing GHUnit tests for save methods 2012-12-16 20:39:29 +11:00
Tony Arnold
d0e771d778 Update gitignore and remove user specific xcuserdata 2012-12-16 20:39:01 +11:00
Tony Arnold
af84aff8f1 Fix compilation problems under latest Xcode. 2012-12-16 20:39:01 +11:00
Tony Arnold
c763d4ad91 Update existing save tests to reflect save changes. Also begin adding tests for deprecated methods to ensure consistent behaviour in unmodified code. 2012-12-16 20:39:01 +11:00
Tony Arnold
d41d744ece Test that the current thread saveWith method actually saves 2012-10-15 22:58:29 -07:00
Stephen Vanterpool
b81e70d6b6 Rolled back a commit that broke things if cleanup was used. It created the action_queue in a dispatch_once block, and never recreated it after a cleanup 2012-10-15 20:34:54 -07:00
Stephen Vanterpool
2660e73adf Added new nestedContextSave method with completion handler 2012-10-02 17:18:33 -07:00
Stephen Vanterpool
0b00e39b26 Making all relevant contexts obtain a permanent id before saving 2012-09-27 23:17:16 -07:00
Stephen Vanterpool
0e34179760 Automatically obtain permanent IDs when saving the default context. This should fix several crashes the community is hitting
Added tests
2012-09-27 23:07:33 -07:00
Stephen Vanterpool
25081d0b3c Modifiying generateShorthand.rb to use user specified ruby 2012-09-27 21:34:03 -07:00
Stephen Vanterpool
2df10b156c Updated test model to actually build 2012-09-22 22:40:22 -07:00
Stephen Vanterpool
3bc55de6ae Fixing formatting issues to match project style 2012-09-06 13:44:44 -07:00
Stephen Vanterpool
cff03044c5 Added expecta matchers for tests 2012-09-06 13:32:15 -07:00
Stephen Vanterpool
22311b7736 Making background save asynchronous and fix the callback not firing 2012-09-06 13:27:07 -07:00
Saul Mora
77aa7a769b MR_contextThatNotifiesDefaultContextOnMainThread is a redundant version of the newer method, MR_contextThatPushesChangesToDefaultContext 2012-05-26 22:26:53 -06:00
Saul Mora
e4cd1704cc Add a background data queue for saveInBackground action methods
Fix a typo method name
Fix compile warnings for Mac and iOS
2012-05-26 16:42:07 -06:00
Saul Mora
944345cb51 typechange frameworks for git 2012-05-19 09:14:39 -06:00
Saul Mora
f2e23bf660 Update project settings
correct minor printf formats
2012-05-19 09:12:53 -06:00
Saul Mora
4508422485 Re-saved model file with Xcode 2012-05-19 09:01:43 -06:00
Saul Mora
4931cc222d Fix unit test projects for Mac and iOS 2012-05-09 13:36:18 -06:00
Saul Mora
5c5ea831ec Fixing test frameworks :(
Making each file more standalone for piecemeal includes, or to allow includes from other than the main PCH file
2012-05-09 12:42:56 -06:00
Saul Mora
f3eddb17a6 Add stricter build settings
Add new Root Saving context in conjunction with the Default Context
2012-03-27 13:39:55 +01:00
Saul Mora
94cf4b8809 Fixing broke unit tests
removing distinction between import and update….all imports will verify relational integrity.
2012-03-26 00:05:56 +01:00
Saul Mora
73e8b7d3a5 Moving files around for easier import to Xcode 2012-03-13 14:29:50 +01:00
Saul Mora
ab7d099d93 minor cleanup 2012-03-13 14:04:58 +01:00
Saul Mora
e0f2492b61 Refactoring import methods and names 2012-03-12 17:49:04 +01:00
Saul Mora
c9c8d2473a Fix unit tests
Extract out some more categories on NSManagedObjectContext
2012-03-09 14:59:54 +01:00
Saul Mora
7d42e17ae5 Refactor save* method names 2012-03-08 23:35:05 +01:00
Saul Mora
9da8cf802d Fixing unit tests 2012-03-08 22:51:40 +01:00
Saul Mora
df242726d9 Extracted MagicalRecord helper methods into separate category files 2012-03-07 16:24:48 +01:00
Saul Mora
666550b444 Fixing unit tests to at least run
moving project files around a little
2012-03-06 19:59:06 +01:00
Saul Mora
b1314b7c2a File reorg, updating the README 2012-03-06 19:34:50 +01:00
Saul Mora
390e7f8126 Removing files not deleted during previous merge 2012-03-06 19:18:02 +01:00
Saul Mora
05b95c08fa Merge branch 'master' into 2.0
Conflicts:
	Project Files/Mac App Unit Tests/Frameworks/GHUnit.framework/GHUnit
	Project Files/Mac App Unit Tests/Frameworks/GHUnit.framework/Headers
	Project Files/Mac App Unit Tests/Frameworks/GHUnit.framework/Resources
	Project Files/Mac App Unit Tests/Frameworks/GHUnit.framework/Versions/Current
	Project Files/Mac App Unit Tests/Frameworks/OCHamcrest.framework/Headers
	Project Files/Mac App Unit Tests/Frameworks/OCHamcrest.framework/OCHamcrest
	Project Files/Mac App Unit Tests/Frameworks/OCHamcrest.framework/Resources
	Project Files/Mac App Unit Tests/Frameworks/OCHamcrest.framework/Versions/Current
	Project Files/Mac App Unit Tests/Frameworks/OCMock.framework/Headers
	Project Files/Mac App Unit Tests/Frameworks/OCMock.framework/OCMock
	Project Files/Mac App Unit Tests/Frameworks/OCMock.framework/Resources
	Project Files/Mac App Unit Tests/Frameworks/OCMock.framework/Versions/Current
	Project Files/Magical Record.xcodeproj/project.pbxproj
	Project Files/Unit Tests/MagicalDataImportTestCase.h
	Project Files/iOS App Unit Tests/Frameworks/GHUnitIOS.framework/GHUnitIOS
	Project Files/iOS App Unit Tests/Frameworks/GHUnitIOS.framework/Headers
	Project Files/iOS App Unit Tests/Frameworks/GHUnitIOS.framework/Resources
	Project Files/iOS App Unit Tests/Frameworks/GHUnitIOS.framework/Versions/Current
	Project Files/iOS App Unit Tests/Frameworks/OCHamcrestIOS.framework/Headers
	Project Files/iOS App Unit Tests/Frameworks/OCHamcrestIOS.framework/OCHamcrestIOS
	Project Files/iOS App Unit Tests/Frameworks/OCHamcrestIOS.framework/Resources
	Project Files/iOS App Unit Tests/Frameworks/OCHamcrestIOS.framework/Versions/Current
	Project Files/iOS App Unit Tests/Frameworks/OCMock.framework/Headers
	Project Files/iOS App Unit Tests/Frameworks/OCMock.framework/OCMock
	Project Files/iOS App Unit Tests/Frameworks/OCMock.framework/Resources
	Project Files/iOS App Unit Tests/Frameworks/OCMock.framework/Versions/Current
2012-03-06 19:14:22 +01:00
Saul Mora
c2ea71e3b4 reorganization of source and project files 2012-02-24 09:57:39 +01:00