{"action":"created","comment":{"url":"https://api.github.com/repos/trinhvantu/sample_app/pulls/comments/91255722","pull_request_review_id":11763245,"id":91255722,"diff_hunk":"@@ -0,0 +1,49 @@\n+require \"test_helper\"\n+\n+class UsersLoginTest < ActionDispatch::IntegrationTest\n+  def setup\n+    @user = users :michael\n+  end\n+\n+  test \"login with invalid information\" do\n+    get login_path\n+    assert_template \"sessions/new\"\n+    post login_path, params: {session: { email: \"\", password: \"\" }}\n+    assert_template \"sessions/new\"\n+    assert_not flash.empty?\n+    get root_path\n+    assert flash.empty?\n+  end\n+  \n+  test \"login with valid information\" do\n+    get login_path\n+    post login_path, params: { session: { email: @user.email,","path":"test/integration/users_login_test.rb","position":20,"original_position":20,"commit_id":"d1b11dbff32ecf5e1db21dee38a1775989a0f9f1","original_commit_id":"d1b11dbff32ecf5e1db21dee38a1775989a0f9f1","user":{"login":"haits293","id":16861871,"avatar_url":"https://avatars.githubusercontent.com/u/16861871?v=3","gravatar_id":"","url":"https://api.github.com/users/haits293","html_url":"https://github.com/haits293","followers_url":"https://api.github.com/users/haits293/followers","following_url":"https://api.github.com/users/haits293/following{/other_user}","gists_url":"https://api.github.com/users/haits293/gists{/gist_id}","starred_url":"https://api.github.com/users/haits293/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haits293/subscriptions","organizations_url":"https://api.github.com/users/haits293/orgs","repos_url":"https://api.github.com/users/haits293/repos","events_url":"https://api.github.com/users/haits293/events{/privacy}","received_events_url":"https://api.github.com/users/haits293/received_events","type":"User","site_admin":false},"body":"coding convention","created_at":"2016-12-07T09:37:41Z","updated_at":"2016-12-07T09:37:41Z","html_url":"https://github.com/trinhvantu/sample_app/pull/6#discussion_r91255722","pull_request_url":"https://api.github.com/repos/trinhvantu/sample_app/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/trinhvantu/sample_app/pulls/comments/91255722"},"html":{"href":"https://github.com/trinhvantu/sample_app/pull/6#discussion_r91255722"},"pull_request":{"href":"https://api.github.com/repos/trinhvantu/sample_app/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/trinhvantu/sample_app/pulls/6","id":96879559,"html_url":"https://github.com/trinhvantu/sample_app/pull/6","diff_url":"https://github.com/trinhvantu/sample_app/pull/6.diff","patch_url":"https://github.com/trinhvantu/sample_app/pull/6.patch","issue_url":"https://api.github.com/repos/trinhvantu/sample_app/issues/6","number":6,"state":"open","locked":false,"title":"Implement basic login","user":{"login":"trinhvantu","id":23627979,"avatar_url":"https://avatars.githubusercontent.com/u/23627979?v=3","gravatar_id":"","url":"https://api.github.com/users/trinhvantu","html_url":"https://github.com/trinhvantu","followers_url":"https://api.github.com/users/trinhvantu/followers","following_url":"https://api.github.com/users/trinhvantu/following{/other_user}","gists_url":"https://api.github.com/users/trinhvantu/gists{/gist_id}","starred_url":"https://api.github.com/users/trinhvantu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trinhvantu/subscriptions","organizations_url":"https://api.github.com/users/trinhvantu/orgs","repos_url":"https://api.github.com/users/trinhvantu/repos","events_url":"https://api.github.com/users/trinhvantu/events{/privacy}","received_events_url":"https://api.github.com/users/trinhvantu/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-07T08:39:11Z","updated_at":"2016-12-07T09:37:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2e908ca4e621f65142cdd9280ba98fe8d9f57f1f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/trinhvantu/sample_app/pulls/6/commits","review_comments_url":"https://api.github.com/repos/trinhvantu/sample_app/pulls/6/comments","review_comment_url":"https://api.github.com/repos/trinhvantu/sample_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/trinhvantu/sample_app/issues/6/comments","statuses_url":"https://api.github.com/repos/trinhvantu/sample_app/statuses/d1b11dbff32ecf5e1db21dee38a1775989a0f9f1","head":{"label":"trinhvantu:login","ref":"login","sha":"d1b11dbff32ecf5e1db21dee38a1775989a0f9f1","user":{"login":"trinhvantu","id":23627979,"avatar_url":"https://avatars.githubusercontent.com/u/23627979?v=3","gravatar_id":"","url":"https://api.github.com/users/trinhvantu","html_url":"https://github.com/trinhvantu","followers_url":"https://api.github.com/users/trinhvantu/followers","following_url":"https://api.github.com/users/trinhvantu/following{/other_user}","gists_url":"https://api.github.com/users/trinhvantu/gists{/gist_id}","starred_url":"https://api.github.com/users/trinhvantu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trinhvantu/subscriptions","organizations_url":"https://api.github.com/users/trinhvantu/orgs","repos_url":"https://api.github.com/users/trinhvantu/repos","events_url":"https://api.github.com/users/trinhvantu/events{/privacy}","received_events_url":"https://api.github.com/users/trinhvantu/received_events","type":"User","site_admin":false},"repo":{"id":74719335,"name":"sample_app","full_name":"trinhvantu/sample_app","owner":{"login":"trinhvantu","id":23627979,"avatar_url":"https://avatars.githubusercontent.com/u/23627979?v=3","gravatar_id":"","url":"https://api.github.com/users/trinhvantu","html_url":"https://github.com/trinhvantu","followers_url":"https://api.github.com/users/trinhvantu/followers","following_url":"https://api.github.com/users/trinhvantu/following{/other_user}","gists_url":"https://api.github.com/users/trinhvantu/gists{/gist_id}","starred_url":"https://api.github.com/users/trinhvantu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trinhvantu/subscriptions","organizations_url":"https://api.github.com/users/trinhvantu/orgs","repos_url":"https://api.github.com/users/trinhvantu/repos","events_url":"https://api.github.com/users/trinhvantu/events{/privacy}","received_events_url":"https://api.github.com/users/trinhvantu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/trinhvantu/sample_app","description":null,"fork":false,"url":"https://api.github.com/repos/trinhvantu/sample_app","forks_url":"https://api.github.com/repos/trinhvantu/sample_app/forks","keys_url":"https://api.github.com/repos/trinhvantu/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trinhvantu/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trinhvantu/sample_app/teams","hooks_url":"https://api.github.com/repos/trinhvantu/sample_app/hooks","issue_events_url":"https://api.github.com/repos/trinhvantu/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/trinhvantu/sample_app/events","assignees_url":"https://api.github.com/repos/trinhvantu/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/trinhvantu/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/trinhvantu/sample_app/tags","blobs_url":"https://api.github.com/repos/trinhvantu/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trinhvantu/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trinhvantu/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/trinhvantu/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trinhvantu/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/trinhvantu/sample_app/languages","stargazers_url":"https://api.github.com/repos/trinhvantu/sample_app/stargazers","contributors_url":"https://api.github.com/repos/trinhvantu/sample_app/contributors","subscribers_url":"https://api.github.com/repos/trinhvantu/sample_app/subscribers","subscription_url":"https://api.github.com/repos/trinhvantu/sample_app/subscription","commits_url":"https://api.github.com/repos/trinhvantu/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/trinhvantu/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/trinhvantu/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/trinhvantu/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/trinhvantu/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/trinhvantu/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trinhvantu/sample_app/merges","archive_url":"https://api.github.com/repos/trinhvantu/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trinhvantu/sample_app/downloads","issues_url":"https://api.github.com/repos/trinhvantu/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/trinhvantu/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/trinhvantu/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/trinhvantu/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trinhvantu/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/trinhvantu/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/trinhvantu/sample_app/deployments","created_at":"2016-11-25T02:34:33Z","updated_at":"2016-11-25T02:35:54Z","pushed_at":"2016-12-07T09:28:12Z","git_url":"git://github.com/trinhvantu/sample_app.git","ssh_url":"git@github.com:trinhvantu/sample_app.git","clone_url":"https://github.com/trinhvantu/sample_app.git","svn_url":"https://github.com/trinhvantu/sample_app","homepage":null,"size":52,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"trinhvantu:master","ref":"master","sha":"b4dbd9620572cc9bc1d915cff82c7f17e59c172e","user":{"login":"trinhvantu","id":23627979,"avatar_url":"https://avatars.githubusercontent.com/u/23627979?v=3","gravatar_id":"","url":"https://api.github.com/users/trinhvantu","html_url":"https://github.com/trinhvantu","followers_url":"https://api.github.com/users/trinhvantu/followers","following_url":"https://api.github.com/users/trinhvantu/following{/other_user}","gists_url":"https://api.github.com/users/trinhvantu/gists{/gist_id}","starred_url":"https://api.github.com/users/trinhvantu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trinhvantu/subscriptions","organizations_url":"https://api.github.com/users/trinhvantu/orgs","repos_url":"https://api.github.com/users/trinhvantu/repos","events_url":"https://api.github.com/users/trinhvantu/events{/privacy}","received_events_url":"https://api.github.com/users/trinhvantu/received_events","type":"User","site_admin":false},"repo":{"id":74719335,"name":"sample_app","full_name":"trinhvantu/sample_app","owner":{"login":"trinhvantu","id":23627979,"avatar_url":"https://avatars.githubusercontent.com/u/23627979?v=3","gravatar_id":"","url":"https://api.github.com/users/trinhvantu","html_url":"https://github.com/trinhvantu","followers_url":"https://api.github.com/users/trinhvantu/followers","following_url":"https://api.github.com/users/trinhvantu/following{/other_user}","gists_url":"https://api.github.com/users/trinhvantu/gists{/gist_id}","starred_url":"https://api.github.com/users/trinhvantu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trinhvantu/subscriptions","organizations_url":"https://api.github.com/users/trinhvantu/orgs","repos_url":"https://api.github.com/users/trinhvantu/repos","events_url":"https://api.github.com/users/trinhvantu/events{/privacy}","received_events_url":"https://api.github.com/users/trinhvantu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/trinhvantu/sample_app","description":null,"fork":false,"url":"https://api.github.com/repos/trinhvantu/sample_app","forks_url":"https://api.github.com/repos/trinhvantu/sample_app/forks","keys_url":"https://api.github.com/repos/trinhvantu/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/trinhvantu/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/trinhvantu/sample_app/teams","hooks_url":"https://api.github.com/repos/trinhvantu/sample_app/hooks","issue_events_url":"https://api.github.com/repos/trinhvantu/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/trinhvantu/sample_app/events","assignees_url":"https://api.github.com/repos/trinhvantu/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/trinhvantu/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/trinhvantu/sample_app/tags","blobs_url":"https://api.github.com/repos/trinhvantu/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/trinhvantu/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/trinhvantu/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/trinhvantu/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/trinhvantu/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/trinhvantu/sample_app/languages","stargazers_url":"https://api.github.com/repos/trinhvantu/sample_app/stargazers","contributors_url":"https://api.github.com/repos/trinhvantu/sample_app/contributors","subscribers_url":"https://api.github.com/repos/trinhvantu/sample_app/subscribers","subscription_url":"https://api.github.com/repos/trinhvantu/sample_app/subscription","commits_url":"https://api.github.com/repos/trinhvantu/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/trinhvantu/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/trinhvantu/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/trinhvantu/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/trinhvantu/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/trinhvantu/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/trinhvantu/sample_app/merges","archive_url":"https://api.github.com/repos/trinhvantu/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/trinhvantu/sample_app/downloads","issues_url":"https://api.github.com/repos/trinhvantu/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/trinhvantu/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/trinhvantu/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/trinhvantu/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/trinhvantu/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/trinhvantu/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/trinhvantu/sample_app/deployments","created_at":"2016-11-25T02:34:33Z","updated_at":"2016-11-25T02:35:54Z","pushed_at":"2016-12-07T09:28:12Z","git_url":"git://github.com/trinhvantu/sample_app.git","ssh_url":"git@github.com:trinhvantu/sample_app.git","clone_url":"https://github.com/trinhvantu/sample_app.git","svn_url":"https://github.com/trinhvantu/sample_app","homepage":null,"size":52,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/trinhvantu/sample_app/pulls/6"},"html":{"href":"https://github.com/trinhvantu/sample_app/pull/6"},"issue":{"href":"https://api.github.com/repos/trinhvantu/sample_app/issues/6"},"comments":{"href":"https://api.github.com/repos/trinhvantu/sample_app/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/trinhvantu/sample_app/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/trinhvantu/sample_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/trinhvantu/sample_app/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/trinhvantu/sample_app/statuses/d1b11dbff32ecf5e1db21dee38a1775989a0f9f1"}}}}
{"actor":{"display_login":"haits293"}}