Install dependencies and run tests
rake Dependencies, tests, archive in Release configuration and upload to TestFlight
rake testflight | +(void)uploadUserPhoto:(UIImage *)image | |
| success:(void (^)(void))success | |
| failure:(FailureBlock)failure | |
| { | |
| GTSessionManager * manager = [GTSessionManager manager]; | |
| NSString* tmpFilename = [NSString stringWithFormat:@"%f", [NSDate timeIntervalSinceReferenceDate]]; | |
| NSURL* tmpFileUrl = [NSURL fileURLWithPath:[NSTemporaryDirectory() stringByAppendingPathComponent:tmpFilename]]; | |
| NSString * query = [NSString stringWithFormat:@"%@user?auth_token=%@",[manager.baseURL absoluteString],[[UserManager shared] authToken]]; |
| @interface BitcoinLoaderSpecs : XCTestCase | |
| @property (nonatomic, strong) RateModel * rate; | |
| @end | |
| @implementation BitcoinLoaderSpecs | |
| - (void)setUp | |
| { | |
| [super setUp]; | |
| static bool isRunningTests() | |
| { | |
| NSDictionary* environment = [[NSProcessInfo processInfo] environment]; | |
| NSString* injectBundle = environment[@"XCInjectBundle"]; | |
| return [[injectBundle pathExtension] isEqualToString:@"xctest"]; | |
| } | |
| int main(int argc, char *argv[]) | |
| { | |
| @autoreleasepool |