{"action":"created","comment":{"url":"https://api.github.com/repos/willxfeng/iSpy/pulls/comments/48893173","id":48893173,"diff_hunk":"@@ -0,0 +1,30 @@\n+require 'rails_helper'\n+\n+feature 'user deletes account' do\n+  scenario 'successfully deletes account' do\n+    user = FactoryGirl.create(:user)\n+\n+    visit root_path\n+    sign_in(user)\n+\n+    click_link 'Edit Account'\n+    click_button 'Delete My Account'\n+\n+    expect(page).to have_content(\n+      'Bye! Your account has been successfully cancelled.'\n+    )\n+\n+    sign_in(user)\n+\n+    expect(page).to have_content('Invalid email or password.')\n+    expect(page).to have_content('Sign Up Here!')\n+    expect(page).to_not have_content(\"Welcome Back!\")\n+  end\n+end\n+\n+def sign_in(user)","path":"spec/features/user_deletes_account_spec.rb","position":25,"original_position":25,"commit_id":"23e365f35b628d1af9925462e5549bb7ee7f2768","original_commit_id":"23e365f35b628d1af9925462e5549bb7ee7f2768","user":{"login":"alxjrvs","id":174825,"avatar_url":"https://avatars.githubusercontent.com/u/174825?v=3","gravatar_id":"","url":"https://api.github.com/users/alxjrvs","html_url":"https://github.com/alxjrvs","followers_url":"https://api.github.com/users/alxjrvs/followers","following_url":"https://api.github.com/users/alxjrvs/following{/other_user}","gists_url":"https://api.github.com/users/alxjrvs/gists{/gist_id}","starred_url":"https://api.github.com/users/alxjrvs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alxjrvs/subscriptions","organizations_url":"https://api.github.com/users/alxjrvs/orgs","repos_url":"https://api.github.com/users/alxjrvs/repos","events_url":"https://api.github.com/users/alxjrvs/events{/privacy}","received_events_url":"https://api.github.com/users/alxjrvs/received_events","type":"User","site_admin":false},"body":"There is a way to do this so that all of your specs can share it. \r\n\r\nCheck out this for more: \r\n\r\nhttps://www.relishapp.com/rspec/rspec-core/v/3-4/docs/helper-methods/define-helper-methods-in-a-module","created_at":"2016-01-05T20:37:55Z","updated_at":"2016-01-05T20:37:55Z","html_url":"https://github.com/willxfeng/iSpy/pull/9#discussion_r48893173","pull_request_url":"https://api.github.com/repos/willxfeng/iSpy/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/willxfeng/iSpy/pulls/comments/48893173"},"html":{"href":"https://github.com/willxfeng/iSpy/pull/9#discussion_r48893173"},"pull_request":{"href":"https://api.github.com/repos/willxfeng/iSpy/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/willxfeng/iSpy/pulls/9","id":55139446,"html_url":"https://github.com/willxfeng/iSpy/pull/9","diff_url":"https://github.com/willxfeng/iSpy/pull/9.diff","patch_url":"https://github.com/willxfeng/iSpy/pull/9.patch","issue_url":"https://api.github.com/repos/willxfeng/iSpy/issues/9","number":9,"state":"open","locked":false,"title":"user deletes account user story","user":{"login":"willxfeng","id":12139283,"avatar_url":"https://avatars.githubusercontent.com/u/12139283?v=3","gravatar_id":"","url":"https://api.github.com/users/willxfeng","html_url":"https://github.com/willxfeng","followers_url":"https://api.github.com/users/willxfeng/followers","following_url":"https://api.github.com/users/willxfeng/following{/other_user}","gists_url":"https://api.github.com/users/willxfeng/gists{/gist_id}","starred_url":"https://api.github.com/users/willxfeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willxfeng/subscriptions","organizations_url":"https://api.github.com/users/willxfeng/orgs","repos_url":"https://api.github.com/users/willxfeng/repos","events_url":"https://api.github.com/users/willxfeng/events{/privacy}","received_events_url":"https://api.github.com/users/willxfeng/received_events","type":"User","site_admin":false},"body":"User deletes account story tested with Capybara","created_at":"2016-01-05T20:35:11Z","updated_at":"2016-01-05T20:37:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c2a2e10f82dc6938e668de8ed0ee3f4f501b0ac6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/willxfeng/iSpy/pulls/9/commits","review_comments_url":"https://api.github.com/repos/willxfeng/iSpy/pulls/9/comments","review_comment_url":"https://api.github.com/repos/willxfeng/iSpy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/willxfeng/iSpy/issues/9/comments","statuses_url":"https://api.github.com/repos/willxfeng/iSpy/statuses/23e365f35b628d1af9925462e5549bb7ee7f2768","head":{"label":"willxfeng:user_deletes_account","ref":"user_deletes_account","sha":"23e365f35b628d1af9925462e5549bb7ee7f2768","user":{"login":"willxfeng","id":12139283,"avatar_url":"https://avatars.githubusercontent.com/u/12139283?v=3","gravatar_id":"","url":"https://api.github.com/users/willxfeng","html_url":"https://github.com/willxfeng","followers_url":"https://api.github.com/users/willxfeng/followers","following_url":"https://api.github.com/users/willxfeng/following{/other_user}","gists_url":"https://api.github.com/users/willxfeng/gists{/gist_id}","starred_url":"https://api.github.com/users/willxfeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willxfeng/subscriptions","organizations_url":"https://api.github.com/users/willxfeng/orgs","repos_url":"https://api.github.com/users/willxfeng/repos","events_url":"https://api.github.com/users/willxfeng/events{/privacy}","received_events_url":"https://api.github.com/users/willxfeng/received_events","type":"User","site_admin":false},"repo":{"id":49006432,"name":"iSpy","full_name":"willxfeng/iSpy","owner":{"login":"willxfeng","id":12139283,"avatar_url":"https://avatars.githubusercontent.com/u/12139283?v=3","gravatar_id":"","url":"https://api.github.com/users/willxfeng","html_url":"https://github.com/willxfeng","followers_url":"https://api.github.com/users/willxfeng/followers","following_url":"https://api.github.com/users/willxfeng/following{/other_user}","gists_url":"https://api.github.com/users/willxfeng/gists{/gist_id}","starred_url":"https://api.github.com/users/willxfeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willxfeng/subscriptions","organizations_url":"https://api.github.com/users/willxfeng/orgs","repos_url":"https://api.github.com/users/willxfeng/repos","events_url":"https://api.github.com/users/willxfeng/events{/privacy}","received_events_url":"https://api.github.com/users/willxfeng/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/willxfeng/iSpy","description":"Launch Academy Winter 2015 Cohort Group project","fork":false,"url":"https://api.github.com/repos/willxfeng/iSpy","forks_url":"https://api.github.com/repos/willxfeng/iSpy/forks","keys_url":"https://api.github.com/repos/willxfeng/iSpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/willxfeng/iSpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/willxfeng/iSpy/teams","hooks_url":"https://api.github.com/repos/willxfeng/iSpy/hooks","issue_events_url":"https://api.github.com/repos/willxfeng/iSpy/issues/events{/number}","events_url":"https://api.github.com/repos/willxfeng/iSpy/events","assignees_url":"https://api.github.com/repos/willxfeng/iSpy/assignees{/user}","branches_url":"https://api.github.com/repos/willxfeng/iSpy/branches{/branch}","tags_url":"https://api.github.com/repos/willxfeng/iSpy/tags","blobs_url":"https://api.github.com/repos/willxfeng/iSpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/willxfeng/iSpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/willxfeng/iSpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/willxfeng/iSpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/willxfeng/iSpy/statuses/{sha}","languages_url":"https://api.github.com/repos/willxfeng/iSpy/languages","stargazers_url":"https://api.github.com/repos/willxfeng/iSpy/stargazers","contributors_url":"https://api.github.com/repos/willxfeng/iSpy/contributors","subscribers_url":"https://api.github.com/repos/willxfeng/iSpy/subscribers","subscription_url":"https://api.github.com/repos/willxfeng/iSpy/subscription","commits_url":"https://api.github.com/repos/willxfeng/iSpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/willxfeng/iSpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/willxfeng/iSpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/willxfeng/iSpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/willxfeng/iSpy/contents/{+path}","compare_url":"https://api.github.com/repos/willxfeng/iSpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/willxfeng/iSpy/merges","archive_url":"https://api.github.com/repos/willxfeng/iSpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/willxfeng/iSpy/downloads","issues_url":"https://api.github.com/repos/willxfeng/iSpy/issues{/number}","pulls_url":"https://api.github.com/repos/willxfeng/iSpy/pulls{/number}","milestones_url":"https://api.github.com/repos/willxfeng/iSpy/milestones{/number}","notifications_url":"https://api.github.com/repos/willxfeng/iSpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/willxfeng/iSpy/labels{/name}","releases_url":"https://api.github.com/repos/willxfeng/iSpy/releases{/id}","created_at":"2016-01-04T15:45:40Z","updated_at":"2016-01-04T16:23:13Z","pushed_at":"2016-01-05T20:35:11Z","git_url":"git://github.com/willxfeng/iSpy.git","ssh_url":"git@github.com:willxfeng/iSpy.git","clone_url":"https://github.com/willxfeng/iSpy.git","svn_url":"https://github.com/willxfeng/iSpy","homepage":null,"size":275,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"willxfeng:master","ref":"master","sha":"2b55d5983608baa66ee334089a11dd26d0518056","user":{"login":"willxfeng","id":12139283,"avatar_url":"https://avatars.githubusercontent.com/u/12139283?v=3","gravatar_id":"","url":"https://api.github.com/users/willxfeng","html_url":"https://github.com/willxfeng","followers_url":"https://api.github.com/users/willxfeng/followers","following_url":"https://api.github.com/users/willxfeng/following{/other_user}","gists_url":"https://api.github.com/users/willxfeng/gists{/gist_id}","starred_url":"https://api.github.com/users/willxfeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willxfeng/subscriptions","organizations_url":"https://api.github.com/users/willxfeng/orgs","repos_url":"https://api.github.com/users/willxfeng/repos","events_url":"https://api.github.com/users/willxfeng/events{/privacy}","received_events_url":"https://api.github.com/users/willxfeng/received_events","type":"User","site_admin":false},"repo":{"id":49006432,"name":"iSpy","full_name":"willxfeng/iSpy","owner":{"login":"willxfeng","id":12139283,"avatar_url":"https://avatars.githubusercontent.com/u/12139283?v=3","gravatar_id":"","url":"https://api.github.com/users/willxfeng","html_url":"https://github.com/willxfeng","followers_url":"https://api.github.com/users/willxfeng/followers","following_url":"https://api.github.com/users/willxfeng/following{/other_user}","gists_url":"https://api.github.com/users/willxfeng/gists{/gist_id}","starred_url":"https://api.github.com/users/willxfeng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willxfeng/subscriptions","organizations_url":"https://api.github.com/users/willxfeng/orgs","repos_url":"https://api.github.com/users/willxfeng/repos","events_url":"https://api.github.com/users/willxfeng/events{/privacy}","received_events_url":"https://api.github.com/users/willxfeng/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/willxfeng/iSpy","description":"Launch Academy Winter 2015 Cohort Group project","fork":false,"url":"https://api.github.com/repos/willxfeng/iSpy","forks_url":"https://api.github.com/repos/willxfeng/iSpy/forks","keys_url":"https://api.github.com/repos/willxfeng/iSpy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/willxfeng/iSpy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/willxfeng/iSpy/teams","hooks_url":"https://api.github.com/repos/willxfeng/iSpy/hooks","issue_events_url":"https://api.github.com/repos/willxfeng/iSpy/issues/events{/number}","events_url":"https://api.github.com/repos/willxfeng/iSpy/events","assignees_url":"https://api.github.com/repos/willxfeng/iSpy/assignees{/user}","branches_url":"https://api.github.com/repos/willxfeng/iSpy/branches{/branch}","tags_url":"https://api.github.com/repos/willxfeng/iSpy/tags","blobs_url":"https://api.github.com/repos/willxfeng/iSpy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/willxfeng/iSpy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/willxfeng/iSpy/git/refs{/sha}","trees_url":"https://api.github.com/repos/willxfeng/iSpy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/willxfeng/iSpy/statuses/{sha}","languages_url":"https://api.github.com/repos/willxfeng/iSpy/languages","stargazers_url":"https://api.github.com/repos/willxfeng/iSpy/stargazers","contributors_url":"https://api.github.com/repos/willxfeng/iSpy/contributors","subscribers_url":"https://api.github.com/repos/willxfeng/iSpy/subscribers","subscription_url":"https://api.github.com/repos/willxfeng/iSpy/subscription","commits_url":"https://api.github.com/repos/willxfeng/iSpy/commits{/sha}","git_commits_url":"https://api.github.com/repos/willxfeng/iSpy/git/commits{/sha}","comments_url":"https://api.github.com/repos/willxfeng/iSpy/comments{/number}","issue_comment_url":"https://api.github.com/repos/willxfeng/iSpy/issues/comments{/number}","contents_url":"https://api.github.com/repos/willxfeng/iSpy/contents/{+path}","compare_url":"https://api.github.com/repos/willxfeng/iSpy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/willxfeng/iSpy/merges","archive_url":"https://api.github.com/repos/willxfeng/iSpy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/willxfeng/iSpy/downloads","issues_url":"https://api.github.com/repos/willxfeng/iSpy/issues{/number}","pulls_url":"https://api.github.com/repos/willxfeng/iSpy/pulls{/number}","milestones_url":"https://api.github.com/repos/willxfeng/iSpy/milestones{/number}","notifications_url":"https://api.github.com/repos/willxfeng/iSpy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/willxfeng/iSpy/labels{/name}","releases_url":"https://api.github.com/repos/willxfeng/iSpy/releases{/id}","created_at":"2016-01-04T15:45:40Z","updated_at":"2016-01-04T16:23:13Z","pushed_at":"2016-01-05T20:35:11Z","git_url":"git://github.com/willxfeng/iSpy.git","ssh_url":"git@github.com:willxfeng/iSpy.git","clone_url":"https://github.com/willxfeng/iSpy.git","svn_url":"https://github.com/willxfeng/iSpy","homepage":null,"size":275,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/willxfeng/iSpy/pulls/9"},"html":{"href":"https://github.com/willxfeng/iSpy/pull/9"},"issue":{"href":"https://api.github.com/repos/willxfeng/iSpy/issues/9"},"comments":{"href":"https://api.github.com/repos/willxfeng/iSpy/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/willxfeng/iSpy/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/willxfeng/iSpy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/willxfeng/iSpy/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/willxfeng/iSpy/statuses/23e365f35b628d1af9925462e5549bb7ee7f2768"}}}}