{"action":"created","comment":{"url":"https://api.github.com/repos/artsy/eigen/pulls/comments/29685768","id":29685768,"diff_hunk":"@@ -0,0 +1,170 @@\n+#import \"ARPostFeedItem.h\"\n+#import \"ARPartnerShowFeedItem.h\"\n+\n+SpecBegin (ARStubbedFairNetworkModel)\n+\n+__block ARFairNetworkModel *networkModel;\n+__block Fair *fair;\n+before(^{\n+    fair = [Fair modelWithJSON:@{ @\"id\" : @\"fair-id\", @\"name\" : @\"The Armory Show\", @\"organizer\" : @{ @\"profile_id\" : @\"fair-profile-id\" } }];\n+    networkModel = [[ARFairNetworkModel alloc] init];\n+});\n+\n+describe(@\"getFairInfo\", ^{\n+    before(^{\n+        [OHHTTPStubs stubJSONResponseAtPath:@\"/api/v1/fair/fair-id\" withResponse:@{\n+            @\"id\" : @\"fair-id\",\n+            @\"name\" : @\"The Fair Name\",\n+            @\"start_at\" : @\"1976-01-30T15:00:00+00:00\",\n+            @\"end_at\" : @\"1976-02-02T15:00:00+00:00\"\n+        }];\n+    });","path":"Artsy Tests/ARFairNetworkModelTests.m","position":21,"original_position":21,"commit_id":"6297db841aa77aa1b77024a978e03f66c52dad19","original_commit_id":"6297db841aa77aa1b77024a978e03f66c52dad19","user":{"login":"1aurabrown","id":3171662,"avatar_url":"https://avatars.githubusercontent.com/u/3171662?v=3","gravatar_id":"","url":"https://api.github.com/users/1aurabrown","html_url":"https://github.com/1aurabrown","followers_url":"https://api.github.com/users/1aurabrown/followers","following_url":"https://api.github.com/users/1aurabrown/following{/other_user}","gists_url":"https://api.github.com/users/1aurabrown/gists{/gist_id}","starred_url":"https://api.github.com/users/1aurabrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1aurabrown/subscriptions","organizations_url":"https://api.github.com/users/1aurabrown/orgs","repos_url":"https://api.github.com/users/1aurabrown/repos","events_url":"https://api.github.com/users/1aurabrown/events{/privacy}","received_events_url":"https://api.github.com/users/1aurabrown/received_events","type":"User","site_admin":false},"body":"In `ARFairNetworkModelTests` tests i use ohhttpstubs to stub responses and test the actual methods on `ARFairNetworkModel`. Everywhere else, I use `ARStubbedFairNetworkModel`, which overrides all these methods, to provide stubbed data synchronously. ","created_at":"2015-05-05T16:23:26Z","updated_at":"2015-05-05T16:23:26Z","html_url":"https://github.com/artsy/eigen/pull/416#discussion_r29685768","pull_request_url":"https://api.github.com/repos/artsy/eigen/pulls/416","_links":{"self":{"href":"https://api.github.com/repos/artsy/eigen/pulls/comments/29685768"},"html":{"href":"https://github.com/artsy/eigen/pull/416#discussion_r29685768"},"pull_request":{"href":"https://api.github.com/repos/artsy/eigen/pulls/416"}}},"pull_request":{"url":"https://api.github.com/repos/artsy/eigen/pulls/416","id":34741306,"html_url":"https://github.com/artsy/eigen/pull/416","diff_url":"https://github.com/artsy/eigen/pull/416.diff","patch_url":"https://github.com/artsy/eigen/pull/416.patch","issue_url":"https://api.github.com/repos/artsy/eigen/issues/416","number":416,"state":"open","locked":false,"title":"@alloy -> Add a fair network model","user":{"login":"1aurabrown","id":3171662,"avatar_url":"https://avatars.githubusercontent.com/u/3171662?v=3","gravatar_id":"","url":"https://api.github.com/users/1aurabrown","html_url":"https://github.com/1aurabrown","followers_url":"https://api.github.com/users/1aurabrown/followers","following_url":"https://api.github.com/users/1aurabrown/following{/other_user}","gists_url":"https://api.github.com/users/1aurabrown/gists{/gist_id}","starred_url":"https://api.github.com/users/1aurabrown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/1aurabrown/subscriptions","organizations_url":"https://api.github.com/users/1aurabrown/orgs","repos_url":"https://api.github.com/users/1aurabrown/repos","events_url":"https://api.github.com/users/1aurabrown/events{/privacy}","received_events_url":"https://api.github.com/users/1aurabrown/received_events","type":"User","site_admin":false},"body":"A very basic implementation of a fair network model to proxy some artsy api methods, so that we can return stubbed data synchronously in tests. This fixes some intermittent failures that I was seeing. Also did some overall re-organizing of some of the fair-related tests.","created_at":"2015-05-05T16:20:26Z","updated_at":"2015-05-05T16:23:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"142d27cd7929a2ce35662086039f157748cc87c4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/artsy/eigen/pulls/416/commits","review_comments_url":"https://api.github.com/repos/artsy/eigen/pulls/416/comments","review_comment_url":"https://api.github.com/repos/artsy/eigen/pulls/comments{/number}","comments_url":"https://api.github.com/repos/artsy/eigen/issues/416/comments","statuses_url":"https://api.github.com/repos/artsy/eigen/statuses/6297db841aa77aa1b77024a978e03f66c52dad19","head":{"label":"artsy:laura-snapshots","ref":"laura-snapshots","sha":"6297db841aa77aa1b77024a978e03f66c52dad19","user":{"login":"artsy","id":546231,"avatar_url":"https://avatars.githubusercontent.com/u/546231?v=3","gravatar_id":"","url":"https://api.github.com/users/artsy","html_url":"https://github.com/artsy","followers_url":"https://api.github.com/users/artsy/followers","following_url":"https://api.github.com/users/artsy/following{/other_user}","gists_url":"https://api.github.com/users/artsy/gists{/gist_id}","starred_url":"https://api.github.com/users/artsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsy/subscriptions","organizations_url":"https://api.github.com/users/artsy/orgs","repos_url":"https://api.github.com/users/artsy/repos","events_url":"https://api.github.com/users/artsy/events{/privacy}","received_events_url":"https://api.github.com/users/artsy/received_events","type":"Organization","site_admin":false},"repo":{"id":29702213,"name":"eigen","full_name":"artsy/eigen","owner":{"login":"artsy","id":546231,"avatar_url":"https://avatars.githubusercontent.com/u/546231?v=3","gravatar_id":"","url":"https://api.github.com/users/artsy","html_url":"https://github.com/artsy","followers_url":"https://api.github.com/users/artsy/followers","following_url":"https://api.github.com/users/artsy/following{/other_user}","gists_url":"https://api.github.com/users/artsy/gists{/gist_id}","starred_url":"https://api.github.com/users/artsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsy/subscriptions","organizations_url":"https://api.github.com/users/artsy/orgs","repos_url":"https://api.github.com/users/artsy/repos","events_url":"https://api.github.com/users/artsy/events{/privacy}","received_events_url":"https://api.github.com/users/artsy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/artsy/eigen","description":"The Art World in Your Pocket, Artsy's iOS app.","fork":false,"url":"https://api.github.com/repos/artsy/eigen","forks_url":"https://api.github.com/repos/artsy/eigen/forks","keys_url":"https://api.github.com/repos/artsy/eigen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/artsy/eigen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/artsy/eigen/teams","hooks_url":"https://api.github.com/repos/artsy/eigen/hooks","issue_events_url":"https://api.github.com/repos/artsy/eigen/issues/events{/number}","events_url":"https://api.github.com/repos/artsy/eigen/events","assignees_url":"https://api.github.com/repos/artsy/eigen/assignees{/user}","branches_url":"https://api.github.com/repos/artsy/eigen/branches{/branch}","tags_url":"https://api.github.com/repos/artsy/eigen/tags","blobs_url":"https://api.github.com/repos/artsy/eigen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/artsy/eigen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/artsy/eigen/git/refs{/sha}","trees_url":"https://api.github.com/repos/artsy/eigen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/artsy/eigen/statuses/{sha}","languages_url":"https://api.github.com/repos/artsy/eigen/languages","stargazers_url":"https://api.github.com/repos/artsy/eigen/stargazers","contributors_url":"https://api.github.com/repos/artsy/eigen/contributors","subscribers_url":"https://api.github.com/repos/artsy/eigen/subscribers","subscription_url":"https://api.github.com/repos/artsy/eigen/subscription","commits_url":"https://api.github.com/repos/artsy/eigen/commits{/sha}","git_commits_url":"https://api.github.com/repos/artsy/eigen/git/commits{/sha}","comments_url":"https://api.github.com/repos/artsy/eigen/comments{/number}","issue_comment_url":"https://api.github.com/repos/artsy/eigen/issues/comments{/number}","contents_url":"https://api.github.com/repos/artsy/eigen/contents/{+path}","compare_url":"https://api.github.com/repos/artsy/eigen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/artsy/eigen/merges","archive_url":"https://api.github.com/repos/artsy/eigen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/artsy/eigen/downloads","issues_url":"https://api.github.com/repos/artsy/eigen/issues{/number}","pulls_url":"https://api.github.com/repos/artsy/eigen/pulls{/number}","milestones_url":"https://api.github.com/repos/artsy/eigen/milestones{/number}","notifications_url":"https://api.github.com/repos/artsy/eigen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/artsy/eigen/labels{/name}","releases_url":"https://api.github.com/repos/artsy/eigen/releases{/id}","created_at":"2015-01-22T21:52:39Z","updated_at":"2015-05-05T15:57:19Z","pushed_at":"2015-05-05T16:20:26Z","git_url":"git://github.com/artsy/eigen.git","ssh_url":"git@github.com:artsy/eigen.git","clone_url":"https://github.com/artsy/eigen.git","svn_url":"https://github.com/artsy/eigen","homepage":"http://iphone.artsy.net","size":45585,"stargazers_count":663,"watchers_count":663,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":80,"mirror_url":null,"open_issues_count":107,"forks":80,"open_issues":107,"watchers":663,"default_branch":"master"}},"base":{"label":"artsy:master","ref":"master","sha":"efebbc3a1045d39adc5c090baa8f3898b5ed1c5c","user":{"login":"artsy","id":546231,"avatar_url":"https://avatars.githubusercontent.com/u/546231?v=3","gravatar_id":"","url":"https://api.github.com/users/artsy","html_url":"https://github.com/artsy","followers_url":"https://api.github.com/users/artsy/followers","following_url":"https://api.github.com/users/artsy/following{/other_user}","gists_url":"https://api.github.com/users/artsy/gists{/gist_id}","starred_url":"https://api.github.com/users/artsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsy/subscriptions","organizations_url":"https://api.github.com/users/artsy/orgs","repos_url":"https://api.github.com/users/artsy/repos","events_url":"https://api.github.com/users/artsy/events{/privacy}","received_events_url":"https://api.github.com/users/artsy/received_events","type":"Organization","site_admin":false},"repo":{"id":29702213,"name":"eigen","full_name":"artsy/eigen","owner":{"login":"artsy","id":546231,"avatar_url":"https://avatars.githubusercontent.com/u/546231?v=3","gravatar_id":"","url":"https://api.github.com/users/artsy","html_url":"https://github.com/artsy","followers_url":"https://api.github.com/users/artsy/followers","following_url":"https://api.github.com/users/artsy/following{/other_user}","gists_url":"https://api.github.com/users/artsy/gists{/gist_id}","starred_url":"https://api.github.com/users/artsy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artsy/subscriptions","organizations_url":"https://api.github.com/users/artsy/orgs","repos_url":"https://api.github.com/users/artsy/repos","events_url":"https://api.github.com/users/artsy/events{/privacy}","received_events_url":"https://api.github.com/users/artsy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/artsy/eigen","description":"The Art World in Your Pocket, Artsy's iOS app.","fork":false,"url":"https://api.github.com/repos/artsy/eigen","forks_url":"https://api.github.com/repos/artsy/eigen/forks","keys_url":"https://api.github.com/repos/artsy/eigen/keys{/key_id}","collaborators_url":"https://api.github.com/repos/artsy/eigen/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/artsy/eigen/teams","hooks_url":"https://api.github.com/repos/artsy/eigen/hooks","issue_events_url":"https://api.github.com/repos/artsy/eigen/issues/events{/number}","events_url":"https://api.github.com/repos/artsy/eigen/events","assignees_url":"https://api.github.com/repos/artsy/eigen/assignees{/user}","branches_url":"https://api.github.com/repos/artsy/eigen/branches{/branch}","tags_url":"https://api.github.com/repos/artsy/eigen/tags","blobs_url":"https://api.github.com/repos/artsy/eigen/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/artsy/eigen/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/artsy/eigen/git/refs{/sha}","trees_url":"https://api.github.com/repos/artsy/eigen/git/trees{/sha}","statuses_url":"https://api.github.com/repos/artsy/eigen/statuses/{sha}","languages_url":"https://api.github.com/repos/artsy/eigen/languages","stargazers_url":"https://api.github.com/repos/artsy/eigen/stargazers","contributors_url":"https://api.github.com/repos/artsy/eigen/contributors","subscribers_url":"https://api.github.com/repos/artsy/eigen/subscribers","subscription_url":"https://api.github.com/repos/artsy/eigen/subscription","commits_url":"https://api.github.com/repos/artsy/eigen/commits{/sha}","git_commits_url":"https://api.github.com/repos/artsy/eigen/git/commits{/sha}","comments_url":"https://api.github.com/repos/artsy/eigen/comments{/number}","issue_comment_url":"https://api.github.com/repos/artsy/eigen/issues/comments{/number}","contents_url":"https://api.github.com/repos/artsy/eigen/contents/{+path}","compare_url":"https://api.github.com/repos/artsy/eigen/compare/{base}...{head}","merges_url":"https://api.github.com/repos/artsy/eigen/merges","archive_url":"https://api.github.com/repos/artsy/eigen/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/artsy/eigen/downloads","issues_url":"https://api.github.com/repos/artsy/eigen/issues{/number}","pulls_url":"https://api.github.com/repos/artsy/eigen/pulls{/number}","milestones_url":"https://api.github.com/repos/artsy/eigen/milestones{/number}","notifications_url":"https://api.github.com/repos/artsy/eigen/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/artsy/eigen/labels{/name}","releases_url":"https://api.github.com/repos/artsy/eigen/releases{/id}","created_at":"2015-01-22T21:52:39Z","updated_at":"2015-05-05T15:57:19Z","pushed_at":"2015-05-05T16:20:26Z","git_url":"git://github.com/artsy/eigen.git","ssh_url":"git@github.com:artsy/eigen.git","clone_url":"https://github.com/artsy/eigen.git","svn_url":"https://github.com/artsy/eigen","homepage":"http://iphone.artsy.net","size":45585,"stargazers_count":663,"watchers_count":663,"language":"Objective-C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":80,"mirror_url":null,"open_issues_count":107,"forks":80,"open_issues":107,"watchers":663,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/artsy/eigen/pulls/416"},"html":{"href":"https://github.com/artsy/eigen/pull/416"},"issue":{"href":"https://api.github.com/repos/artsy/eigen/issues/416"},"comments":{"href":"https://api.github.com/repos/artsy/eigen/issues/416/comments"},"review_comments":{"href":"https://api.github.com/repos/artsy/eigen/pulls/416/comments"},"review_comment":{"href":"https://api.github.com/repos/artsy/eigen/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/artsy/eigen/pulls/416/commits"},"statuses":{"href":"https://api.github.com/repos/artsy/eigen/statuses/6297db841aa77aa1b77024a978e03f66c52dad19"}}}}