MXGSynchronizeTest 1.1.0

MXGSynchronizeTest 1.1.0

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Dec 2014

Maintained by Max Goedjen.



  • By
  • Max Goedjen

Install with CocoaPods


target :MyAppTests, :exclusive => true do
    pod 'MXGSynchronizeTest'
end

Import into test

#import <MXGSynchronizeTest/XCTest+MXGSynchronizeTest.h>

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;
    }];
}];