{"action":"created","comment":{"url":"https://api.github.com/repos/Syncano/syncano-ios/pulls/comments/48491151","id":48491151,"diff_hunk":"@@ -172,57 +174,57 @@\n     });\n     \n     context(@\"SCDataObject category\", ^{\n-       Syncano *syncano = [Syncano newSyncanoWithApiKey:@\"API-KEY\" instanceName:@\"INSTANCE-NAME\"];\n+ //      Syncano *syncano = [Syncano newSyncanoWithApiKey:@\"API-KEY\" instanceName:@\"INSTANCE-NAME\"];\n         \n-        it(@\"should get data objects for class with name\", ^{\n-            [OHHTTPStubs stubRequestsPassingTest:^BOOL(NSURLRequest *request) {\n-                return YES;\n-            } withStubResponse:^OHHTTPStubsResponse*(NSURLRequest *request) {\n-                return [OHHTTPStubsResponse responseWithFileAtPath:OHPathForFile(@\"Books.json\",self.class)\n-                                                        statusCode:200 headers:@{@\"Content-Type\":@\"application/json\"}];\n-            }];\n-            __block NSError *_error;\n-            __block BOOL _blockFinished;\n-            __block id _responseobject;\n-            SCAPIClient *apiClient = [SCAPIClient apiClientForSyncano:syncano];\n-            NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@\"%@INSTANCE-NAME/classes/book/objects/\",kBaseURL]];\n-            NSURLSessionDataTask *task = [apiClient getDataObjectsFromClassName:@\"book\" params:nil completion:^(NSURLSessionDataTask *task, id responseObject, NSError *error) {\n-                _error = error;\n-                _responseobject = responseObject;\n-                _blockFinished = YES;\n-            }];\n-            [[expectFutureValue(theValue(_blockFinished)) shouldEventually] beYes];\n-            [[_error shouldEventually] beNil];\n-            [[task.currentRequest.HTTPMethod should] equal:@\"GET\"];\n-            [[task.currentRequest.URL should] equal:url];\n-            [[task.currentRequest.allHTTPHeaderFields[@\"X-API-KEY\"] should] equal:@\"API-KEY\"];\n-            [[_responseobject[@\"objects\"] shouldEventually] beKindOfClass:[NSArray class]];\n-       });\n+//        it(@\"should get data objects for class with name\", ^{\n+//            [OHHTTPStubs stubRequestsPassingTest:^BOOL(NSURLRequest *request) {\n+//                return YES;\n+//            } withStubResponse:^OHHTTPStubsResponse*(NSURLRequest *request) {\n+//                return [OHHTTPStubsResponse responseWithFileAtPath:OHPathForFile(@\"Books.json\",self.class)\n+//                                                        statusCode:200 headers:@{@\"Content-Type\":@\"application/json\"}];\n+//            }];\n+//            __block NSError *_error;\n+//            __block BOOL _blockFinished;\n+//            __block id _responseobject;\n+//            SCAPIClient *apiClient = [SCAPIClient apiClientForSyncano:syncano];\n+//            NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@\"%@INSTANCE-NAME/classes/book/objects/\",kBaseURL]];\n+//            NSURLSessionDataTask *task = [apiClient getDataObjectsFromClassName:@\"book\" params:nil completion:^(NSURLSessionDataTask *task, id responseObject, NSError *error) {\n+//                _error = error;\n+//                _responseobject = responseObject;\n+//                _blockFinished = YES;\n+//            }];\n+//            [[expectFutureValue(theValue(_blockFinished)) shouldEventually] beYes];\n+//            [[_error shouldEventually] beNil];\n+//            [[task.currentRequest.HTTPMethod should] equal:@\"GET\"];\n+//            [[task.currentRequest.URL should] equal:url];\n+//            [[task.currentRequest.allHTTPHeaderFields[@\"X-API-KEY\"] should] equal:@\"API-KEY\"];\n+//            [[_responseobject[@\"objects\"] shouldEventually] beKindOfClass:[NSArray class]];\n+//       });\n         \n-        it(@\"should get data object for class with name and with id\", ^{\n-            [OHHTTPStubs stubRequestsPassingTest:^BOOL(NSURLRequest *request) {\n-                return YES;\n-            } withStubResponse:^OHHTTPStubsResponse*(NSURLRequest *request) {\n-                return [OHHTTPStubsResponse responseWithFileAtPath:OHPathForFile(@\"Books.json\",self.class)\n-                                                        statusCode:200 headers:@{@\"Content-Type\":@\"application/json\"}];\n-            }];\n-            __block NSError *_error;\n-            __block BOOL _blockFinished;\n-            __block id _responseobject;\n-            SCAPIClient *apiClient = [SCAPIClient apiClientForSyncano:syncano];\n-            NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@\"%@INSTANCE-NAME/classes/book/objects/2/\",kBaseURL]];\n-            NSURLSessionDataTask *task = [apiClient getDataObjectsFromClassName:@\"book\" withId:@2 completion:^(NSURLSessionDataTask *task, id responseObject, NSError *error) {\n-                _error = error;\n-                _responseobject = responseObject;\n-                _blockFinished = YES;\n-            }];\n-            [[expectFutureValue(theValue(_blockFinished)) shouldEventually] beYes];\n-            [[_error shouldEventually] beNil];\n-            [[task.currentRequest.HTTPMethod should] equal:@\"GET\"];\n-            [[task.currentRequest.URL should] equal:url];\n-            [[task.currentRequest.allHTTPHeaderFields[@\"X-API-KEY\"] should] equal:@\"API-KEY\"];\n-            [[_responseobject shouldEventually] beNonNil];\n-        });\n+//        it(@\"should get data object for class with name and with id\", ^{\n+//            [OHHTTPStubs stubRequestsPassingTest:^BOOL(NSURLRequest *request) {\n+//                return YES;\n+//            } withStubResponse:^OHHTTPStubsResponse*(NSURLRequest *request) {\n+//                return [OHHTTPStubsResponse responseWithFileAtPath:OHPathForFile(@\"Books.json\",self.class)\n+//                                                        statusCode:200 headers:@{@\"Content-Type\":@\"application/json\"}];\n+//            }];\n+//            __block NSError *_error;\n+//            __block BOOL _blockFinished;\n+//            __block id _responseobject;\n+//            SCAPIClient *apiClient = [SCAPIClient apiClientForSyncano:syncano];\n+//            NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@\"%@INSTANCE-NAME/classes/book/objects/2/\",kBaseURL]];\n+//            NSURLSessionDataTask *task = [apiClient getDataObjectsFromClassName:@\"book\" withId:@2 completion:^(NSURLSessionDataTask *task, id responseObject, NSError *error) {\n+//                _error = error;\n+//                _responseobject = responseObject;\n+//                _blockFinished = YES;\n+//            }];\n+//            [[expectFutureValue(theValue(_blockFinished)) shouldEventually] beYes];\n+//            [[_error shouldEventually] beNil];\n+//            [[task.currentRequest.HTTPMethod should] equal:@\"GET\"];\n+//            [[task.currentRequest.URL should] equal:url];\n+//            [[task.currentRequest.allHTTPHeaderFields[@\"X-API-KEY\"] should] equal:@\"API-KEY\"];\n+//            [[_responseobject shouldEventually] beNonNil];\n+//        });","path":"syncano-iosTests/SCAPIClientSpec.m","position":298,"original_position":298,"commit_id":"a1cf1773990686e126140305c9018946c004b29a","original_commit_id":"a1cf1773990686e126140305c9018946c004b29a","user":{"login":"lifcio","id":3170386,"avatar_url":"https://avatars.githubusercontent.com/u/3170386?v=3","gravatar_id":"","url":"https://api.github.com/users/lifcio","html_url":"https://github.com/lifcio","followers_url":"https://api.github.com/users/lifcio/followers","following_url":"https://api.github.com/users/lifcio/following{/other_user}","gists_url":"https://api.github.com/users/lifcio/gists{/gist_id}","starred_url":"https://api.github.com/users/lifcio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lifcio/subscriptions","organizations_url":"https://api.github.com/users/lifcio/orgs","repos_url":"https://api.github.com/users/lifcio/repos","events_url":"https://api.github.com/users/lifcio/events{/privacy}","received_events_url":"https://api.github.com/users/lifcio/received_events","type":"User","site_admin":false},"body":"Make sure at some point this code is uncommented or removed ;)","created_at":"2015-12-28T16:58:35Z","updated_at":"2015-12-28T16:58:35Z","html_url":"https://github.com/Syncano/syncano-ios/pull/48#discussion_r48491151","pull_request_url":"https://api.github.com/repos/Syncano/syncano-ios/pulls/48","_links":{"self":{"href":"https://api.github.com/repos/Syncano/syncano-ios/pulls/comments/48491151"},"html":{"href":"https://github.com/Syncano/syncano-ios/pull/48#discussion_r48491151"},"pull_request":{"href":"https://api.github.com/repos/Syncano/syncano-ios/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/Syncano/syncano-ios/pulls/48","id":54658764,"html_url":"https://github.com/Syncano/syncano-ios/pull/48","diff_url":"https://github.com/Syncano/syncano-ios/pull/48.diff","patch_url":"https://github.com/Syncano/syncano-ios/pull/48.patch","issue_url":"https://api.github.com/repos/Syncano/syncano-ios/issues/48","number":48,"state":"open","locked":false,"title":"Lib 349 run queue","user":{"login":"jaskooo","id":369252,"avatar_url":"https://avatars.githubusercontent.com/u/369252?v=3","gravatar_id":"","url":"https://api.github.com/users/jaskooo","html_url":"https://github.com/jaskooo","followers_url":"https://api.github.com/users/jaskooo/followers","following_url":"https://api.github.com/users/jaskooo/following{/other_user}","gists_url":"https://api.github.com/users/jaskooo/gists{/gist_id}","starred_url":"https://api.github.com/users/jaskooo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaskooo/subscriptions","organizations_url":"https://api.github.com/users/jaskooo/orgs","repos_url":"https://api.github.com/users/jaskooo/repos","events_url":"https://api.github.com/users/jaskooo/events{/privacy}","received_events_url":"https://api.github.com/users/jaskooo/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-28T14:31:26Z","updated_at":"2015-12-28T16:58:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cc43bc5126712882c963e6b8b11d1baa15a12cbb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Syncano/syncano-ios/pulls/48/commits","review_comments_url":"https://api.github.com/repos/Syncano/syncano-ios/pulls/48/comments","review_comment_url":"https://api.github.com/repos/Syncano/syncano-ios/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Syncano/syncano-ios/issues/48/comments","statuses_url":"https://api.github.com/repos/Syncano/syncano-ios/statuses/a1cf1773990686e126140305c9018946c004b29a","head":{"label":"Syncano:LIB-349-run-stop-resume-queue","ref":"LIB-349-run-stop-resume-queue","sha":"a1cf1773990686e126140305c9018946c004b29a","user":{"login":"Syncano","id":6367703,"avatar_url":"https://avatars.githubusercontent.com/u/6367703?v=3","gravatar_id":"","url":"https://api.github.com/users/Syncano","html_url":"https://github.com/Syncano","followers_url":"https://api.github.com/users/Syncano/followers","following_url":"https://api.github.com/users/Syncano/following{/other_user}","gists_url":"https://api.github.com/users/Syncano/gists{/gist_id}","starred_url":"https://api.github.com/users/Syncano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Syncano/subscriptions","organizations_url":"https://api.github.com/users/Syncano/orgs","repos_url":"https://api.github.com/users/Syncano/repos","events_url":"https://api.github.com/users/Syncano/events{/privacy}","received_events_url":"https://api.github.com/users/Syncano/received_events","type":"Organization","site_admin":false},"repo":{"id":18832511,"name":"syncano-ios","full_name":"Syncano/syncano-ios","owner":{"login":"Syncano","id":6367703,"avatar_url":"https://avatars.githubusercontent.com/u/6367703?v=3","gravatar_id":"","url":"https://api.github.com/users/Syncano","html_url":"https://github.com/Syncano","followers_url":"https://api.github.com/users/Syncano/followers","following_url":"https://api.github.com/users/Syncano/following{/other_user}","gists_url":"https://api.github.com/users/Syncano/gists{/gist_id}","starred_url":"https://api.github.com/users/Syncano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Syncano/subscriptions","organizations_url":"https://api.github.com/users/Syncano/orgs","repos_url":"https://api.github.com/users/Syncano/repos","events_url":"https://api.github.com/users/Syncano/events{/privacy}","received_events_url":"https://api.github.com/users/Syncano/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Syncano/syncano-ios","description":"iOS library for http://syncano.com API","fork":false,"url":"https://api.github.com/repos/Syncano/syncano-ios","forks_url":"https://api.github.com/repos/Syncano/syncano-ios/forks","keys_url":"https://api.github.com/repos/Syncano/syncano-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Syncano/syncano-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Syncano/syncano-ios/teams","hooks_url":"https://api.github.com/repos/Syncano/syncano-ios/hooks","issue_events_url":"https://api.github.com/repos/Syncano/syncano-ios/issues/events{/number}","events_url":"https://api.github.com/repos/Syncano/syncano-ios/events","assignees_url":"https://api.github.com/repos/Syncano/syncano-ios/assignees{/user}","branches_url":"https://api.github.com/repos/Syncano/syncano-ios/branches{/branch}","tags_url":"https://api.github.com/repos/Syncano/syncano-ios/tags","blobs_url":"https://api.github.com/repos/Syncano/syncano-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Syncano/syncano-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Syncano/syncano-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/Syncano/syncano-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Syncano/syncano-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/Syncano/syncano-ios/languages","stargazers_url":"https://api.github.com/repos/Syncano/syncano-ios/stargazers","contributors_url":"https://api.github.com/repos/Syncano/syncano-ios/contributors","subscribers_url":"https://api.github.com/repos/Syncano/syncano-ios/subscribers","subscription_url":"https://api.github.com/repos/Syncano/syncano-ios/subscription","commits_url":"https://api.github.com/repos/Syncano/syncano-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/Syncano/syncano-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/Syncano/syncano-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/Syncano/syncano-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/Syncano/syncano-ios/contents/{+path}","compare_url":"https://api.github.com/repos/Syncano/syncano-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Syncano/syncano-ios/merges","archive_url":"https://api.github.com/repos/Syncano/syncano-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Syncano/syncano-ios/downloads","issues_url":"https://api.github.com/repos/Syncano/syncano-ios/issues{/number}","pulls_url":"https://api.github.com/repos/Syncano/syncano-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/Syncano/syncano-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/Syncano/syncano-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Syncano/syncano-ios/labels{/name}","releases_url":"https://api.github.com/repos/Syncano/syncano-ios/releases{/id}","created_at":"2014-04-16T08:29:30Z","updated_at":"2015-11-25T07:57:00Z","pushed_at":"2015-12-28T14:31:26Z","git_url":"git://github.com/Syncano/syncano-ios.git","ssh_url":"git@github.com:Syncano/syncano-ios.git","clone_url":"https://github.com/Syncano/syncano-ios.git","svn_url":"https://github.com/Syncano/syncano-ios","homepage":"","size":538,"stargazers_count":6,"watchers_count":6,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":6,"default_branch":"master"}},"base":{"label":"Syncano:offline-support","ref":"offline-support","sha":"769ac01f23789385fa67a2af5bdb639b1e693290","user":{"login":"Syncano","id":6367703,"avatar_url":"https://avatars.githubusercontent.com/u/6367703?v=3","gravatar_id":"","url":"https://api.github.com/users/Syncano","html_url":"https://github.com/Syncano","followers_url":"https://api.github.com/users/Syncano/followers","following_url":"https://api.github.com/users/Syncano/following{/other_user}","gists_url":"https://api.github.com/users/Syncano/gists{/gist_id}","starred_url":"https://api.github.com/users/Syncano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Syncano/subscriptions","organizations_url":"https://api.github.com/users/Syncano/orgs","repos_url":"https://api.github.com/users/Syncano/repos","events_url":"https://api.github.com/users/Syncano/events{/privacy}","received_events_url":"https://api.github.com/users/Syncano/received_events","type":"Organization","site_admin":false},"repo":{"id":18832511,"name":"syncano-ios","full_name":"Syncano/syncano-ios","owner":{"login":"Syncano","id":6367703,"avatar_url":"https://avatars.githubusercontent.com/u/6367703?v=3","gravatar_id":"","url":"https://api.github.com/users/Syncano","html_url":"https://github.com/Syncano","followers_url":"https://api.github.com/users/Syncano/followers","following_url":"https://api.github.com/users/Syncano/following{/other_user}","gists_url":"https://api.github.com/users/Syncano/gists{/gist_id}","starred_url":"https://api.github.com/users/Syncano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Syncano/subscriptions","organizations_url":"https://api.github.com/users/Syncano/orgs","repos_url":"https://api.github.com/users/Syncano/repos","events_url":"https://api.github.com/users/Syncano/events{/privacy}","received_events_url":"https://api.github.com/users/Syncano/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Syncano/syncano-ios","description":"iOS library for http://syncano.com API","fork":false,"url":"https://api.github.com/repos/Syncano/syncano-ios","forks_url":"https://api.github.com/repos/Syncano/syncano-ios/forks","keys_url":"https://api.github.com/repos/Syncano/syncano-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Syncano/syncano-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Syncano/syncano-ios/teams","hooks_url":"https://api.github.com/repos/Syncano/syncano-ios/hooks","issue_events_url":"https://api.github.com/repos/Syncano/syncano-ios/issues/events{/number}","events_url":"https://api.github.com/repos/Syncano/syncano-ios/events","assignees_url":"https://api.github.com/repos/Syncano/syncano-ios/assignees{/user}","branches_url":"https://api.github.com/repos/Syncano/syncano-ios/branches{/branch}","tags_url":"https://api.github.com/repos/Syncano/syncano-ios/tags","blobs_url":"https://api.github.com/repos/Syncano/syncano-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Syncano/syncano-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Syncano/syncano-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/Syncano/syncano-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Syncano/syncano-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/Syncano/syncano-ios/languages","stargazers_url":"https://api.github.com/repos/Syncano/syncano-ios/stargazers","contributors_url":"https://api.github.com/repos/Syncano/syncano-ios/contributors","subscribers_url":"https://api.github.com/repos/Syncano/syncano-ios/subscribers","subscription_url":"https://api.github.com/repos/Syncano/syncano-ios/subscription","commits_url":"https://api.github.com/repos/Syncano/syncano-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/Syncano/syncano-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/Syncano/syncano-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/Syncano/syncano-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/Syncano/syncano-ios/contents/{+path}","compare_url":"https://api.github.com/repos/Syncano/syncano-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Syncano/syncano-ios/merges","archive_url":"https://api.github.com/repos/Syncano/syncano-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Syncano/syncano-ios/downloads","issues_url":"https://api.github.com/repos/Syncano/syncano-ios/issues{/number}","pulls_url":"https://api.github.com/repos/Syncano/syncano-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/Syncano/syncano-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/Syncano/syncano-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Syncano/syncano-ios/labels{/name}","releases_url":"https://api.github.com/repos/Syncano/syncano-ios/releases{/id}","created_at":"2014-04-16T08:29:30Z","updated_at":"2015-11-25T07:57:00Z","pushed_at":"2015-12-28T14:31:26Z","git_url":"git://github.com/Syncano/syncano-ios.git","ssh_url":"git@github.com:Syncano/syncano-ios.git","clone_url":"https://github.com/Syncano/syncano-ios.git","svn_url":"https://github.com/Syncano/syncano-ios","homepage":"","size":538,"stargazers_count":6,"watchers_count":6,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Syncano/syncano-ios/pulls/48"},"html":{"href":"https://github.com/Syncano/syncano-ios/pull/48"},"issue":{"href":"https://api.github.com/repos/Syncano/syncano-ios/issues/48"},"comments":{"href":"https://api.github.com/repos/Syncano/syncano-ios/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/Syncano/syncano-ios/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/Syncano/syncano-ios/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Syncano/syncano-ios/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/Syncano/syncano-ios/statuses/a1cf1773990686e126140305c9018946c004b29a"}}}}