{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/comments/40508483","id":40508483,"diff_hunk":"@@ -0,0 +1,20 @@\n+describe User do\n+\n+ let!(:user) do\n+   User.create(email: 'test@test.com',\n+               name: 'test',\n+               username: 'test',\n+               password: 'secret1234',\n+               password_confirmation: 'secret1234')\n+ end\n+\n+ it 'authenticates when given a valid email address and password' do\n+   authenticated_user = User.authenticate(user.email, user.password)\n+   expect(authenticated_user).to eq user\n+ end\n+\n+ it 'does not authenticate when given an incorrect password' do\n+  expect(User.authenticate(user.email, 'wrong_stupid_password')).to be_nil\n+end","path":"spec/models/user_spec.rb","position":18,"original_position":18,"commit_id":"0bebbbc614d28c6da6608a66c8371977a7f847f3","original_commit_id":"0bebbbc614d28c6da6608a66c8371977a7f847f3","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Lint/BlockAlignment: `end` at 18, 0 is not aligned with `it 'does not authenticate when given an incorrect password' do` at 16, 1","created_at":"2015-09-27T19:34:35Z","updated_at":"2015-09-27T19:34:35Z","html_url":"https://github.com/makersacademy/chitter-challenge/pull/155#discussion_r40508483","pull_request_url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/155","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/comments/40508483"},"html":{"href":"https://github.com/makersacademy/chitter-challenge/pull/155#discussion_r40508483"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/155"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/155","id":46107053,"html_url":"https://github.com/makersacademy/chitter-challenge/pull/155","diff_url":"https://github.com/makersacademy/chitter-challenge/pull/155.diff","patch_url":"https://github.com/makersacademy/chitter-challenge/pull/155.patch","issue_url":"https://api.github.com/repos/makersacademy/chitter-challenge/issues/155","number":155,"state":"open","locked":false,"title":"Dom Batten chitter challenge","user":{"login":"dbatten4","id":12873656,"avatar_url":"https://avatars.githubusercontent.com/u/12873656?v=3","gravatar_id":"","url":"https://api.github.com/users/dbatten4","html_url":"https://github.com/dbatten4","followers_url":"https://api.github.com/users/dbatten4/followers","following_url":"https://api.github.com/users/dbatten4/following{/other_user}","gists_url":"https://api.github.com/users/dbatten4/gists{/gist_id}","starred_url":"https://api.github.com/users/dbatten4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbatten4/subscriptions","organizations_url":"https://api.github.com/users/dbatten4/orgs","repos_url":"https://api.github.com/users/dbatten4/repos","events_url":"https://api.github.com/users/dbatten4/events{/privacy}","received_events_url":"https://api.github.com/users/dbatten4/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-27T19:34:31Z","updated_at":"2015-09-27T19:34:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"408b5d3328a96cf0be11ad62dbba4cc67238cd72","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/155/commits","review_comments_url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/155/comments","review_comment_url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/makersacademy/chitter-challenge/issues/155/comments","statuses_url":"https://api.github.com/repos/makersacademy/chitter-challenge/statuses/0bebbbc614d28c6da6608a66c8371977a7f847f3","head":{"label":"dbatten4:master","ref":"master","sha":"0bebbbc614d28c6da6608a66c8371977a7f847f3","user":{"login":"dbatten4","id":12873656,"avatar_url":"https://avatars.githubusercontent.com/u/12873656?v=3","gravatar_id":"","url":"https://api.github.com/users/dbatten4","html_url":"https://github.com/dbatten4","followers_url":"https://api.github.com/users/dbatten4/followers","following_url":"https://api.github.com/users/dbatten4/following{/other_user}","gists_url":"https://api.github.com/users/dbatten4/gists{/gist_id}","starred_url":"https://api.github.com/users/dbatten4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbatten4/subscriptions","organizations_url":"https://api.github.com/users/dbatten4/orgs","repos_url":"https://api.github.com/users/dbatten4/repos","events_url":"https://api.github.com/users/dbatten4/events{/privacy}","received_events_url":"https://api.github.com/users/dbatten4/received_events","type":"User","site_admin":false},"repo":{"id":43157182,"name":"chitter-challenge","full_name":"dbatten4/chitter-challenge","owner":{"login":"dbatten4","id":12873656,"avatar_url":"https://avatars.githubusercontent.com/u/12873656?v=3","gravatar_id":"","url":"https://api.github.com/users/dbatten4","html_url":"https://github.com/dbatten4","followers_url":"https://api.github.com/users/dbatten4/followers","following_url":"https://api.github.com/users/dbatten4/following{/other_user}","gists_url":"https://api.github.com/users/dbatten4/gists{/gist_id}","starred_url":"https://api.github.com/users/dbatten4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbatten4/subscriptions","organizations_url":"https://api.github.com/users/dbatten4/orgs","repos_url":"https://api.github.com/users/dbatten4/repos","events_url":"https://api.github.com/users/dbatten4/events{/privacy}","received_events_url":"https://api.github.com/users/dbatten4/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dbatten4/chitter-challenge","description":"Build a Twitter Clone!","fork":true,"url":"https://api.github.com/repos/dbatten4/chitter-challenge","forks_url":"https://api.github.com/repos/dbatten4/chitter-challenge/forks","keys_url":"https://api.github.com/repos/dbatten4/chitter-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dbatten4/chitter-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dbatten4/chitter-challenge/teams","hooks_url":"https://api.github.com/repos/dbatten4/chitter-challenge/hooks","issue_events_url":"https://api.github.com/repos/dbatten4/chitter-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/dbatten4/chitter-challenge/events","assignees_url":"https://api.github.com/repos/dbatten4/chitter-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/dbatten4/chitter-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/dbatten4/chitter-challenge/tags","blobs_url":"https://api.github.com/repos/dbatten4/chitter-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dbatten4/chitter-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dbatten4/chitter-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/dbatten4/chitter-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dbatten4/chitter-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/dbatten4/chitter-challenge/languages","stargazers_url":"https://api.github.com/repos/dbatten4/chitter-challenge/stargazers","contributors_url":"https://api.github.com/repos/dbatten4/chitter-challenge/contributors","subscribers_url":"https://api.github.com/repos/dbatten4/chitter-challenge/subscribers","subscription_url":"https://api.github.com/repos/dbatten4/chitter-challenge/subscription","commits_url":"https://api.github.com/repos/dbatten4/chitter-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/dbatten4/chitter-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/dbatten4/chitter-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/dbatten4/chitter-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/dbatten4/chitter-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/dbatten4/chitter-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dbatten4/chitter-challenge/merges","archive_url":"https://api.github.com/repos/dbatten4/chitter-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dbatten4/chitter-challenge/downloads","issues_url":"https://api.github.com/repos/dbatten4/chitter-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/dbatten4/chitter-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/dbatten4/chitter-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/dbatten4/chitter-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dbatten4/chitter-challenge/labels{/name}","releases_url":"https://api.github.com/repos/dbatten4/chitter-challenge/releases{/id}","created_at":"2015-09-25T15:49:59Z","updated_at":"2015-09-25T15:50:00Z","pushed_at":"2015-09-27T19:23:55Z","git_url":"git://github.com/dbatten4/chitter-challenge.git","ssh_url":"git@github.com:dbatten4/chitter-challenge.git","clone_url":"https://github.com/dbatten4/chitter-challenge.git","svn_url":"https://github.com/dbatten4/chitter-challenge","homepage":null,"size":212,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"makersacademy:master","ref":"master","sha":"537cd3bd8b691e0432d43960c6bdbfea11ce601c","user":{"login":"makersacademy","id":3636186,"avatar_url":"https://avatars.githubusercontent.com/u/3636186?v=3","gravatar_id":"","url":"https://api.github.com/users/makersacademy","html_url":"https://github.com/makersacademy","followers_url":"https://api.github.com/users/makersacademy/followers","following_url":"https://api.github.com/users/makersacademy/following{/other_user}","gists_url":"https://api.github.com/users/makersacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/makersacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makersacademy/subscriptions","organizations_url":"https://api.github.com/users/makersacademy/orgs","repos_url":"https://api.github.com/users/makersacademy/repos","events_url":"https://api.github.com/users/makersacademy/events{/privacy}","received_events_url":"https://api.github.com/users/makersacademy/received_events","type":"Organization","site_admin":false},"repo":{"id":26954706,"name":"chitter-challenge","full_name":"makersacademy/chitter-challenge","owner":{"login":"makersacademy","id":3636186,"avatar_url":"https://avatars.githubusercontent.com/u/3636186?v=3","gravatar_id":"","url":"https://api.github.com/users/makersacademy","html_url":"https://github.com/makersacademy","followers_url":"https://api.github.com/users/makersacademy/followers","following_url":"https://api.github.com/users/makersacademy/following{/other_user}","gists_url":"https://api.github.com/users/makersacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/makersacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makersacademy/subscriptions","organizations_url":"https://api.github.com/users/makersacademy/orgs","repos_url":"https://api.github.com/users/makersacademy/repos","events_url":"https://api.github.com/users/makersacademy/events{/privacy}","received_events_url":"https://api.github.com/users/makersacademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/makersacademy/chitter-challenge","description":"Build a Twitter Clone!","fork":false,"url":"https://api.github.com/repos/makersacademy/chitter-challenge","forks_url":"https://api.github.com/repos/makersacademy/chitter-challenge/forks","keys_url":"https://api.github.com/repos/makersacademy/chitter-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/makersacademy/chitter-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/makersacademy/chitter-challenge/teams","hooks_url":"https://api.github.com/repos/makersacademy/chitter-challenge/hooks","issue_events_url":"https://api.github.com/repos/makersacademy/chitter-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/makersacademy/chitter-challenge/events","assignees_url":"https://api.github.com/repos/makersacademy/chitter-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/makersacademy/chitter-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/makersacademy/chitter-challenge/tags","blobs_url":"https://api.github.com/repos/makersacademy/chitter-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/makersacademy/chitter-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/makersacademy/chitter-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/makersacademy/chitter-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/makersacademy/chitter-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/makersacademy/chitter-challenge/languages","stargazers_url":"https://api.github.com/repos/makersacademy/chitter-challenge/stargazers","contributors_url":"https://api.github.com/repos/makersacademy/chitter-challenge/contributors","subscribers_url":"https://api.github.com/repos/makersacademy/chitter-challenge/subscribers","subscription_url":"https://api.github.com/repos/makersacademy/chitter-challenge/subscription","commits_url":"https://api.github.com/repos/makersacademy/chitter-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/makersacademy/chitter-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/makersacademy/chitter-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/makersacademy/chitter-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/makersacademy/chitter-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/makersacademy/chitter-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/makersacademy/chitter-challenge/merges","archive_url":"https://api.github.com/repos/makersacademy/chitter-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/makersacademy/chitter-challenge/downloads","issues_url":"https://api.github.com/repos/makersacademy/chitter-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/makersacademy/chitter-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/makersacademy/chitter-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/makersacademy/chitter-challenge/labels{/name}","releases_url":"https://api.github.com/repos/makersacademy/chitter-challenge/releases{/id}","created_at":"2014-11-21T09:53:31Z","updated_at":"2015-04-10T05:48:20Z","pushed_at":"2015-09-27T19:34:31Z","git_url":"git://github.com/makersacademy/chitter-challenge.git","ssh_url":"git@github.com:makersacademy/chitter-challenge.git","clone_url":"https://github.com/makersacademy/chitter-challenge.git","svn_url":"https://github.com/makersacademy/chitter-challenge","homepage":null,"size":29611,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":167,"mirror_url":null,"open_issues_count":21,"forks":167,"open_issues":21,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/155"},"html":{"href":"https://github.com/makersacademy/chitter-challenge/pull/155"},"issue":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/issues/155"},"comments":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/issues/155/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/155/comments"},"review_comment":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/155/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/statuses/0bebbbc614d28c6da6608a66c8371977a7f847f3"}}}}