{"action":"created","comment":{"url":"https://api.github.com/repos/selfup/API-Curious/pulls/comments/43304644","id":43304644,"diff_hunk":"@@ -0,0 +1,48 @@\n+require './test/test_helper'\n+\n+class GithubServiceTest < ActiveSupport::TestCase\n+  attr_reader :service, :user\n+\n+  def setup\n+    @user ||= User.create(nickname: \"selfup\", uid: \"github\", token: ENV[\"TOKEN\"])","path":"test/models/github_service_test.rb","position":7,"original_position":7,"commit_id":"88ba58e2ef9289c825401427b9f428080cfb887a","original_commit_id":"88ba58e2ef9289c825401427b9f428080cfb887a","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line is too long. [81/80]","created_at":"2015-10-28T19:19:29Z","updated_at":"2015-10-28T19:19:29Z","html_url":"https://github.com/selfup/API-Curious/pull/19#discussion_r43304644","pull_request_url":"https://api.github.com/repos/selfup/API-Curious/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/selfup/API-Curious/pulls/comments/43304644"},"html":{"href":"https://github.com/selfup/API-Curious/pull/19#discussion_r43304644"},"pull_request":{"href":"https://api.github.com/repos/selfup/API-Curious/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/selfup/API-Curious/pulls/19","id":49053953,"html_url":"https://github.com/selfup/API-Curious/pull/19","diff_url":"https://github.com/selfup/API-Curious/pull/19.diff","patch_url":"https://github.com/selfup/API-Curious/pull/19.patch","issue_url":"https://api.github.com/repos/selfup/API-Curious/issues/19","number":19,"state":"open","locked":false,"title":"Vcr","user":{"login":"selfup","id":9837366,"avatar_url":"https://avatars.githubusercontent.com/u/9837366?v=3","gravatar_id":"","url":"https://api.github.com/users/selfup","html_url":"https://github.com/selfup","followers_url":"https://api.github.com/users/selfup/followers","following_url":"https://api.github.com/users/selfup/following{/other_user}","gists_url":"https://api.github.com/users/selfup/gists{/gist_id}","starred_url":"https://api.github.com/users/selfup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selfup/subscriptions","organizations_url":"https://api.github.com/users/selfup/orgs","repos_url":"https://api.github.com/users/selfup/repos","events_url":"https://api.github.com/users/selfup/events{/privacy}","received_events_url":"https://api.github.com/users/selfup/received_events","type":"User","site_admin":false},"body":"Got all of my tests for services to work with vcr!","created_at":"2015-10-28T19:19:25Z","updated_at":"2015-10-28T19:19:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"74db7fb4bedcf19e8478d32c79f9f1529c2034ef","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/selfup/API-Curious/pulls/19/commits","review_comments_url":"https://api.github.com/repos/selfup/API-Curious/pulls/19/comments","review_comment_url":"https://api.github.com/repos/selfup/API-Curious/pulls/comments{/number}","comments_url":"https://api.github.com/repos/selfup/API-Curious/issues/19/comments","statuses_url":"https://api.github.com/repos/selfup/API-Curious/statuses/88ba58e2ef9289c825401427b9f428080cfb887a","head":{"label":"selfup:vcr","ref":"vcr","sha":"88ba58e2ef9289c825401427b9f428080cfb887a","user":{"login":"selfup","id":9837366,"avatar_url":"https://avatars.githubusercontent.com/u/9837366?v=3","gravatar_id":"","url":"https://api.github.com/users/selfup","html_url":"https://github.com/selfup","followers_url":"https://api.github.com/users/selfup/followers","following_url":"https://api.github.com/users/selfup/following{/other_user}","gists_url":"https://api.github.com/users/selfup/gists{/gist_id}","starred_url":"https://api.github.com/users/selfup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selfup/subscriptions","organizations_url":"https://api.github.com/users/selfup/orgs","repos_url":"https://api.github.com/users/selfup/repos","events_url":"https://api.github.com/users/selfup/events{/privacy}","received_events_url":"https://api.github.com/users/selfup/received_events","type":"User","site_admin":false},"repo":{"id":45001106,"name":"API-Curious","full_name":"selfup/API-Curious","owner":{"login":"selfup","id":9837366,"avatar_url":"https://avatars.githubusercontent.com/u/9837366?v=3","gravatar_id":"","url":"https://api.github.com/users/selfup","html_url":"https://github.com/selfup","followers_url":"https://api.github.com/users/selfup/followers","following_url":"https://api.github.com/users/selfup/following{/other_user}","gists_url":"https://api.github.com/users/selfup/gists{/gist_id}","starred_url":"https://api.github.com/users/selfup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selfup/subscriptions","organizations_url":"https://api.github.com/users/selfup/orgs","repos_url":"https://api.github.com/users/selfup/repos","events_url":"https://api.github.com/users/selfup/events{/privacy}","received_events_url":"https://api.github.com/users/selfup/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/selfup/API-Curious","description":"Implementing OAuth and Consuming an API","fork":false,"url":"https://api.github.com/repos/selfup/API-Curious","forks_url":"https://api.github.com/repos/selfup/API-Curious/forks","keys_url":"https://api.github.com/repos/selfup/API-Curious/keys{/key_id}","collaborators_url":"https://api.github.com/repos/selfup/API-Curious/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/selfup/API-Curious/teams","hooks_url":"https://api.github.com/repos/selfup/API-Curious/hooks","issue_events_url":"https://api.github.com/repos/selfup/API-Curious/issues/events{/number}","events_url":"https://api.github.com/repos/selfup/API-Curious/events","assignees_url":"https://api.github.com/repos/selfup/API-Curious/assignees{/user}","branches_url":"https://api.github.com/repos/selfup/API-Curious/branches{/branch}","tags_url":"https://api.github.com/repos/selfup/API-Curious/tags","blobs_url":"https://api.github.com/repos/selfup/API-Curious/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/selfup/API-Curious/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/selfup/API-Curious/git/refs{/sha}","trees_url":"https://api.github.com/repos/selfup/API-Curious/git/trees{/sha}","statuses_url":"https://api.github.com/repos/selfup/API-Curious/statuses/{sha}","languages_url":"https://api.github.com/repos/selfup/API-Curious/languages","stargazers_url":"https://api.github.com/repos/selfup/API-Curious/stargazers","contributors_url":"https://api.github.com/repos/selfup/API-Curious/contributors","subscribers_url":"https://api.github.com/repos/selfup/API-Curious/subscribers","subscription_url":"https://api.github.com/repos/selfup/API-Curious/subscription","commits_url":"https://api.github.com/repos/selfup/API-Curious/commits{/sha}","git_commits_url":"https://api.github.com/repos/selfup/API-Curious/git/commits{/sha}","comments_url":"https://api.github.com/repos/selfup/API-Curious/comments{/number}","issue_comment_url":"https://api.github.com/repos/selfup/API-Curious/issues/comments{/number}","contents_url":"https://api.github.com/repos/selfup/API-Curious/contents/{+path}","compare_url":"https://api.github.com/repos/selfup/API-Curious/compare/{base}...{head}","merges_url":"https://api.github.com/repos/selfup/API-Curious/merges","archive_url":"https://api.github.com/repos/selfup/API-Curious/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/selfup/API-Curious/downloads","issues_url":"https://api.github.com/repos/selfup/API-Curious/issues{/number}","pulls_url":"https://api.github.com/repos/selfup/API-Curious/pulls{/number}","milestones_url":"https://api.github.com/repos/selfup/API-Curious/milestones{/number}","notifications_url":"https://api.github.com/repos/selfup/API-Curious/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/selfup/API-Curious/labels{/name}","releases_url":"https://api.github.com/repos/selfup/API-Curious/releases{/id}","created_at":"2015-10-26T22:22:31Z","updated_at":"2015-10-26T22:22:47Z","pushed_at":"2015-10-28T19:19:25Z","git_url":"git://github.com/selfup/API-Curious.git","ssh_url":"git@github.com:selfup/API-Curious.git","clone_url":"https://github.com/selfup/API-Curious.git","svn_url":"https://github.com/selfup/API-Curious","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"selfup:master","ref":"master","sha":"46287ed73b3b5778e1add9d2afa4b35f61b7d17c","user":{"login":"selfup","id":9837366,"avatar_url":"https://avatars.githubusercontent.com/u/9837366?v=3","gravatar_id":"","url":"https://api.github.com/users/selfup","html_url":"https://github.com/selfup","followers_url":"https://api.github.com/users/selfup/followers","following_url":"https://api.github.com/users/selfup/following{/other_user}","gists_url":"https://api.github.com/users/selfup/gists{/gist_id}","starred_url":"https://api.github.com/users/selfup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selfup/subscriptions","organizations_url":"https://api.github.com/users/selfup/orgs","repos_url":"https://api.github.com/users/selfup/repos","events_url":"https://api.github.com/users/selfup/events{/privacy}","received_events_url":"https://api.github.com/users/selfup/received_events","type":"User","site_admin":false},"repo":{"id":45001106,"name":"API-Curious","full_name":"selfup/API-Curious","owner":{"login":"selfup","id":9837366,"avatar_url":"https://avatars.githubusercontent.com/u/9837366?v=3","gravatar_id":"","url":"https://api.github.com/users/selfup","html_url":"https://github.com/selfup","followers_url":"https://api.github.com/users/selfup/followers","following_url":"https://api.github.com/users/selfup/following{/other_user}","gists_url":"https://api.github.com/users/selfup/gists{/gist_id}","starred_url":"https://api.github.com/users/selfup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/selfup/subscriptions","organizations_url":"https://api.github.com/users/selfup/orgs","repos_url":"https://api.github.com/users/selfup/repos","events_url":"https://api.github.com/users/selfup/events{/privacy}","received_events_url":"https://api.github.com/users/selfup/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/selfup/API-Curious","description":"Implementing OAuth and Consuming an API","fork":false,"url":"https://api.github.com/repos/selfup/API-Curious","forks_url":"https://api.github.com/repos/selfup/API-Curious/forks","keys_url":"https://api.github.com/repos/selfup/API-Curious/keys{/key_id}","collaborators_url":"https://api.github.com/repos/selfup/API-Curious/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/selfup/API-Curious/teams","hooks_url":"https://api.github.com/repos/selfup/API-Curious/hooks","issue_events_url":"https://api.github.com/repos/selfup/API-Curious/issues/events{/number}","events_url":"https://api.github.com/repos/selfup/API-Curious/events","assignees_url":"https://api.github.com/repos/selfup/API-Curious/assignees{/user}","branches_url":"https://api.github.com/repos/selfup/API-Curious/branches{/branch}","tags_url":"https://api.github.com/repos/selfup/API-Curious/tags","blobs_url":"https://api.github.com/repos/selfup/API-Curious/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/selfup/API-Curious/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/selfup/API-Curious/git/refs{/sha}","trees_url":"https://api.github.com/repos/selfup/API-Curious/git/trees{/sha}","statuses_url":"https://api.github.com/repos/selfup/API-Curious/statuses/{sha}","languages_url":"https://api.github.com/repos/selfup/API-Curious/languages","stargazers_url":"https://api.github.com/repos/selfup/API-Curious/stargazers","contributors_url":"https://api.github.com/repos/selfup/API-Curious/contributors","subscribers_url":"https://api.github.com/repos/selfup/API-Curious/subscribers","subscription_url":"https://api.github.com/repos/selfup/API-Curious/subscription","commits_url":"https://api.github.com/repos/selfup/API-Curious/commits{/sha}","git_commits_url":"https://api.github.com/repos/selfup/API-Curious/git/commits{/sha}","comments_url":"https://api.github.com/repos/selfup/API-Curious/comments{/number}","issue_comment_url":"https://api.github.com/repos/selfup/API-Curious/issues/comments{/number}","contents_url":"https://api.github.com/repos/selfup/API-Curious/contents/{+path}","compare_url":"https://api.github.com/repos/selfup/API-Curious/compare/{base}...{head}","merges_url":"https://api.github.com/repos/selfup/API-Curious/merges","archive_url":"https://api.github.com/repos/selfup/API-Curious/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/selfup/API-Curious/downloads","issues_url":"https://api.github.com/repos/selfup/API-Curious/issues{/number}","pulls_url":"https://api.github.com/repos/selfup/API-Curious/pulls{/number}","milestones_url":"https://api.github.com/repos/selfup/API-Curious/milestones{/number}","notifications_url":"https://api.github.com/repos/selfup/API-Curious/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/selfup/API-Curious/labels{/name}","releases_url":"https://api.github.com/repos/selfup/API-Curious/releases{/id}","created_at":"2015-10-26T22:22:31Z","updated_at":"2015-10-26T22:22:47Z","pushed_at":"2015-10-28T19:19:25Z","git_url":"git://github.com/selfup/API-Curious.git","ssh_url":"git@github.com:selfup/API-Curious.git","clone_url":"https://github.com/selfup/API-Curious.git","svn_url":"https://github.com/selfup/API-Curious","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/selfup/API-Curious/pulls/19"},"html":{"href":"https://github.com/selfup/API-Curious/pull/19"},"issue":{"href":"https://api.github.com/repos/selfup/API-Curious/issues/19"},"comments":{"href":"https://api.github.com/repos/selfup/API-Curious/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/selfup/API-Curious/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/selfup/API-Curious/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/selfup/API-Curious/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/selfup/API-Curious/statuses/88ba58e2ef9289c825401427b9f428080cfb887a"}}}}