{"action":"created","comment":{"url":"https://api.github.com/repos/athifw/haxxor/pulls/comments/33611450","id":33611450,"diff_hunk":"@@ -0,0 +1,18 @@\n+require 'rails_helper'\n+\n+RSpec.describe \"Resetting passwords\" do\n+  let!(:user) { create :user, email: 'another@test.com', username: 'Another' }\n+  let(:mail) { UserMailer.password_reset(user) }\n+  before do","path":"spec/features/reset_password_spec.rb","position":6,"original_position":6,"commit_id":"2574a220048107cdb0f7fe654be305411f30ef30","original_commit_id":"2574a220048107cdb0f7fe654be305411f30ef30","user":{"login":"mackermedia","id":711125,"avatar_url":"https://avatars.githubusercontent.com/u/711125?v=3","gravatar_id":"","url":"https://api.github.com/users/mackermedia","html_url":"https://github.com/mackermedia","followers_url":"https://api.github.com/users/mackermedia/followers","following_url":"https://api.github.com/users/mackermedia/following{/other_user}","gists_url":"https://api.github.com/users/mackermedia/gists{/gist_id}","starred_url":"https://api.github.com/users/mackermedia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mackermedia/subscriptions","organizations_url":"https://api.github.com/users/mackermedia/orgs","repos_url":"https://api.github.com/users/mackermedia/repos","events_url":"https://api.github.com/users/mackermedia/events{/privacy}","received_events_url":"https://api.github.com/users/mackermedia/received_events","type":"User","site_admin":false},"body":"I like to separate the setup and test stuff with an empty line between the `let`s, the `before do` and the `context`, but it's up to you.\r\n\r\nAlso, you shouldn't need the `let!(:user)` since it's being used in the before block it will get created regardless.","created_at":"2015-06-30T19:09:57Z","updated_at":"2015-06-30T19:09:57Z","html_url":"https://github.com/athifw/haxxor/pull/7#discussion_r33611450","pull_request_url":"https://api.github.com/repos/athifw/haxxor/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/athifw/haxxor/pulls/comments/33611450"},"html":{"href":"https://github.com/athifw/haxxor/pull/7#discussion_r33611450"},"pull_request":{"href":"https://api.github.com/repos/athifw/haxxor/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/athifw/haxxor/pulls/7","id":38911785,"html_url":"https://github.com/athifw/haxxor/pull/7","diff_url":"https://github.com/athifw/haxxor/pull/7.diff","patch_url":"https://github.com/athifw/haxxor/pull/7.patch","issue_url":"https://api.github.com/repos/athifw/haxxor/issues/7","number":7,"state":"open","locked":false,"title":"Added forgottten password feature.","user":{"login":"athifw","id":7432170,"avatar_url":"https://avatars.githubusercontent.com/u/7432170?v=3","gravatar_id":"","url":"https://api.github.com/users/athifw","html_url":"https://github.com/athifw","followers_url":"https://api.github.com/users/athifw/followers","following_url":"https://api.github.com/users/athifw/following{/other_user}","gists_url":"https://api.github.com/users/athifw/gists{/gist_id}","starred_url":"https://api.github.com/users/athifw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/athifw/subscriptions","organizations_url":"https://api.github.com/users/athifw/orgs","repos_url":"https://api.github.com/users/athifw/repos","events_url":"https://api.github.com/users/athifw/events{/privacy}","received_events_url":"https://api.github.com/users/athifw/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-30T18:54:09Z","updated_at":"2015-06-30T19:09:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a7915aa08c52d5c5795ab7a5d54556874396b3d4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/athifw/haxxor/pulls/7/commits","review_comments_url":"https://api.github.com/repos/athifw/haxxor/pulls/7/comments","review_comment_url":"https://api.github.com/repos/athifw/haxxor/pulls/comments{/number}","comments_url":"https://api.github.com/repos/athifw/haxxor/issues/7/comments","statuses_url":"https://api.github.com/repos/athifw/haxxor/statuses/2574a220048107cdb0f7fe654be305411f30ef30","head":{"label":"athifw:forgot-pass","ref":"forgot-pass","sha":"2574a220048107cdb0f7fe654be305411f30ef30","user":{"login":"athifw","id":7432170,"avatar_url":"https://avatars.githubusercontent.com/u/7432170?v=3","gravatar_id":"","url":"https://api.github.com/users/athifw","html_url":"https://github.com/athifw","followers_url":"https://api.github.com/users/athifw/followers","following_url":"https://api.github.com/users/athifw/following{/other_user}","gists_url":"https://api.github.com/users/athifw/gists{/gist_id}","starred_url":"https://api.github.com/users/athifw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/athifw/subscriptions","organizations_url":"https://api.github.com/users/athifw/orgs","repos_url":"https://api.github.com/users/athifw/repos","events_url":"https://api.github.com/users/athifw/events{/privacy}","received_events_url":"https://api.github.com/users/athifw/received_events","type":"User","site_admin":false},"repo":{"id":37745632,"name":"haxxor","full_name":"athifw/haxxor","owner":{"login":"athifw","id":7432170,"avatar_url":"https://avatars.githubusercontent.com/u/7432170?v=3","gravatar_id":"","url":"https://api.github.com/users/athifw","html_url":"https://github.com/athifw","followers_url":"https://api.github.com/users/athifw/followers","following_url":"https://api.github.com/users/athifw/following{/other_user}","gists_url":"https://api.github.com/users/athifw/gists{/gist_id}","starred_url":"https://api.github.com/users/athifw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/athifw/subscriptions","organizations_url":"https://api.github.com/users/athifw/orgs","repos_url":"https://api.github.com/users/athifw/repos","events_url":"https://api.github.com/users/athifw/events{/privacy}","received_events_url":"https://api.github.com/users/athifw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/athifw/haxxor","description":"Hacker News Clone","fork":false,"url":"https://api.github.com/repos/athifw/haxxor","forks_url":"https://api.github.com/repos/athifw/haxxor/forks","keys_url":"https://api.github.com/repos/athifw/haxxor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/athifw/haxxor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/athifw/haxxor/teams","hooks_url":"https://api.github.com/repos/athifw/haxxor/hooks","issue_events_url":"https://api.github.com/repos/athifw/haxxor/issues/events{/number}","events_url":"https://api.github.com/repos/athifw/haxxor/events","assignees_url":"https://api.github.com/repos/athifw/haxxor/assignees{/user}","branches_url":"https://api.github.com/repos/athifw/haxxor/branches{/branch}","tags_url":"https://api.github.com/repos/athifw/haxxor/tags","blobs_url":"https://api.github.com/repos/athifw/haxxor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/athifw/haxxor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/athifw/haxxor/git/refs{/sha}","trees_url":"https://api.github.com/repos/athifw/haxxor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/athifw/haxxor/statuses/{sha}","languages_url":"https://api.github.com/repos/athifw/haxxor/languages","stargazers_url":"https://api.github.com/repos/athifw/haxxor/stargazers","contributors_url":"https://api.github.com/repos/athifw/haxxor/contributors","subscribers_url":"https://api.github.com/repos/athifw/haxxor/subscribers","subscription_url":"https://api.github.com/repos/athifw/haxxor/subscription","commits_url":"https://api.github.com/repos/athifw/haxxor/commits{/sha}","git_commits_url":"https://api.github.com/repos/athifw/haxxor/git/commits{/sha}","comments_url":"https://api.github.com/repos/athifw/haxxor/comments{/number}","issue_comment_url":"https://api.github.com/repos/athifw/haxxor/issues/comments{/number}","contents_url":"https://api.github.com/repos/athifw/haxxor/contents/{+path}","compare_url":"https://api.github.com/repos/athifw/haxxor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/athifw/haxxor/merges","archive_url":"https://api.github.com/repos/athifw/haxxor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/athifw/haxxor/downloads","issues_url":"https://api.github.com/repos/athifw/haxxor/issues{/number}","pulls_url":"https://api.github.com/repos/athifw/haxxor/pulls{/number}","milestones_url":"https://api.github.com/repos/athifw/haxxor/milestones{/number}","notifications_url":"https://api.github.com/repos/athifw/haxxor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/athifw/haxxor/labels{/name}","releases_url":"https://api.github.com/repos/athifw/haxxor/releases{/id}","created_at":"2015-06-19T21:00:08Z","updated_at":"2015-06-19T21:05:50Z","pushed_at":"2015-06-30T18:54:10Z","git_url":"git://github.com/athifw/haxxor.git","ssh_url":"git@github.com:athifw/haxxor.git","clone_url":"https://github.com/athifw/haxxor.git","svn_url":"https://github.com/athifw/haxxor","homepage":null,"size":240,"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":"athifw:master","ref":"master","sha":"ee34a602c2292d3a9bb6ef456850131ae1f3d1aa","user":{"login":"athifw","id":7432170,"avatar_url":"https://avatars.githubusercontent.com/u/7432170?v=3","gravatar_id":"","url":"https://api.github.com/users/athifw","html_url":"https://github.com/athifw","followers_url":"https://api.github.com/users/athifw/followers","following_url":"https://api.github.com/users/athifw/following{/other_user}","gists_url":"https://api.github.com/users/athifw/gists{/gist_id}","starred_url":"https://api.github.com/users/athifw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/athifw/subscriptions","organizations_url":"https://api.github.com/users/athifw/orgs","repos_url":"https://api.github.com/users/athifw/repos","events_url":"https://api.github.com/users/athifw/events{/privacy}","received_events_url":"https://api.github.com/users/athifw/received_events","type":"User","site_admin":false},"repo":{"id":37745632,"name":"haxxor","full_name":"athifw/haxxor","owner":{"login":"athifw","id":7432170,"avatar_url":"https://avatars.githubusercontent.com/u/7432170?v=3","gravatar_id":"","url":"https://api.github.com/users/athifw","html_url":"https://github.com/athifw","followers_url":"https://api.github.com/users/athifw/followers","following_url":"https://api.github.com/users/athifw/following{/other_user}","gists_url":"https://api.github.com/users/athifw/gists{/gist_id}","starred_url":"https://api.github.com/users/athifw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/athifw/subscriptions","organizations_url":"https://api.github.com/users/athifw/orgs","repos_url":"https://api.github.com/users/athifw/repos","events_url":"https://api.github.com/users/athifw/events{/privacy}","received_events_url":"https://api.github.com/users/athifw/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/athifw/haxxor","description":"Hacker News Clone","fork":false,"url":"https://api.github.com/repos/athifw/haxxor","forks_url":"https://api.github.com/repos/athifw/haxxor/forks","keys_url":"https://api.github.com/repos/athifw/haxxor/keys{/key_id}","collaborators_url":"https://api.github.com/repos/athifw/haxxor/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/athifw/haxxor/teams","hooks_url":"https://api.github.com/repos/athifw/haxxor/hooks","issue_events_url":"https://api.github.com/repos/athifw/haxxor/issues/events{/number}","events_url":"https://api.github.com/repos/athifw/haxxor/events","assignees_url":"https://api.github.com/repos/athifw/haxxor/assignees{/user}","branches_url":"https://api.github.com/repos/athifw/haxxor/branches{/branch}","tags_url":"https://api.github.com/repos/athifw/haxxor/tags","blobs_url":"https://api.github.com/repos/athifw/haxxor/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/athifw/haxxor/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/athifw/haxxor/git/refs{/sha}","trees_url":"https://api.github.com/repos/athifw/haxxor/git/trees{/sha}","statuses_url":"https://api.github.com/repos/athifw/haxxor/statuses/{sha}","languages_url":"https://api.github.com/repos/athifw/haxxor/languages","stargazers_url":"https://api.github.com/repos/athifw/haxxor/stargazers","contributors_url":"https://api.github.com/repos/athifw/haxxor/contributors","subscribers_url":"https://api.github.com/repos/athifw/haxxor/subscribers","subscription_url":"https://api.github.com/repos/athifw/haxxor/subscription","commits_url":"https://api.github.com/repos/athifw/haxxor/commits{/sha}","git_commits_url":"https://api.github.com/repos/athifw/haxxor/git/commits{/sha}","comments_url":"https://api.github.com/repos/athifw/haxxor/comments{/number}","issue_comment_url":"https://api.github.com/repos/athifw/haxxor/issues/comments{/number}","contents_url":"https://api.github.com/repos/athifw/haxxor/contents/{+path}","compare_url":"https://api.github.com/repos/athifw/haxxor/compare/{base}...{head}","merges_url":"https://api.github.com/repos/athifw/haxxor/merges","archive_url":"https://api.github.com/repos/athifw/haxxor/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/athifw/haxxor/downloads","issues_url":"https://api.github.com/repos/athifw/haxxor/issues{/number}","pulls_url":"https://api.github.com/repos/athifw/haxxor/pulls{/number}","milestones_url":"https://api.github.com/repos/athifw/haxxor/milestones{/number}","notifications_url":"https://api.github.com/repos/athifw/haxxor/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/athifw/haxxor/labels{/name}","releases_url":"https://api.github.com/repos/athifw/haxxor/releases{/id}","created_at":"2015-06-19T21:00:08Z","updated_at":"2015-06-19T21:05:50Z","pushed_at":"2015-06-30T18:54:10Z","git_url":"git://github.com/athifw/haxxor.git","ssh_url":"git@github.com:athifw/haxxor.git","clone_url":"https://github.com/athifw/haxxor.git","svn_url":"https://github.com/athifw/haxxor","homepage":null,"size":240,"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/athifw/haxxor/pulls/7"},"html":{"href":"https://github.com/athifw/haxxor/pull/7"},"issue":{"href":"https://api.github.com/repos/athifw/haxxor/issues/7"},"comments":{"href":"https://api.github.com/repos/athifw/haxxor/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/athifw/haxxor/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/athifw/haxxor/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/athifw/haxxor/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/athifw/haxxor/statuses/2574a220048107cdb0f7fe654be305411f30ef30"}}}}