{"action":"created","comment":{"url":"https://api.github.com/repos/rasensio1/feedbee/pulls/comments/44556161","id":44556161,"diff_hunk":"@@ -1,7 +1,47 @@\n require 'test_helper'\n \n class UserTest < ActiveSupport::TestCase\n-  # test \"the truth\" do\n-  #   assert true\n-  # end\n+  def new_user\n+    User.new(email: \"Ryan@yeah.com\",\n+             uid: \"123abc\",\n+             name: \"Ryan Asensio\",\n+             oauth_token: \"xxx11\")\n+  end\n+\n+  test \"is valid\" do\n+    assert new_user.valid?\n+  end\n+\n+  test \"is invalid without uid\" do\n+    user = new_user\n+    user.uid = nil\n+\n+    refute user.valid?\n+  end\n+\n+  test \"is invalid without name\" do\n+    user = new_user\n+    user.name = nil\n+\n+    refute user.valid?\n+  end\n+\n+  test \"can follow something\" do\n+    skip\n+    turing = create_turing\n+    user = new_user\n+    user.user_follows << UserFollow.create(followable_type: \"Place\", followable_id: turing.id)\n+\n+    assert_equal \"Turing School\", user.user_follows.first.followable.name\n+  end\n+\n+  test \"cant double follow something\" do\n+    skip\n+    turing = create_turing\n+    user = new_user\n+    user.user_follows << UserFollow.create(followable_type: \"Place\", followable_id: turing.id)\n+    user.user_follows << UserFollow.create(followable_type: \"Place\", followable_id: turing.id)","path":"test/models/user_test.rb","position":46,"original_position":46,"commit_id":"85c9a072669f0361fd2b136a79000fa3e416c945","original_commit_id":"85c9a072669f0361fd2b136a79000fa3e416c945","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. [94/80]","created_at":"2015-11-11T16:59:08Z","updated_at":"2015-11-11T16:59:08Z","html_url":"https://github.com/rasensio1/feedbee/pull/22#discussion_r44556161","pull_request_url":"https://api.github.com/repos/rasensio1/feedbee/pulls/22","_links":{"self":{"href":"https://api.github.com/repos/rasensio1/feedbee/pulls/comments/44556161"},"html":{"href":"https://github.com/rasensio1/feedbee/pull/22#discussion_r44556161"},"pull_request":{"href":"https://api.github.com/repos/rasensio1/feedbee/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/rasensio1/feedbee/pulls/22","id":50407624,"html_url":"https://github.com/rasensio1/feedbee/pull/22","diff_url":"https://github.com/rasensio1/feedbee/pull/22.diff","patch_url":"https://github.com/rasensio1/feedbee/pull/22.patch","issue_url":"https://api.github.com/repos/rasensio1/feedbee/issues/22","number":22,"state":"open","locked":false,"title":"User follow place","user":{"login":"rasensio1","id":12215523,"avatar_url":"https://avatars.githubusercontent.com/u/12215523?v=3","gravatar_id":"","url":"https://api.github.com/users/rasensio1","html_url":"https://github.com/rasensio1","followers_url":"https://api.github.com/users/rasensio1/followers","following_url":"https://api.github.com/users/rasensio1/following{/other_user}","gists_url":"https://api.github.com/users/rasensio1/gists{/gist_id}","starred_url":"https://api.github.com/users/rasensio1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rasensio1/subscriptions","organizations_url":"https://api.github.com/users/rasensio1/orgs","repos_url":"https://api.github.com/users/rasensio1/repos","events_url":"https://api.github.com/users/rasensio1/events{/privacy}","received_events_url":"https://api.github.com/users/rasensio1/received_events","type":"User","site_admin":false},"body":"closes #18 ","created_at":"2015-11-11T16:58:54Z","updated_at":"2015-11-11T16:59:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"58f8298a675fb31684cf6f4c76f3d46f979280ab","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rasensio1/feedbee/pulls/22/commits","review_comments_url":"https://api.github.com/repos/rasensio1/feedbee/pulls/22/comments","review_comment_url":"https://api.github.com/repos/rasensio1/feedbee/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rasensio1/feedbee/issues/22/comments","statuses_url":"https://api.github.com/repos/rasensio1/feedbee/statuses/85c9a072669f0361fd2b136a79000fa3e416c945","head":{"label":"rasensio1:user_follow_place","ref":"user_follow_place","sha":"85c9a072669f0361fd2b136a79000fa3e416c945","user":{"login":"rasensio1","id":12215523,"avatar_url":"https://avatars.githubusercontent.com/u/12215523?v=3","gravatar_id":"","url":"https://api.github.com/users/rasensio1","html_url":"https://github.com/rasensio1","followers_url":"https://api.github.com/users/rasensio1/followers","following_url":"https://api.github.com/users/rasensio1/following{/other_user}","gists_url":"https://api.github.com/users/rasensio1/gists{/gist_id}","starred_url":"https://api.github.com/users/rasensio1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rasensio1/subscriptions","organizations_url":"https://api.github.com/users/rasensio1/orgs","repos_url":"https://api.github.com/users/rasensio1/repos","events_url":"https://api.github.com/users/rasensio1/events{/privacy}","received_events_url":"https://api.github.com/users/rasensio1/received_events","type":"User","site_admin":false},"repo":{"id":45723252,"name":"feedbee","full_name":"rasensio1/feedbee","owner":{"login":"rasensio1","id":12215523,"avatar_url":"https://avatars.githubusercontent.com/u/12215523?v=3","gravatar_id":"","url":"https://api.github.com/users/rasensio1","html_url":"https://github.com/rasensio1","followers_url":"https://api.github.com/users/rasensio1/followers","following_url":"https://api.github.com/users/rasensio1/following{/other_user}","gists_url":"https://api.github.com/users/rasensio1/gists{/gist_id}","starred_url":"https://api.github.com/users/rasensio1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rasensio1/subscriptions","organizations_url":"https://api.github.com/users/rasensio1/orgs","repos_url":"https://api.github.com/users/rasensio1/repos","events_url":"https://api.github.com/users/rasensio1/events{/privacy}","received_events_url":"https://api.github.com/users/rasensio1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rasensio1/feedbee","description":"","fork":false,"url":"https://api.github.com/repos/rasensio1/feedbee","forks_url":"https://api.github.com/repos/rasensio1/feedbee/forks","keys_url":"https://api.github.com/repos/rasensio1/feedbee/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rasensio1/feedbee/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rasensio1/feedbee/teams","hooks_url":"https://api.github.com/repos/rasensio1/feedbee/hooks","issue_events_url":"https://api.github.com/repos/rasensio1/feedbee/issues/events{/number}","events_url":"https://api.github.com/repos/rasensio1/feedbee/events","assignees_url":"https://api.github.com/repos/rasensio1/feedbee/assignees{/user}","branches_url":"https://api.github.com/repos/rasensio1/feedbee/branches{/branch}","tags_url":"https://api.github.com/repos/rasensio1/feedbee/tags","blobs_url":"https://api.github.com/repos/rasensio1/feedbee/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rasensio1/feedbee/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rasensio1/feedbee/git/refs{/sha}","trees_url":"https://api.github.com/repos/rasensio1/feedbee/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rasensio1/feedbee/statuses/{sha}","languages_url":"https://api.github.com/repos/rasensio1/feedbee/languages","stargazers_url":"https://api.github.com/repos/rasensio1/feedbee/stargazers","contributors_url":"https://api.github.com/repos/rasensio1/feedbee/contributors","subscribers_url":"https://api.github.com/repos/rasensio1/feedbee/subscribers","subscription_url":"https://api.github.com/repos/rasensio1/feedbee/subscription","commits_url":"https://api.github.com/repos/rasensio1/feedbee/commits{/sha}","git_commits_url":"https://api.github.com/repos/rasensio1/feedbee/git/commits{/sha}","comments_url":"https://api.github.com/repos/rasensio1/feedbee/comments{/number}","issue_comment_url":"https://api.github.com/repos/rasensio1/feedbee/issues/comments{/number}","contents_url":"https://api.github.com/repos/rasensio1/feedbee/contents/{+path}","compare_url":"https://api.github.com/repos/rasensio1/feedbee/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rasensio1/feedbee/merges","archive_url":"https://api.github.com/repos/rasensio1/feedbee/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rasensio1/feedbee/downloads","issues_url":"https://api.github.com/repos/rasensio1/feedbee/issues{/number}","pulls_url":"https://api.github.com/repos/rasensio1/feedbee/pulls{/number}","milestones_url":"https://api.github.com/repos/rasensio1/feedbee/milestones{/number}","notifications_url":"https://api.github.com/repos/rasensio1/feedbee/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rasensio1/feedbee/labels{/name}","releases_url":"https://api.github.com/repos/rasensio1/feedbee/releases{/id}","created_at":"2015-11-07T05:00:45Z","updated_at":"2015-11-07T05:01:00Z","pushed_at":"2015-11-11T16:58:54Z","git_url":"git://github.com/rasensio1/feedbee.git","ssh_url":"git@github.com:rasensio1/feedbee.git","clone_url":"https://github.com/rasensio1/feedbee.git","svn_url":"https://github.com/rasensio1/feedbee","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":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"base":{"label":"rasensio1:master","ref":"master","sha":"46ff6517a5233626fd3fd096303ddb47cea0d88b","user":{"login":"rasensio1","id":12215523,"avatar_url":"https://avatars.githubusercontent.com/u/12215523?v=3","gravatar_id":"","url":"https://api.github.com/users/rasensio1","html_url":"https://github.com/rasensio1","followers_url":"https://api.github.com/users/rasensio1/followers","following_url":"https://api.github.com/users/rasensio1/following{/other_user}","gists_url":"https://api.github.com/users/rasensio1/gists{/gist_id}","starred_url":"https://api.github.com/users/rasensio1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rasensio1/subscriptions","organizations_url":"https://api.github.com/users/rasensio1/orgs","repos_url":"https://api.github.com/users/rasensio1/repos","events_url":"https://api.github.com/users/rasensio1/events{/privacy}","received_events_url":"https://api.github.com/users/rasensio1/received_events","type":"User","site_admin":false},"repo":{"id":45723252,"name":"feedbee","full_name":"rasensio1/feedbee","owner":{"login":"rasensio1","id":12215523,"avatar_url":"https://avatars.githubusercontent.com/u/12215523?v=3","gravatar_id":"","url":"https://api.github.com/users/rasensio1","html_url":"https://github.com/rasensio1","followers_url":"https://api.github.com/users/rasensio1/followers","following_url":"https://api.github.com/users/rasensio1/following{/other_user}","gists_url":"https://api.github.com/users/rasensio1/gists{/gist_id}","starred_url":"https://api.github.com/users/rasensio1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rasensio1/subscriptions","organizations_url":"https://api.github.com/users/rasensio1/orgs","repos_url":"https://api.github.com/users/rasensio1/repos","events_url":"https://api.github.com/users/rasensio1/events{/privacy}","received_events_url":"https://api.github.com/users/rasensio1/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rasensio1/feedbee","description":"","fork":false,"url":"https://api.github.com/repos/rasensio1/feedbee","forks_url":"https://api.github.com/repos/rasensio1/feedbee/forks","keys_url":"https://api.github.com/repos/rasensio1/feedbee/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rasensio1/feedbee/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rasensio1/feedbee/teams","hooks_url":"https://api.github.com/repos/rasensio1/feedbee/hooks","issue_events_url":"https://api.github.com/repos/rasensio1/feedbee/issues/events{/number}","events_url":"https://api.github.com/repos/rasensio1/feedbee/events","assignees_url":"https://api.github.com/repos/rasensio1/feedbee/assignees{/user}","branches_url":"https://api.github.com/repos/rasensio1/feedbee/branches{/branch}","tags_url":"https://api.github.com/repos/rasensio1/feedbee/tags","blobs_url":"https://api.github.com/repos/rasensio1/feedbee/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rasensio1/feedbee/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rasensio1/feedbee/git/refs{/sha}","trees_url":"https://api.github.com/repos/rasensio1/feedbee/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rasensio1/feedbee/statuses/{sha}","languages_url":"https://api.github.com/repos/rasensio1/feedbee/languages","stargazers_url":"https://api.github.com/repos/rasensio1/feedbee/stargazers","contributors_url":"https://api.github.com/repos/rasensio1/feedbee/contributors","subscribers_url":"https://api.github.com/repos/rasensio1/feedbee/subscribers","subscription_url":"https://api.github.com/repos/rasensio1/feedbee/subscription","commits_url":"https://api.github.com/repos/rasensio1/feedbee/commits{/sha}","git_commits_url":"https://api.github.com/repos/rasensio1/feedbee/git/commits{/sha}","comments_url":"https://api.github.com/repos/rasensio1/feedbee/comments{/number}","issue_comment_url":"https://api.github.com/repos/rasensio1/feedbee/issues/comments{/number}","contents_url":"https://api.github.com/repos/rasensio1/feedbee/contents/{+path}","compare_url":"https://api.github.com/repos/rasensio1/feedbee/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rasensio1/feedbee/merges","archive_url":"https://api.github.com/repos/rasensio1/feedbee/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rasensio1/feedbee/downloads","issues_url":"https://api.github.com/repos/rasensio1/feedbee/issues{/number}","pulls_url":"https://api.github.com/repos/rasensio1/feedbee/pulls{/number}","milestones_url":"https://api.github.com/repos/rasensio1/feedbee/milestones{/number}","notifications_url":"https://api.github.com/repos/rasensio1/feedbee/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rasensio1/feedbee/labels{/name}","releases_url":"https://api.github.com/repos/rasensio1/feedbee/releases{/id}","created_at":"2015-11-07T05:00:45Z","updated_at":"2015-11-07T05:01:00Z","pushed_at":"2015-11-11T16:58:54Z","git_url":"git://github.com/rasensio1/feedbee.git","ssh_url":"git@github.com:rasensio1/feedbee.git","clone_url":"https://github.com/rasensio1/feedbee.git","svn_url":"https://github.com/rasensio1/feedbee","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":9,"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rasensio1/feedbee/pulls/22"},"html":{"href":"https://github.com/rasensio1/feedbee/pull/22"},"issue":{"href":"https://api.github.com/repos/rasensio1/feedbee/issues/22"},"comments":{"href":"https://api.github.com/repos/rasensio1/feedbee/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/rasensio1/feedbee/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/rasensio1/feedbee/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rasensio1/feedbee/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/rasensio1/feedbee/statuses/85c9a072669f0361fd2b136a79000fa3e416c945"}}}}