{"action":"created","comment":{"url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/pulls/comments/29685809","id":29685809,"diff_hunk":"@@ -6,6 +6,20 @@ def valid_signin(user)\n   click_button \"Sign in\"\n end\n \n+def sign_in(user, options={})\n+  if options[:no_capybara]\n+    # Capybaraを使用していない場合にもサインインする。\n+    remember_token = User.new_remember_token\n+    cookies[:remember_token] = remember_token\n+    user.update_attribute(:remember_token, User.encrypt(remember_token))\n+  else\n+    visit signin_path\n+    fill_in \"Email\",    with: user.email","path":"spec/support/utilities.rb","position":12,"original_position":12,"commit_id":"68161f8fabded8f47764aecdce88d78074309e07","original_commit_id":"68161f8fabded8f47764aecdce88d78074309e07","user":{"login":"tuantranf","id":2492637,"avatar_url":"https://avatars.githubusercontent.com/u/2492637?v=3","gravatar_id":"","url":"https://api.github.com/users/tuantranf","html_url":"https://github.com/tuantranf","followers_url":"https://api.github.com/users/tuantranf/followers","following_url":"https://api.github.com/users/tuantranf/following{/other_user}","gists_url":"https://api.github.com/users/tuantranf/gists{/gist_id}","starred_url":"https://api.github.com/users/tuantranf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuantranf/subscriptions","organizations_url":"https://api.github.com/users/tuantranf/orgs","repos_url":"https://api.github.com/users/tuantranf/repos","events_url":"https://api.github.com/users/tuantranf/events{/privacy}","received_events_url":"https://api.github.com/users/tuantranf/received_events","type":"User","site_admin":false},"body":"[rubocop] Prefer single-quoted strings when you don't need string interpolation or special symbols.","created_at":"2015-05-05T16:23:41Z","updated_at":"2015-05-05T16:23:41Z","html_url":"https://github.com/tuantranf/ruby-sample-app1/pull/7#discussion_r29685809","pull_request_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/tuantranf/ruby-sample-app1/pulls/comments/29685809"},"html":{"href":"https://github.com/tuantranf/ruby-sample-app1/pull/7#discussion_r29685809"},"pull_request":{"href":"https://api.github.com/repos/tuantranf/ruby-sample-app1/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/pulls/7","id":34741491,"html_url":"https://github.com/tuantranf/ruby-sample-app1/pull/7","diff_url":"https://github.com/tuantranf/ruby-sample-app1/pull/7.diff","patch_url":"https://github.com/tuantranf/ruby-sample-app1/pull/7.patch","issue_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/issues/7","number":7,"state":"open","locked":false,"title":"Updating users","user":{"login":"tuantranf","id":2492637,"avatar_url":"https://avatars.githubusercontent.com/u/2492637?v=3","gravatar_id":"","url":"https://api.github.com/users/tuantranf","html_url":"https://github.com/tuantranf","followers_url":"https://api.github.com/users/tuantranf/followers","following_url":"https://api.github.com/users/tuantranf/following{/other_user}","gists_url":"https://api.github.com/users/tuantranf/gists{/gist_id}","starred_url":"https://api.github.com/users/tuantranf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuantranf/subscriptions","organizations_url":"https://api.github.com/users/tuantranf/orgs","repos_url":"https://api.github.com/users/tuantranf/repos","events_url":"https://api.github.com/users/tuantranf/events{/privacy}","received_events_url":"https://api.github.com/users/tuantranf/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-05T16:22:19Z","updated_at":"2015-05-05T16:23:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c3d53238ed3ec1828ee171073e67ac7616b7fc3c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/pulls/7/commits","review_comments_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/pulls/7/comments","review_comment_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/issues/7/comments","statuses_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/statuses/68161f8fabded8f47764aecdce88d78074309e07","head":{"label":"tuantranf:updating-users","ref":"updating-users","sha":"68161f8fabded8f47764aecdce88d78074309e07","user":{"login":"tuantranf","id":2492637,"avatar_url":"https://avatars.githubusercontent.com/u/2492637?v=3","gravatar_id":"","url":"https://api.github.com/users/tuantranf","html_url":"https://github.com/tuantranf","followers_url":"https://api.github.com/users/tuantranf/followers","following_url":"https://api.github.com/users/tuantranf/following{/other_user}","gists_url":"https://api.github.com/users/tuantranf/gists{/gist_id}","starred_url":"https://api.github.com/users/tuantranf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuantranf/subscriptions","organizations_url":"https://api.github.com/users/tuantranf/orgs","repos_url":"https://api.github.com/users/tuantranf/repos","events_url":"https://api.github.com/users/tuantranf/events{/privacy}","received_events_url":"https://api.github.com/users/tuantranf/received_events","type":"User","site_admin":false},"repo":{"id":32642133,"name":"ruby-sample-app1","full_name":"tuantranf/ruby-sample-app1","owner":{"login":"tuantranf","id":2492637,"avatar_url":"https://avatars.githubusercontent.com/u/2492637?v=3","gravatar_id":"","url":"https://api.github.com/users/tuantranf","html_url":"https://github.com/tuantranf","followers_url":"https://api.github.com/users/tuantranf/followers","following_url":"https://api.github.com/users/tuantranf/following{/other_user}","gists_url":"https://api.github.com/users/tuantranf/gists{/gist_id}","starred_url":"https://api.github.com/users/tuantranf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuantranf/subscriptions","organizations_url":"https://api.github.com/users/tuantranf/orgs","repos_url":"https://api.github.com/users/tuantranf/repos","events_url":"https://api.github.com/users/tuantranf/events{/privacy}","received_events_url":"https://api.github.com/users/tuantranf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tuantranf/ruby-sample-app1","description":"","fork":false,"url":"https://api.github.com/repos/tuantranf/ruby-sample-app1","forks_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/forks","keys_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/teams","hooks_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/hooks","issue_events_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/issues/events{/number}","events_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/events","assignees_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/assignees{/user}","branches_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/branches{/branch}","tags_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/tags","blobs_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/git/refs{/sha}","trees_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/statuses/{sha}","languages_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/languages","stargazers_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/stargazers","contributors_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/contributors","subscribers_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/subscribers","subscription_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/subscription","commits_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/commits{/sha}","git_commits_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/git/commits{/sha}","comments_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/comments{/number}","issue_comment_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/issues/comments{/number}","contents_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/contents/{+path}","compare_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/merges","archive_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/downloads","issues_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/issues{/number}","pulls_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/pulls{/number}","milestones_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/milestones{/number}","notifications_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/labels{/name}","releases_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/releases{/id}","created_at":"2015-03-21T17:25:50Z","updated_at":"2015-03-30T16:28:33Z","pushed_at":"2015-05-05T16:22:20Z","git_url":"git://github.com/tuantranf/ruby-sample-app1.git","ssh_url":"git@github.com:tuantranf/ruby-sample-app1.git","clone_url":"https://github.com/tuantranf/ruby-sample-app1.git","svn_url":"https://github.com/tuantranf/ruby-sample-app1","homepage":null,"size":304,"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":"tuantranf:master","ref":"master","sha":"ae41d76447b82f54a30a058538ffbbe99629636b","user":{"login":"tuantranf","id":2492637,"avatar_url":"https://avatars.githubusercontent.com/u/2492637?v=3","gravatar_id":"","url":"https://api.github.com/users/tuantranf","html_url":"https://github.com/tuantranf","followers_url":"https://api.github.com/users/tuantranf/followers","following_url":"https://api.github.com/users/tuantranf/following{/other_user}","gists_url":"https://api.github.com/users/tuantranf/gists{/gist_id}","starred_url":"https://api.github.com/users/tuantranf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuantranf/subscriptions","organizations_url":"https://api.github.com/users/tuantranf/orgs","repos_url":"https://api.github.com/users/tuantranf/repos","events_url":"https://api.github.com/users/tuantranf/events{/privacy}","received_events_url":"https://api.github.com/users/tuantranf/received_events","type":"User","site_admin":false},"repo":{"id":32642133,"name":"ruby-sample-app1","full_name":"tuantranf/ruby-sample-app1","owner":{"login":"tuantranf","id":2492637,"avatar_url":"https://avatars.githubusercontent.com/u/2492637?v=3","gravatar_id":"","url":"https://api.github.com/users/tuantranf","html_url":"https://github.com/tuantranf","followers_url":"https://api.github.com/users/tuantranf/followers","following_url":"https://api.github.com/users/tuantranf/following{/other_user}","gists_url":"https://api.github.com/users/tuantranf/gists{/gist_id}","starred_url":"https://api.github.com/users/tuantranf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuantranf/subscriptions","organizations_url":"https://api.github.com/users/tuantranf/orgs","repos_url":"https://api.github.com/users/tuantranf/repos","events_url":"https://api.github.com/users/tuantranf/events{/privacy}","received_events_url":"https://api.github.com/users/tuantranf/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tuantranf/ruby-sample-app1","description":"","fork":false,"url":"https://api.github.com/repos/tuantranf/ruby-sample-app1","forks_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/forks","keys_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/teams","hooks_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/hooks","issue_events_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/issues/events{/number}","events_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/events","assignees_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/assignees{/user}","branches_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/branches{/branch}","tags_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/tags","blobs_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/git/refs{/sha}","trees_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/statuses/{sha}","languages_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/languages","stargazers_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/stargazers","contributors_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/contributors","subscribers_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/subscribers","subscription_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/subscription","commits_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/commits{/sha}","git_commits_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/git/commits{/sha}","comments_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/comments{/number}","issue_comment_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/issues/comments{/number}","contents_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/contents/{+path}","compare_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/merges","archive_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/downloads","issues_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/issues{/number}","pulls_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/pulls{/number}","milestones_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/milestones{/number}","notifications_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/labels{/name}","releases_url":"https://api.github.com/repos/tuantranf/ruby-sample-app1/releases{/id}","created_at":"2015-03-21T17:25:50Z","updated_at":"2015-03-30T16:28:33Z","pushed_at":"2015-05-05T16:22:20Z","git_url":"git://github.com/tuantranf/ruby-sample-app1.git","ssh_url":"git@github.com:tuantranf/ruby-sample-app1.git","clone_url":"https://github.com/tuantranf/ruby-sample-app1.git","svn_url":"https://github.com/tuantranf/ruby-sample-app1","homepage":null,"size":304,"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/tuantranf/ruby-sample-app1/pulls/7"},"html":{"href":"https://github.com/tuantranf/ruby-sample-app1/pull/7"},"issue":{"href":"https://api.github.com/repos/tuantranf/ruby-sample-app1/issues/7"},"comments":{"href":"https://api.github.com/repos/tuantranf/ruby-sample-app1/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/tuantranf/ruby-sample-app1/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/tuantranf/ruby-sample-app1/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tuantranf/ruby-sample-app1/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/tuantranf/ruby-sample-app1/statuses/68161f8fabded8f47764aecdce88d78074309e07"}}}}