https://github.com/maxgoedjen/mxgsynchronizetest
https://github.com/maxgoedjen/mxgsynchronizetest
Last synced: 29 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/maxgoedjen/mxgsynchronizetest
- Owner: maxgoedjen
- License: mit
- Created: 2014-06-17T06:26:46.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-12-26T00:55:05.000Z (over 10 years ago)
- Last Synced: 2025-03-06T14:02:34.370Z (about 2 months ago)
- Language: Ruby
- Size: 210 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
MXGSynchronizeTest
==================You should probably use `XCTestExpectation` if you're using Xcode 6 or later instead of this.
==================Install with CocoaPods
```
target :MyAppTests, :exclusive => true do
pod 'MXGSynchronizeTest'
end```
## Import into test
```
#import
```## Test
```
[XCTest mxg_synchronizeTest:^(BOOL *finished) {
[MXGSomeService loadDataWithCompletion:^(id someObject, NSError *error) {
XCTAssertNil(error, @"Error should be nil");
XCTAssertNotNil(someObject, @"Response object should not be nil");
*finished = YES;
}];
}];
```