{"action":"created","comment":{"url":"https://api.github.com/repos/taironas/gonawin/pulls/comments/38840087","id":38840087,"diff_hunk":"@@ -318,6 +319,77 @@ func TestFindAllUsers(t *testing.T) {\n \t}\n }\n \n+// TestUserById tests that you can get a user by its ID.\n+//\n+func TestUserUpdate(t *testing.T) {\n+\tvar c aetest.Context\n+\tvar err error\n+\toptions := aetest.Options{StronglyConsistentDatastore: true}\n+\n+\tif c, err = aetest.NewContext(&options); err != nil {\n+\t\tt.Fatal(err)\n+\t}\n+\tdefer c.Close()\n+\n+\t/*Test data: saved user*/\n+\tvar user *User\n+\tif user, err = CreateUser(c, \"foo@bar.com\", \"john.snow\", \"john snow\", \"crow\", false, \"\"); err != nil {\n+\t\tt.Errorf(\"Error: %v\", err)\n+\t}\n+\n+\t/*Test data: non saved user*/\n+\tnonSavedUser := User{","path":"models/user_test.go","position":31,"original_position":31,"commit_id":"e14af394865af1f96c0dee919bb55611df1bafc7","original_commit_id":"b250b098b4865af1b3bbbdcabb2153847585d2dc","user":{"login":"rjourde","id":1008617,"avatar_url":"https://avatars.githubusercontent.com/u/1008617?v=3","gravatar_id":"","url":"https://api.github.com/users/rjourde","html_url":"https://github.com/rjourde","followers_url":"https://api.github.com/users/rjourde/followers","following_url":"https://api.github.com/users/rjourde/following{/other_user}","gists_url":"https://api.github.com/users/rjourde/gists{/gist_id}","starred_url":"https://api.github.com/users/rjourde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjourde/subscriptions","organizations_url":"https://api.github.com/users/rjourde/orgs","repos_url":"https://api.github.com/users/rjourde/repos","events_url":"https://api.github.com/users/rjourde/events{/privacy}","received_events_url":"https://api.github.com/users/rjourde/received_events","type":"User","site_admin":false},"body":"Ok now it's clear to me","created_at":"2015-09-07T07:55:57Z","updated_at":"2015-09-07T07:55:57Z","html_url":"https://github.com/taironas/gonawin/pull/741#discussion_r38840087","pull_request_url":"https://api.github.com/repos/taironas/gonawin/pulls/741","_links":{"self":{"href":"https://api.github.com/repos/taironas/gonawin/pulls/comments/38840087"},"html":{"href":"https://github.com/taironas/gonawin/pull/741#discussion_r38840087"},"pull_request":{"href":"https://api.github.com/repos/taironas/gonawin/pulls/741"}}},"pull_request":{"url":"https://api.github.com/repos/taironas/gonawin/pulls/741","id":44218096,"html_url":"https://github.com/taironas/gonawin/pull/741","diff_url":"https://github.com/taironas/gonawin/pull/741.diff","patch_url":"https://github.com/taironas/gonawin/pull/741.patch","issue_url":"https://api.github.com/repos/taironas/gonawin/issues/741","number":741,"state":"open","locked":false,"title":"Issue 717 test User.Update","user":{"login":"rjourde","id":1008617,"avatar_url":"https://avatars.githubusercontent.com/u/1008617?v=3","gravatar_id":"","url":"https://api.github.com/users/rjourde","html_url":"https://github.com/rjourde","followers_url":"https://api.github.com/users/rjourde/followers","following_url":"https://api.github.com/users/rjourde/following{/other_user}","gists_url":"https://api.github.com/users/rjourde/gists{/gist_id}","starred_url":"https://api.github.com/users/rjourde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjourde/subscriptions","organizations_url":"https://api.github.com/users/rjourde/orgs","repos_url":"https://api.github.com/users/rjourde/repos","events_url":"https://api.github.com/users/rjourde/events{/privacy}","received_events_url":"https://api.github.com/users/rjourde/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-04T13:33:48Z","updated_at":"2015-09-07T07:55:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f96320299ffa9eef691a329f7a74a50404db08de","assignee":{"login":"rjourde","id":1008617,"avatar_url":"https://avatars.githubusercontent.com/u/1008617?v=3","gravatar_id":"","url":"https://api.github.com/users/rjourde","html_url":"https://github.com/rjourde","followers_url":"https://api.github.com/users/rjourde/followers","following_url":"https://api.github.com/users/rjourde/following{/other_user}","gists_url":"https://api.github.com/users/rjourde/gists{/gist_id}","starred_url":"https://api.github.com/users/rjourde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjourde/subscriptions","organizations_url":"https://api.github.com/users/rjourde/orgs","repos_url":"https://api.github.com/users/rjourde/repos","events_url":"https://api.github.com/users/rjourde/events{/privacy}","received_events_url":"https://api.github.com/users/rjourde/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/taironas/gonawin/milestones/66","html_url":"https://github.com/taironas/gonawin/milestones/version%200.1.40","labels_url":"https://api.github.com/repos/taironas/gonawin/milestones/66/labels","id":1277036,"number":66,"title":"version 0.1.40","description":"","creator":{"login":"rjourde","id":1008617,"avatar_url":"https://avatars.githubusercontent.com/u/1008617?v=3","gravatar_id":"","url":"https://api.github.com/users/rjourde","html_url":"https://github.com/rjourde","followers_url":"https://api.github.com/users/rjourde/followers","following_url":"https://api.github.com/users/rjourde/following{/other_user}","gists_url":"https://api.github.com/users/rjourde/gists{/gist_id}","starred_url":"https://api.github.com/users/rjourde/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjourde/subscriptions","organizations_url":"https://api.github.com/users/rjourde/orgs","repos_url":"https://api.github.com/users/rjourde/repos","events_url":"https://api.github.com/users/rjourde/events{/privacy}","received_events_url":"https://api.github.com/users/rjourde/received_events","type":"User","site_admin":false},"open_issues":18,"closed_issues":0,"state":"open","created_at":"2015-08-28T06:38:35Z","updated_at":"2015-09-06T17:01:11Z","due_on":"2015-09-10T22:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/taironas/gonawin/pulls/741/commits","review_comments_url":"https://api.github.com/repos/taironas/gonawin/pulls/741/comments","review_comment_url":"https://api.github.com/repos/taironas/gonawin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/taironas/gonawin/issues/741/comments","statuses_url":"https://api.github.com/repos/taironas/gonawin/statuses/e14af394865af1f96c0dee919bb55611df1bafc7","head":{"label":"taironas:issue_717","ref":"issue_717","sha":"e14af394865af1f96c0dee919bb55611df1bafc7","user":{"login":"taironas","id":7430045,"avatar_url":"https://avatars.githubusercontent.com/u/7430045?v=3","gravatar_id":"","url":"https://api.github.com/users/taironas","html_url":"https://github.com/taironas","followers_url":"https://api.github.com/users/taironas/followers","following_url":"https://api.github.com/users/taironas/following{/other_user}","gists_url":"https://api.github.com/users/taironas/gists{/gist_id}","starred_url":"https://api.github.com/users/taironas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taironas/subscriptions","organizations_url":"https://api.github.com/users/taironas/orgs","repos_url":"https://api.github.com/users/taironas/repos","events_url":"https://api.github.com/users/taironas/events{/privacy}","received_events_url":"https://api.github.com/users/taironas/received_events","type":"Organization","site_admin":false},"repo":{"id":10026600,"name":"gonawin","full_name":"taironas/gonawin","owner":{"login":"taironas","id":7430045,"avatar_url":"https://avatars.githubusercontent.com/u/7430045?v=3","gravatar_id":"","url":"https://api.github.com/users/taironas","html_url":"https://github.com/taironas","followers_url":"https://api.github.com/users/taironas/followers","following_url":"https://api.github.com/users/taironas/following{/other_user}","gists_url":"https://api.github.com/users/taironas/gists{/gist_id}","starred_url":"https://api.github.com/users/taironas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taironas/subscriptions","organizations_url":"https://api.github.com/users/taironas/orgs","repos_url":"https://api.github.com/users/taironas/repos","events_url":"https://api.github.com/users/taironas/events{/privacy}","received_events_url":"https://api.github.com/users/taironas/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/taironas/gonawin","description":"A social web application to make \"friendly bets\" on sport games with your friends.","fork":false,"url":"https://api.github.com/repos/taironas/gonawin","forks_url":"https://api.github.com/repos/taironas/gonawin/forks","keys_url":"https://api.github.com/repos/taironas/gonawin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/taironas/gonawin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/taironas/gonawin/teams","hooks_url":"https://api.github.com/repos/taironas/gonawin/hooks","issue_events_url":"https://api.github.com/repos/taironas/gonawin/issues/events{/number}","events_url":"https://api.github.com/repos/taironas/gonawin/events","assignees_url":"https://api.github.com/repos/taironas/gonawin/assignees{/user}","branches_url":"https://api.github.com/repos/taironas/gonawin/branches{/branch}","tags_url":"https://api.github.com/repos/taironas/gonawin/tags","blobs_url":"https://api.github.com/repos/taironas/gonawin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/taironas/gonawin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/taironas/gonawin/git/refs{/sha}","trees_url":"https://api.github.com/repos/taironas/gonawin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/taironas/gonawin/statuses/{sha}","languages_url":"https://api.github.com/repos/taironas/gonawin/languages","stargazers_url":"https://api.github.com/repos/taironas/gonawin/stargazers","contributors_url":"https://api.github.com/repos/taironas/gonawin/contributors","subscribers_url":"https://api.github.com/repos/taironas/gonawin/subscribers","subscription_url":"https://api.github.com/repos/taironas/gonawin/subscription","commits_url":"https://api.github.com/repos/taironas/gonawin/commits{/sha}","git_commits_url":"https://api.github.com/repos/taironas/gonawin/git/commits{/sha}","comments_url":"https://api.github.com/repos/taironas/gonawin/comments{/number}","issue_comment_url":"https://api.github.com/repos/taironas/gonawin/issues/comments{/number}","contents_url":"https://api.github.com/repos/taironas/gonawin/contents/{+path}","compare_url":"https://api.github.com/repos/taironas/gonawin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/taironas/gonawin/merges","archive_url":"https://api.github.com/repos/taironas/gonawin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/taironas/gonawin/downloads","issues_url":"https://api.github.com/repos/taironas/gonawin/issues{/number}","pulls_url":"https://api.github.com/repos/taironas/gonawin/pulls{/number}","milestones_url":"https://api.github.com/repos/taironas/gonawin/milestones{/number}","notifications_url":"https://api.github.com/repos/taironas/gonawin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/taironas/gonawin/labels{/name}","releases_url":"https://api.github.com/repos/taironas/gonawin/releases{/id}","created_at":"2013-05-13T07:34:32Z","updated_at":"2015-07-15T14:39:42Z","pushed_at":"2015-09-07T06:48:14Z","git_url":"git://github.com/taironas/gonawin.git","ssh_url":"git@github.com:taironas/gonawin.git","clone_url":"https://github.com/taironas/gonawin.git","svn_url":"https://github.com/taironas/gonawin","homepage":"gonawin.com","size":15216,"stargazers_count":13,"watchers_count":13,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":76,"forks":1,"open_issues":76,"watchers":13,"default_branch":"master"}},"base":{"label":"taironas:master","ref":"master","sha":"c2b491f12dfe111f72bfc515a5fbae2a32156802","user":{"login":"taironas","id":7430045,"avatar_url":"https://avatars.githubusercontent.com/u/7430045?v=3","gravatar_id":"","url":"https://api.github.com/users/taironas","html_url":"https://github.com/taironas","followers_url":"https://api.github.com/users/taironas/followers","following_url":"https://api.github.com/users/taironas/following{/other_user}","gists_url":"https://api.github.com/users/taironas/gists{/gist_id}","starred_url":"https://api.github.com/users/taironas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taironas/subscriptions","organizations_url":"https://api.github.com/users/taironas/orgs","repos_url":"https://api.github.com/users/taironas/repos","events_url":"https://api.github.com/users/taironas/events{/privacy}","received_events_url":"https://api.github.com/users/taironas/received_events","type":"Organization","site_admin":false},"repo":{"id":10026600,"name":"gonawin","full_name":"taironas/gonawin","owner":{"login":"taironas","id":7430045,"avatar_url":"https://avatars.githubusercontent.com/u/7430045?v=3","gravatar_id":"","url":"https://api.github.com/users/taironas","html_url":"https://github.com/taironas","followers_url":"https://api.github.com/users/taironas/followers","following_url":"https://api.github.com/users/taironas/following{/other_user}","gists_url":"https://api.github.com/users/taironas/gists{/gist_id}","starred_url":"https://api.github.com/users/taironas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taironas/subscriptions","organizations_url":"https://api.github.com/users/taironas/orgs","repos_url":"https://api.github.com/users/taironas/repos","events_url":"https://api.github.com/users/taironas/events{/privacy}","received_events_url":"https://api.github.com/users/taironas/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/taironas/gonawin","description":"A social web application to make \"friendly bets\" on sport games with your friends.","fork":false,"url":"https://api.github.com/repos/taironas/gonawin","forks_url":"https://api.github.com/repos/taironas/gonawin/forks","keys_url":"https://api.github.com/repos/taironas/gonawin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/taironas/gonawin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/taironas/gonawin/teams","hooks_url":"https://api.github.com/repos/taironas/gonawin/hooks","issue_events_url":"https://api.github.com/repos/taironas/gonawin/issues/events{/number}","events_url":"https://api.github.com/repos/taironas/gonawin/events","assignees_url":"https://api.github.com/repos/taironas/gonawin/assignees{/user}","branches_url":"https://api.github.com/repos/taironas/gonawin/branches{/branch}","tags_url":"https://api.github.com/repos/taironas/gonawin/tags","blobs_url":"https://api.github.com/repos/taironas/gonawin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/taironas/gonawin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/taironas/gonawin/git/refs{/sha}","trees_url":"https://api.github.com/repos/taironas/gonawin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/taironas/gonawin/statuses/{sha}","languages_url":"https://api.github.com/repos/taironas/gonawin/languages","stargazers_url":"https://api.github.com/repos/taironas/gonawin/stargazers","contributors_url":"https://api.github.com/repos/taironas/gonawin/contributors","subscribers_url":"https://api.github.com/repos/taironas/gonawin/subscribers","subscription_url":"https://api.github.com/repos/taironas/gonawin/subscription","commits_url":"https://api.github.com/repos/taironas/gonawin/commits{/sha}","git_commits_url":"https://api.github.com/repos/taironas/gonawin/git/commits{/sha}","comments_url":"https://api.github.com/repos/taironas/gonawin/comments{/number}","issue_comment_url":"https://api.github.com/repos/taironas/gonawin/issues/comments{/number}","contents_url":"https://api.github.com/repos/taironas/gonawin/contents/{+path}","compare_url":"https://api.github.com/repos/taironas/gonawin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/taironas/gonawin/merges","archive_url":"https://api.github.com/repos/taironas/gonawin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/taironas/gonawin/downloads","issues_url":"https://api.github.com/repos/taironas/gonawin/issues{/number}","pulls_url":"https://api.github.com/repos/taironas/gonawin/pulls{/number}","milestones_url":"https://api.github.com/repos/taironas/gonawin/milestones{/number}","notifications_url":"https://api.github.com/repos/taironas/gonawin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/taironas/gonawin/labels{/name}","releases_url":"https://api.github.com/repos/taironas/gonawin/releases{/id}","created_at":"2013-05-13T07:34:32Z","updated_at":"2015-07-15T14:39:42Z","pushed_at":"2015-09-07T06:48:14Z","git_url":"git://github.com/taironas/gonawin.git","ssh_url":"git@github.com:taironas/gonawin.git","clone_url":"https://github.com/taironas/gonawin.git","svn_url":"https://github.com/taironas/gonawin","homepage":"gonawin.com","size":15216,"stargazers_count":13,"watchers_count":13,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":76,"forks":1,"open_issues":76,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/taironas/gonawin/pulls/741"},"html":{"href":"https://github.com/taironas/gonawin/pull/741"},"issue":{"href":"https://api.github.com/repos/taironas/gonawin/issues/741"},"comments":{"href":"https://api.github.com/repos/taironas/gonawin/issues/741/comments"},"review_comments":{"href":"https://api.github.com/repos/taironas/gonawin/pulls/741/comments"},"review_comment":{"href":"https://api.github.com/repos/taironas/gonawin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/taironas/gonawin/pulls/741/commits"},"statuses":{"href":"https://api.github.com/repos/taironas/gonawin/statuses/e14af394865af1f96c0dee919bb55611df1bafc7"}}}}