{"action":"created","comment":{"url":"https://api.github.com/repos/code-corps/code-corps-api/pulls/comments/87002660","pull_request_review_id":7631716,"id":87002660,"diff_hunk":"@@ -135,19 +127,7 @@ defmodule CodeCorps.UserControllerTest do\n \n       path = user_path(conn, :update, user)\n \n-      conn =\n-        conn\n-        |> authenticate(user)\n-        |> put(path, params)\n-\n-      id = json_response(conn, 200)[\"data\"][\"id\"]\n-      assert id\n-      user =  Repo.get(User, id)\n-      assert user.email == \"test@user.com\"\n-      assert user.first_name == \"Test\"\n-      assert user.last_name == \"User\"\n-      assert user.website == \"http://www.example.com\"\n-      assert user.biography == \"Just a test user\"\n+    assert conn |> authenticate(user) |> put(path, params) |> json_response(200)","path":"test/controllers/user_controller_test.exs","position":148,"original_position":148,"commit_id":"ad1594a50625f0dc443b7246ed12f5e2fb94f112","original_commit_id":"ad1594a50625f0dc443b7246ed12f5e2fb94f112","user":{"login":"begedin","id":1925540,"avatar_url":"https://avatars.githubusercontent.com/u/1925540?v=3","gravatar_id":"","url":"https://api.github.com/users/begedin","html_url":"https://github.com/begedin","followers_url":"https://api.github.com/users/begedin/followers","following_url":"https://api.github.com/users/begedin/following{/other_user}","gists_url":"https://api.github.com/users/begedin/gists{/gist_id}","starred_url":"https://api.github.com/users/begedin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/begedin/subscriptions","organizations_url":"https://api.github.com/users/begedin/orgs","repos_url":"https://api.github.com/users/begedin/repos","events_url":"https://api.github.com/users/begedin/events{/privacy}","received_events_url":"https://api.github.com/users/begedin/received_events","type":"User","site_admin":false},"body":"Got a bad indent here","created_at":"2016-11-08T14:49:01Z","updated_at":"2016-11-08T14:49:06Z","html_url":"https://github.com/code-corps/code-corps-api/pull/449#discussion_r87002660","pull_request_url":"https://api.github.com/repos/code-corps/code-corps-api/pulls/449","_links":{"self":{"href":"https://api.github.com/repos/code-corps/code-corps-api/pulls/comments/87002660"},"html":{"href":"https://github.com/code-corps/code-corps-api/pull/449#discussion_r87002660"},"pull_request":{"href":"https://api.github.com/repos/code-corps/code-corps-api/pulls/449"}}},"pull_request":{"url":"https://api.github.com/repos/code-corps/code-corps-api/pulls/449","id":92696929,"html_url":"https://github.com/code-corps/code-corps-api/pull/449","diff_url":"https://github.com/code-corps/code-corps-api/pull/449.diff","patch_url":"https://github.com/code-corps/code-corps-api/pull/449.patch","issue_url":"https://api.github.com/repos/code-corps/code-corps-api/issues/449","number":449,"state":"open","locked":false,"title":"443 refactor user controller tests","user":{"login":"mackenziehicks","id":20630939,"avatar_url":"https://avatars.githubusercontent.com/u/20630939?v=3","gravatar_id":"","url":"https://api.github.com/users/mackenziehicks","html_url":"https://github.com/mackenziehicks","followers_url":"https://api.github.com/users/mackenziehicks/followers","following_url":"https://api.github.com/users/mackenziehicks/following{/other_user}","gists_url":"https://api.github.com/users/mackenziehicks/gists{/gist_id}","starred_url":"https://api.github.com/users/mackenziehicks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mackenziehicks/subscriptions","organizations_url":"https://api.github.com/users/mackenziehicks/orgs","repos_url":"https://api.github.com/users/mackenziehicks/repos","events_url":"https://api.github.com/users/mackenziehicks/events{/privacy}","received_events_url":"https://api.github.com/users/mackenziehicks/received_events","type":"User","site_admin":false},"body":"# What's in this PR?\r\n\r\nAdded helpers from api_case.ex to the tests for User Controller.\r\n\r\n## References\r\nFixes #443 \r\n\r\nProgress on: #413 \r\n","created_at":"2016-11-08T01:07:35Z","updated_at":"2016-11-08T14:49:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dd64021fe5502907c743086d16a3551789b52652","assignee":{"login":"mackenziehicks","id":20630939,"avatar_url":"https://avatars.githubusercontent.com/u/20630939?v=3","gravatar_id":"","url":"https://api.github.com/users/mackenziehicks","html_url":"https://github.com/mackenziehicks","followers_url":"https://api.github.com/users/mackenziehicks/followers","following_url":"https://api.github.com/users/mackenziehicks/following{/other_user}","gists_url":"https://api.github.com/users/mackenziehicks/gists{/gist_id}","starred_url":"https://api.github.com/users/mackenziehicks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mackenziehicks/subscriptions","organizations_url":"https://api.github.com/users/mackenziehicks/orgs","repos_url":"https://api.github.com/users/mackenziehicks/repos","events_url":"https://api.github.com/users/mackenziehicks/events{/privacy}","received_events_url":"https://api.github.com/users/mackenziehicks/received_events","type":"User","site_admin":false},"assignees":[{"login":"mackenziehicks","id":20630939,"avatar_url":"https://avatars.githubusercontent.com/u/20630939?v=3","gravatar_id":"","url":"https://api.github.com/users/mackenziehicks","html_url":"https://github.com/mackenziehicks","followers_url":"https://api.github.com/users/mackenziehicks/followers","following_url":"https://api.github.com/users/mackenziehicks/following{/other_user}","gists_url":"https://api.github.com/users/mackenziehicks/gists{/gist_id}","starred_url":"https://api.github.com/users/mackenziehicks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mackenziehicks/subscriptions","organizations_url":"https://api.github.com/users/mackenziehicks/orgs","repos_url":"https://api.github.com/users/mackenziehicks/repos","events_url":"https://api.github.com/users/mackenziehicks/events{/privacy}","received_events_url":"https://api.github.com/users/mackenziehicks/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/code-corps/code-corps-api/pulls/449/commits","review_comments_url":"https://api.github.com/repos/code-corps/code-corps-api/pulls/449/comments","review_comment_url":"https://api.github.com/repos/code-corps/code-corps-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/code-corps/code-corps-api/issues/449/comments","statuses_url":"https://api.github.com/repos/code-corps/code-corps-api/statuses/ad1594a50625f0dc443b7246ed12f5e2fb94f112","head":{"label":"code-corps:443-refactor-user-controller-tests","ref":"443-refactor-user-controller-tests","sha":"ad1594a50625f0dc443b7246ed12f5e2fb94f112","user":{"login":"code-corps","id":12991115,"avatar_url":"https://avatars.githubusercontent.com/u/12991115?v=3","gravatar_id":"","url":"https://api.github.com/users/code-corps","html_url":"https://github.com/code-corps","followers_url":"https://api.github.com/users/code-corps/followers","following_url":"https://api.github.com/users/code-corps/following{/other_user}","gists_url":"https://api.github.com/users/code-corps/gists{/gist_id}","starred_url":"https://api.github.com/users/code-corps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-corps/subscriptions","organizations_url":"https://api.github.com/users/code-corps/orgs","repos_url":"https://api.github.com/users/code-corps/repos","events_url":"https://api.github.com/users/code-corps/events{/privacy}","received_events_url":"https://api.github.com/users/code-corps/received_events","type":"Organization","site_admin":false},"repo":{"id":63497734,"name":"code-corps-api","full_name":"code-corps/code-corps-api","owner":{"login":"code-corps","id":12991115,"avatar_url":"https://avatars.githubusercontent.com/u/12991115?v=3","gravatar_id":"","url":"https://api.github.com/users/code-corps","html_url":"https://github.com/code-corps","followers_url":"https://api.github.com/users/code-corps/followers","following_url":"https://api.github.com/users/code-corps/following{/other_user}","gists_url":"https://api.github.com/users/code-corps/gists{/gist_id}","starred_url":"https://api.github.com/users/code-corps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-corps/subscriptions","organizations_url":"https://api.github.com/users/code-corps/orgs","repos_url":"https://api.github.com/users/code-corps/repos","events_url":"https://api.github.com/users/code-corps/events{/privacy}","received_events_url":"https://api.github.com/users/code-corps/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/code-corps/code-corps-api","description":"Elixir/Phoenix API for Code Corps.","fork":false,"url":"https://api.github.com/repos/code-corps/code-corps-api","forks_url":"https://api.github.com/repos/code-corps/code-corps-api/forks","keys_url":"https://api.github.com/repos/code-corps/code-corps-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/code-corps/code-corps-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/code-corps/code-corps-api/teams","hooks_url":"https://api.github.com/repos/code-corps/code-corps-api/hooks","issue_events_url":"https://api.github.com/repos/code-corps/code-corps-api/issues/events{/number}","events_url":"https://api.github.com/repos/code-corps/code-corps-api/events","assignees_url":"https://api.github.com/repos/code-corps/code-corps-api/assignees{/user}","branches_url":"https://api.github.com/repos/code-corps/code-corps-api/branches{/branch}","tags_url":"https://api.github.com/repos/code-corps/code-corps-api/tags","blobs_url":"https://api.github.com/repos/code-corps/code-corps-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/code-corps/code-corps-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/code-corps/code-corps-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/code-corps/code-corps-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/code-corps/code-corps-api/statuses/{sha}","languages_url":"https://api.github.com/repos/code-corps/code-corps-api/languages","stargazers_url":"https://api.github.com/repos/code-corps/code-corps-api/stargazers","contributors_url":"https://api.github.com/repos/code-corps/code-corps-api/contributors","subscribers_url":"https://api.github.com/repos/code-corps/code-corps-api/subscribers","subscription_url":"https://api.github.com/repos/code-corps/code-corps-api/subscription","commits_url":"https://api.github.com/repos/code-corps/code-corps-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/code-corps/code-corps-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/code-corps/code-corps-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/code-corps/code-corps-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/code-corps/code-corps-api/contents/{+path}","compare_url":"https://api.github.com/repos/code-corps/code-corps-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/code-corps/code-corps-api/merges","archive_url":"https://api.github.com/repos/code-corps/code-corps-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/code-corps/code-corps-api/downloads","issues_url":"https://api.github.com/repos/code-corps/code-corps-api/issues{/number}","pulls_url":"https://api.github.com/repos/code-corps/code-corps-api/pulls{/number}","milestones_url":"https://api.github.com/repos/code-corps/code-corps-api/milestones{/number}","notifications_url":"https://api.github.com/repos/code-corps/code-corps-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/code-corps/code-corps-api/labels{/name}","releases_url":"https://api.github.com/repos/code-corps/code-corps-api/releases{/id}","deployments_url":"https://api.github.com/repos/code-corps/code-corps-api/deployments","created_at":"2016-07-16T18:49:25Z","updated_at":"2016-11-07T18:12:19Z","pushed_at":"2016-11-08T01:10:34Z","git_url":"git://github.com/code-corps/code-corps-api.git","ssh_url":"git@github.com:code-corps/code-corps-api.git","clone_url":"https://github.com/code-corps/code-corps-api.git","svn_url":"https://github.com/code-corps/code-corps-api","homepage":"https://www.codecorps.org","size":784,"stargazers_count":79,"watchers_count":79,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":68,"forks":21,"open_issues":68,"watchers":79,"default_branch":"develop"}},"base":{"label":"code-corps:develop","ref":"develop","sha":"e492da74401b5e540bb02489ce89a823b9bb018e","user":{"login":"code-corps","id":12991115,"avatar_url":"https://avatars.githubusercontent.com/u/12991115?v=3","gravatar_id":"","url":"https://api.github.com/users/code-corps","html_url":"https://github.com/code-corps","followers_url":"https://api.github.com/users/code-corps/followers","following_url":"https://api.github.com/users/code-corps/following{/other_user}","gists_url":"https://api.github.com/users/code-corps/gists{/gist_id}","starred_url":"https://api.github.com/users/code-corps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-corps/subscriptions","organizations_url":"https://api.github.com/users/code-corps/orgs","repos_url":"https://api.github.com/users/code-corps/repos","events_url":"https://api.github.com/users/code-corps/events{/privacy}","received_events_url":"https://api.github.com/users/code-corps/received_events","type":"Organization","site_admin":false},"repo":{"id":63497734,"name":"code-corps-api","full_name":"code-corps/code-corps-api","owner":{"login":"code-corps","id":12991115,"avatar_url":"https://avatars.githubusercontent.com/u/12991115?v=3","gravatar_id":"","url":"https://api.github.com/users/code-corps","html_url":"https://github.com/code-corps","followers_url":"https://api.github.com/users/code-corps/followers","following_url":"https://api.github.com/users/code-corps/following{/other_user}","gists_url":"https://api.github.com/users/code-corps/gists{/gist_id}","starred_url":"https://api.github.com/users/code-corps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-corps/subscriptions","organizations_url":"https://api.github.com/users/code-corps/orgs","repos_url":"https://api.github.com/users/code-corps/repos","events_url":"https://api.github.com/users/code-corps/events{/privacy}","received_events_url":"https://api.github.com/users/code-corps/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/code-corps/code-corps-api","description":"Elixir/Phoenix API for Code Corps.","fork":false,"url":"https://api.github.com/repos/code-corps/code-corps-api","forks_url":"https://api.github.com/repos/code-corps/code-corps-api/forks","keys_url":"https://api.github.com/repos/code-corps/code-corps-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/code-corps/code-corps-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/code-corps/code-corps-api/teams","hooks_url":"https://api.github.com/repos/code-corps/code-corps-api/hooks","issue_events_url":"https://api.github.com/repos/code-corps/code-corps-api/issues/events{/number}","events_url":"https://api.github.com/repos/code-corps/code-corps-api/events","assignees_url":"https://api.github.com/repos/code-corps/code-corps-api/assignees{/user}","branches_url":"https://api.github.com/repos/code-corps/code-corps-api/branches{/branch}","tags_url":"https://api.github.com/repos/code-corps/code-corps-api/tags","blobs_url":"https://api.github.com/repos/code-corps/code-corps-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/code-corps/code-corps-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/code-corps/code-corps-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/code-corps/code-corps-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/code-corps/code-corps-api/statuses/{sha}","languages_url":"https://api.github.com/repos/code-corps/code-corps-api/languages","stargazers_url":"https://api.github.com/repos/code-corps/code-corps-api/stargazers","contributors_url":"https://api.github.com/repos/code-corps/code-corps-api/contributors","subscribers_url":"https://api.github.com/repos/code-corps/code-corps-api/subscribers","subscription_url":"https://api.github.com/repos/code-corps/code-corps-api/subscription","commits_url":"https://api.github.com/repos/code-corps/code-corps-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/code-corps/code-corps-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/code-corps/code-corps-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/code-corps/code-corps-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/code-corps/code-corps-api/contents/{+path}","compare_url":"https://api.github.com/repos/code-corps/code-corps-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/code-corps/code-corps-api/merges","archive_url":"https://api.github.com/repos/code-corps/code-corps-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/code-corps/code-corps-api/downloads","issues_url":"https://api.github.com/repos/code-corps/code-corps-api/issues{/number}","pulls_url":"https://api.github.com/repos/code-corps/code-corps-api/pulls{/number}","milestones_url":"https://api.github.com/repos/code-corps/code-corps-api/milestones{/number}","notifications_url":"https://api.github.com/repos/code-corps/code-corps-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/code-corps/code-corps-api/labels{/name}","releases_url":"https://api.github.com/repos/code-corps/code-corps-api/releases{/id}","deployments_url":"https://api.github.com/repos/code-corps/code-corps-api/deployments","created_at":"2016-07-16T18:49:25Z","updated_at":"2016-11-07T18:12:19Z","pushed_at":"2016-11-08T01:10:34Z","git_url":"git://github.com/code-corps/code-corps-api.git","ssh_url":"git@github.com:code-corps/code-corps-api.git","clone_url":"https://github.com/code-corps/code-corps-api.git","svn_url":"https://github.com/code-corps/code-corps-api","homepage":"https://www.codecorps.org","size":784,"stargazers_count":79,"watchers_count":79,"language":"Elixir","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":21,"mirror_url":null,"open_issues_count":68,"forks":21,"open_issues":68,"watchers":79,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/code-corps/code-corps-api/pulls/449"},"html":{"href":"https://github.com/code-corps/code-corps-api/pull/449"},"issue":{"href":"https://api.github.com/repos/code-corps/code-corps-api/issues/449"},"comments":{"href":"https://api.github.com/repos/code-corps/code-corps-api/issues/449/comments"},"review_comments":{"href":"https://api.github.com/repos/code-corps/code-corps-api/pulls/449/comments"},"review_comment":{"href":"https://api.github.com/repos/code-corps/code-corps-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/code-corps/code-corps-api/pulls/449/commits"},"statuses":{"href":"https://api.github.com/repos/code-corps/code-corps-api/statuses/ad1594a50625f0dc443b7246ed12f5e2fb94f112"}}}}
{"actor":{"display_login":"begedin"}}