{"action":"created","comment":{"url":"https://api.github.com/repos/andela-mogala/shot/pulls/comments/83667669","pull_request_review_id":4495940,"id":83667669,"diff_hunk":"@@ -0,0 +1,31 @@\n+def sign_up\n+  visit root_path\n+  click_link 'Sign Up'\n+  fill_signup_form\n+end\n+\n+def sign_in\n+  visit root_path\n+  click_link 'Sign In'\n+  user = create(:user)\n+  fill_in 'session_email', with: user.email\n+  fill_in 'session_password', with: user.password\n+  click_button 'Log in'\n+end\n+\n+def create_a_link(link)\n+  fill_in 'link_given_url', with: link.given_url\n+  fill_in 'link_slug', with: link.slug\n+  click_button 'CREATE LINK'\n+end\n+\n+def fill_signup_form\n+  user = build(:user)\n+\n+  fill_in 'user_first_name', with: user.first_name\n+  fill_in 'user_last_name', with: user.last_name\n+  fill_in 'user_email', with: user.email\n+  fill_in 'user_password', with: user.password\n+  fill_in 'user_password_confirmation', with: user.password\n+  click_button 'Sign up'\n+end","path":"spec/support/users_helper.rb","position":31,"original_position":31,"commit_id":"bebce44485c2b43e8baa7c7aa43fcc1eb849eda6","original_commit_id":"bebce44485c2b43e8baa7c7aa43fcc1eb849eda6","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Final newline missing.","created_at":"2016-10-17T15:23:43Z","updated_at":"2016-10-17T15:23:43Z","html_url":"https://github.com/andela-mogala/shot/pull/8#discussion_r83667669","pull_request_url":"https://api.github.com/repos/andela-mogala/shot/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/andela-mogala/shot/pulls/comments/83667669"},"html":{"href":"https://github.com/andela-mogala/shot/pull/8#discussion_r83667669"},"pull_request":{"href":"https://api.github.com/repos/andela-mogala/shot/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/andela-mogala/shot/pulls/8","id":89645294,"html_url":"https://github.com/andela-mogala/shot/pull/8","diff_url":"https://github.com/andela-mogala/shot/pull/8.diff","patch_url":"https://github.com/andela-mogala/shot/pull/8.patch","issue_url":"https://api.github.com/repos/andela-mogala/shot/issues/8","number":8,"state":"open","locked":false,"title":"Refactor","user":{"login":"andela-mogala","id":20759355,"avatar_url":"https://avatars.githubusercontent.com/u/20759355?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-mogala","html_url":"https://github.com/andela-mogala","followers_url":"https://api.github.com/users/andela-mogala/followers","following_url":"https://api.github.com/users/andela-mogala/following{/other_user}","gists_url":"https://api.github.com/users/andela-mogala/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-mogala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-mogala/subscriptions","organizations_url":"https://api.github.com/users/andela-mogala/orgs","repos_url":"https://api.github.com/users/andela-mogala/repos","events_url":"https://api.github.com/users/andela-mogala/events{/privacy}","received_events_url":"https://api.github.com/users/andela-mogala/received_events","type":"User","site_admin":false},"body":"**CORRECTIONS BASED ON CP2 DEFENCE**\r\n* Refactor LinksController and move extra methods to the model.\r\n* Remove RedirectsController and move the actions to the LinksController\r\n* Rewrite tests for models, controllers and features to use the appropriate language and structure (eg using ```let``` to declare variables and using ```describe``` and ```context``` to properly group examples)","created_at":"2016-10-17T15:23:27Z","updated_at":"2016-10-17T15:23:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7b4f7caf291b2f50d1fd46931fdcf974532e2d3d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela-mogala/shot/pulls/8/commits","review_comments_url":"https://api.github.com/repos/andela-mogala/shot/pulls/8/comments","review_comment_url":"https://api.github.com/repos/andela-mogala/shot/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela-mogala/shot/issues/8/comments","statuses_url":"https://api.github.com/repos/andela-mogala/shot/statuses/bebce44485c2b43e8baa7c7aa43fcc1eb849eda6","head":{"label":"andela-mogala:refactor","ref":"refactor","sha":"bebce44485c2b43e8baa7c7aa43fcc1eb849eda6","user":{"login":"andela-mogala","id":20759355,"avatar_url":"https://avatars.githubusercontent.com/u/20759355?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-mogala","html_url":"https://github.com/andela-mogala","followers_url":"https://api.github.com/users/andela-mogala/followers","following_url":"https://api.github.com/users/andela-mogala/following{/other_user}","gists_url":"https://api.github.com/users/andela-mogala/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-mogala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-mogala/subscriptions","organizations_url":"https://api.github.com/users/andela-mogala/orgs","repos_url":"https://api.github.com/users/andela-mogala/repos","events_url":"https://api.github.com/users/andela-mogala/events{/privacy}","received_events_url":"https://api.github.com/users/andela-mogala/received_events","type":"User","site_admin":false},"repo":{"id":67685743,"name":"shot","full_name":"andela-mogala/shot","owner":{"login":"andela-mogala","id":20759355,"avatar_url":"https://avatars.githubusercontent.com/u/20759355?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-mogala","html_url":"https://github.com/andela-mogala","followers_url":"https://api.github.com/users/andela-mogala/followers","following_url":"https://api.github.com/users/andela-mogala/following{/other_user}","gists_url":"https://api.github.com/users/andela-mogala/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-mogala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-mogala/subscriptions","organizations_url":"https://api.github.com/users/andela-mogala/orgs","repos_url":"https://api.github.com/users/andela-mogala/repos","events_url":"https://api.github.com/users/andela-mogala/events{/privacy}","received_events_url":"https://api.github.com/users/andela-mogala/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-mogala/shot","description":"A Url-Shortener that lives on Heroku. ","fork":false,"url":"https://api.github.com/repos/andela-mogala/shot","forks_url":"https://api.github.com/repos/andela-mogala/shot/forks","keys_url":"https://api.github.com/repos/andela-mogala/shot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-mogala/shot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-mogala/shot/teams","hooks_url":"https://api.github.com/repos/andela-mogala/shot/hooks","issue_events_url":"https://api.github.com/repos/andela-mogala/shot/issues/events{/number}","events_url":"https://api.github.com/repos/andela-mogala/shot/events","assignees_url":"https://api.github.com/repos/andela-mogala/shot/assignees{/user}","branches_url":"https://api.github.com/repos/andela-mogala/shot/branches{/branch}","tags_url":"https://api.github.com/repos/andela-mogala/shot/tags","blobs_url":"https://api.github.com/repos/andela-mogala/shot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-mogala/shot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-mogala/shot/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-mogala/shot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-mogala/shot/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-mogala/shot/languages","stargazers_url":"https://api.github.com/repos/andela-mogala/shot/stargazers","contributors_url":"https://api.github.com/repos/andela-mogala/shot/contributors","subscribers_url":"https://api.github.com/repos/andela-mogala/shot/subscribers","subscription_url":"https://api.github.com/repos/andela-mogala/shot/subscription","commits_url":"https://api.github.com/repos/andela-mogala/shot/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-mogala/shot/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-mogala/shot/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-mogala/shot/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-mogala/shot/contents/{+path}","compare_url":"https://api.github.com/repos/andela-mogala/shot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-mogala/shot/merges","archive_url":"https://api.github.com/repos/andela-mogala/shot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-mogala/shot/downloads","issues_url":"https://api.github.com/repos/andela-mogala/shot/issues{/number}","pulls_url":"https://api.github.com/repos/andela-mogala/shot/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-mogala/shot/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-mogala/shot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-mogala/shot/labels{/name}","releases_url":"https://api.github.com/repos/andela-mogala/shot/releases{/id}","deployments_url":"https://api.github.com/repos/andela-mogala/shot/deployments","created_at":"2016-09-08T08:50:23Z","updated_at":"2016-09-08T08:51:11Z","pushed_at":"2016-10-17T15:23:27Z","git_url":"git://github.com/andela-mogala/shot.git","ssh_url":"git@github.com:andela-mogala/shot.git","clone_url":"https://github.com/andela-mogala/shot.git","svn_url":"https://github.com/andela-mogala/shot","homepage":null,"size":1084,"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":"andela-mogala:master","ref":"master","sha":"2c97899c8c9b85aead56857ddc1d9718e4f6800d","user":{"login":"andela-mogala","id":20759355,"avatar_url":"https://avatars.githubusercontent.com/u/20759355?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-mogala","html_url":"https://github.com/andela-mogala","followers_url":"https://api.github.com/users/andela-mogala/followers","following_url":"https://api.github.com/users/andela-mogala/following{/other_user}","gists_url":"https://api.github.com/users/andela-mogala/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-mogala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-mogala/subscriptions","organizations_url":"https://api.github.com/users/andela-mogala/orgs","repos_url":"https://api.github.com/users/andela-mogala/repos","events_url":"https://api.github.com/users/andela-mogala/events{/privacy}","received_events_url":"https://api.github.com/users/andela-mogala/received_events","type":"User","site_admin":false},"repo":{"id":67685743,"name":"shot","full_name":"andela-mogala/shot","owner":{"login":"andela-mogala","id":20759355,"avatar_url":"https://avatars.githubusercontent.com/u/20759355?v=3","gravatar_id":"","url":"https://api.github.com/users/andela-mogala","html_url":"https://github.com/andela-mogala","followers_url":"https://api.github.com/users/andela-mogala/followers","following_url":"https://api.github.com/users/andela-mogala/following{/other_user}","gists_url":"https://api.github.com/users/andela-mogala/gists{/gist_id}","starred_url":"https://api.github.com/users/andela-mogala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela-mogala/subscriptions","organizations_url":"https://api.github.com/users/andela-mogala/orgs","repos_url":"https://api.github.com/users/andela-mogala/repos","events_url":"https://api.github.com/users/andela-mogala/events{/privacy}","received_events_url":"https://api.github.com/users/andela-mogala/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andela-mogala/shot","description":"A Url-Shortener that lives on Heroku. ","fork":false,"url":"https://api.github.com/repos/andela-mogala/shot","forks_url":"https://api.github.com/repos/andela-mogala/shot/forks","keys_url":"https://api.github.com/repos/andela-mogala/shot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela-mogala/shot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela-mogala/shot/teams","hooks_url":"https://api.github.com/repos/andela-mogala/shot/hooks","issue_events_url":"https://api.github.com/repos/andela-mogala/shot/issues/events{/number}","events_url":"https://api.github.com/repos/andela-mogala/shot/events","assignees_url":"https://api.github.com/repos/andela-mogala/shot/assignees{/user}","branches_url":"https://api.github.com/repos/andela-mogala/shot/branches{/branch}","tags_url":"https://api.github.com/repos/andela-mogala/shot/tags","blobs_url":"https://api.github.com/repos/andela-mogala/shot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela-mogala/shot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela-mogala/shot/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela-mogala/shot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela-mogala/shot/statuses/{sha}","languages_url":"https://api.github.com/repos/andela-mogala/shot/languages","stargazers_url":"https://api.github.com/repos/andela-mogala/shot/stargazers","contributors_url":"https://api.github.com/repos/andela-mogala/shot/contributors","subscribers_url":"https://api.github.com/repos/andela-mogala/shot/subscribers","subscription_url":"https://api.github.com/repos/andela-mogala/shot/subscription","commits_url":"https://api.github.com/repos/andela-mogala/shot/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela-mogala/shot/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela-mogala/shot/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela-mogala/shot/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela-mogala/shot/contents/{+path}","compare_url":"https://api.github.com/repos/andela-mogala/shot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela-mogala/shot/merges","archive_url":"https://api.github.com/repos/andela-mogala/shot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela-mogala/shot/downloads","issues_url":"https://api.github.com/repos/andela-mogala/shot/issues{/number}","pulls_url":"https://api.github.com/repos/andela-mogala/shot/pulls{/number}","milestones_url":"https://api.github.com/repos/andela-mogala/shot/milestones{/number}","notifications_url":"https://api.github.com/repos/andela-mogala/shot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela-mogala/shot/labels{/name}","releases_url":"https://api.github.com/repos/andela-mogala/shot/releases{/id}","deployments_url":"https://api.github.com/repos/andela-mogala/shot/deployments","created_at":"2016-09-08T08:50:23Z","updated_at":"2016-09-08T08:51:11Z","pushed_at":"2016-10-17T15:23:27Z","git_url":"git://github.com/andela-mogala/shot.git","ssh_url":"git@github.com:andela-mogala/shot.git","clone_url":"https://github.com/andela-mogala/shot.git","svn_url":"https://github.com/andela-mogala/shot","homepage":null,"size":1084,"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/andela-mogala/shot/pulls/8"},"html":{"href":"https://github.com/andela-mogala/shot/pull/8"},"issue":{"href":"https://api.github.com/repos/andela-mogala/shot/issues/8"},"comments":{"href":"https://api.github.com/repos/andela-mogala/shot/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/andela-mogala/shot/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/andela-mogala/shot/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela-mogala/shot/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/andela-mogala/shot/statuses/bebce44485c2b43e8baa7c7aa43fcc1eb849eda6"}}}}
{"actor":{"display_login":"houndci-bot"}}