{"action":"created","comment":{"url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/pulls/comments/69379010","id":69379010,"diff_hunk":"@@ -1,27 +1,54 @@\n require 'rails_helper'\n \n RSpec.describe User, type: :model do\n-\n-  it \"can be valid\" do\n-    user = User.new(\n+  let(:user) do\n+    User.new(\n       email:                 \"spacejam@gmail.com\",\n       name:                  \"Michael Jordan\",\n       role:                  \"admin\",\n       password:              \"password\",\n       password_confirmation: \"password\"\n     )\n+  end\n+\n+  it \"can be valid\" do\n     expect(user).to be_valid\n   end\n \n   it \"can be an admin\" do\n-    user = User.new(\n-      email:                 \"spacejam@gmail.com\",\n-      name:                  \"Michael Jordan\",\n-      role:                  \"admin\",\n-      password:              \"password\",\n-      password_confirmation: \"password\"\n-    )\n     expect(user.is_admin?).to be(true)\n   end\n \n+  describe \"#destroy\" do\n+    let(:a_user) do\n+      User.new(\n+        email:                 \"test@gmail.com\",\n+        name:                  \"Michael Jordan\",\n+        role:                  \"researcher\",\n+        password:              \"password\",\n+        password_confirmation: \"password\"\n+      )\n+    end\n+\n+    before do\n+      a_user.save\n+    end\n+\n+    it \"can be destroyed\" do\n+      a_user.destroy\n+      expect(a_user.paranoia_destroyed?).to eq(true)\n+    end\n+\n+    it \"can be restored\" do\n+      a_user.restore\n+      expect(a_user.paranoia_destroyed?).to eq(false)\n+    end\n+\n+    it \"can be REALLY destroyed\" do\n+      a_user.really_destroy!\n+      expect(a_user.destroyed?).to eq(true)\n+","path":"spec/models/user_spec.rb","position":60,"original_position":60,"commit_id":"ac65f1c55c9661927f50caa33b1e666f816c5c7f","original_commit_id":"ac65f1c55c9661927f50caa33b1e666f816c5c7f","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":"Extra empty line detected at block body end.","created_at":"2016-07-02T15:04:29Z","updated_at":"2016-07-02T15:04:29Z","html_url":"https://github.com/rubyforgood/loggerhead_shrike/pull/70#discussion_r69379010","pull_request_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/pulls/70","_links":{"self":{"href":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/pulls/comments/69379010"},"html":{"href":"https://github.com/rubyforgood/loggerhead_shrike/pull/70#discussion_r69379010"},"pull_request":{"href":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/pulls/70"}}},"pull_request":{"url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/pulls/70","id":76067053,"html_url":"https://github.com/rubyforgood/loggerhead_shrike/pull/70","diff_url":"https://github.com/rubyforgood/loggerhead_shrike/pull/70.diff","patch_url":"https://github.com/rubyforgood/loggerhead_shrike/pull/70.patch","issue_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/issues/70","number":70,"state":"open","locked":false,"title":"Add soft deletes","user":{"login":"holytoastr","id":4822313,"avatar_url":"https://avatars.githubusercontent.com/u/4822313?v=3","gravatar_id":"","url":"https://api.github.com/users/holytoastr","html_url":"https://github.com/holytoastr","followers_url":"https://api.github.com/users/holytoastr/followers","following_url":"https://api.github.com/users/holytoastr/following{/other_user}","gists_url":"https://api.github.com/users/holytoastr/gists{/gist_id}","starred_url":"https://api.github.com/users/holytoastr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/holytoastr/subscriptions","organizations_url":"https://api.github.com/users/holytoastr/orgs","repos_url":"https://api.github.com/users/holytoastr/repos","events_url":"https://api.github.com/users/holytoastr/events{/privacy}","received_events_url":"https://api.github.com/users/holytoastr/received_events","type":"User","site_admin":false},"body":"Adds soft delete functionality on the backend with the paranoia gem. Includes tests (which pass! yay!).\r\n\r\nWill add delete option to admin dashboard in next PR.","created_at":"2016-07-02T15:04:26Z","updated_at":"2016-07-02T15:04:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c9c16b595a64441956e93205593a38c8e5c01117","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/pulls/70/commits","review_comments_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/pulls/70/comments","review_comment_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/issues/70/comments","statuses_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/statuses/ac65f1c55c9661927f50caa33b1e666f816c5c7f","head":{"label":"rubyforgood:addSoftDeletes","ref":"addSoftDeletes","sha":"ac65f1c55c9661927f50caa33b1e666f816c5c7f","user":{"login":"rubyforgood","id":11573263,"avatar_url":"https://avatars.githubusercontent.com/u/11573263?v=3","gravatar_id":"","url":"https://api.github.com/users/rubyforgood","html_url":"https://github.com/rubyforgood","followers_url":"https://api.github.com/users/rubyforgood/followers","following_url":"https://api.github.com/users/rubyforgood/following{/other_user}","gists_url":"https://api.github.com/users/rubyforgood/gists{/gist_id}","starred_url":"https://api.github.com/users/rubyforgood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubyforgood/subscriptions","organizations_url":"https://api.github.com/users/rubyforgood/orgs","repos_url":"https://api.github.com/users/rubyforgood/repos","events_url":"https://api.github.com/users/rubyforgood/events{/privacy}","received_events_url":"https://api.github.com/users/rubyforgood/received_events","type":"Organization","site_admin":false},"repo":{"id":56624812,"name":"loggerhead_shrike","full_name":"rubyforgood/loggerhead_shrike","owner":{"login":"rubyforgood","id":11573263,"avatar_url":"https://avatars.githubusercontent.com/u/11573263?v=3","gravatar_id":"","url":"https://api.github.com/users/rubyforgood","html_url":"https://github.com/rubyforgood","followers_url":"https://api.github.com/users/rubyforgood/followers","following_url":"https://api.github.com/users/rubyforgood/following{/other_user}","gists_url":"https://api.github.com/users/rubyforgood/gists{/gist_id}","starred_url":"https://api.github.com/users/rubyforgood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubyforgood/subscriptions","organizations_url":"https://api.github.com/users/rubyforgood/orgs","repos_url":"https://api.github.com/users/rubyforgood/repos","events_url":"https://api.github.com/users/rubyforgood/events{/privacy}","received_events_url":"https://api.github.com/users/rubyforgood/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rubyforgood/loggerhead_shrike","description":"","fork":false,"url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike","forks_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/forks","keys_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/teams","hooks_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/hooks","issue_events_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/issues/events{/number}","events_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/events","assignees_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/assignees{/user}","branches_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/branches{/branch}","tags_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/tags","blobs_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/git/refs{/sha}","trees_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/statuses/{sha}","languages_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/languages","stargazers_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/stargazers","contributors_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/contributors","subscribers_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/subscribers","subscription_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/subscription","commits_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/commits{/sha}","git_commits_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/git/commits{/sha}","comments_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/comments{/number}","issue_comment_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/issues/comments{/number}","contents_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/contents/{+path}","compare_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/merges","archive_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/downloads","issues_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/issues{/number}","pulls_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/pulls{/number}","milestones_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/milestones{/number}","notifications_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/labels{/name}","releases_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/releases{/id}","deployments_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/deployments","created_at":"2016-04-19T19:15:35Z","updated_at":"2016-06-20T12:47:41Z","pushed_at":"2016-07-02T15:04:26Z","git_url":"git://github.com/rubyforgood/loggerhead_shrike.git","ssh_url":"git@github.com:rubyforgood/loggerhead_shrike.git","clone_url":"https://github.com/rubyforgood/loggerhead_shrike.git","svn_url":"https://github.com/rubyforgood/loggerhead_shrike","homepage":"https://losh.herokuapp.com/","size":3509,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":12,"forks":1,"open_issues":12,"watchers":5,"default_branch":"master"}},"base":{"label":"rubyforgood:master","ref":"master","sha":"b5a3acf315996e96b9207d4a417717e32e373d2d","user":{"login":"rubyforgood","id":11573263,"avatar_url":"https://avatars.githubusercontent.com/u/11573263?v=3","gravatar_id":"","url":"https://api.github.com/users/rubyforgood","html_url":"https://github.com/rubyforgood","followers_url":"https://api.github.com/users/rubyforgood/followers","following_url":"https://api.github.com/users/rubyforgood/following{/other_user}","gists_url":"https://api.github.com/users/rubyforgood/gists{/gist_id}","starred_url":"https://api.github.com/users/rubyforgood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubyforgood/subscriptions","organizations_url":"https://api.github.com/users/rubyforgood/orgs","repos_url":"https://api.github.com/users/rubyforgood/repos","events_url":"https://api.github.com/users/rubyforgood/events{/privacy}","received_events_url":"https://api.github.com/users/rubyforgood/received_events","type":"Organization","site_admin":false},"repo":{"id":56624812,"name":"loggerhead_shrike","full_name":"rubyforgood/loggerhead_shrike","owner":{"login":"rubyforgood","id":11573263,"avatar_url":"https://avatars.githubusercontent.com/u/11573263?v=3","gravatar_id":"","url":"https://api.github.com/users/rubyforgood","html_url":"https://github.com/rubyforgood","followers_url":"https://api.github.com/users/rubyforgood/followers","following_url":"https://api.github.com/users/rubyforgood/following{/other_user}","gists_url":"https://api.github.com/users/rubyforgood/gists{/gist_id}","starred_url":"https://api.github.com/users/rubyforgood/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rubyforgood/subscriptions","organizations_url":"https://api.github.com/users/rubyforgood/orgs","repos_url":"https://api.github.com/users/rubyforgood/repos","events_url":"https://api.github.com/users/rubyforgood/events{/privacy}","received_events_url":"https://api.github.com/users/rubyforgood/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rubyforgood/loggerhead_shrike","description":"","fork":false,"url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike","forks_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/forks","keys_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/teams","hooks_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/hooks","issue_events_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/issues/events{/number}","events_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/events","assignees_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/assignees{/user}","branches_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/branches{/branch}","tags_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/tags","blobs_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/git/refs{/sha}","trees_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/statuses/{sha}","languages_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/languages","stargazers_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/stargazers","contributors_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/contributors","subscribers_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/subscribers","subscription_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/subscription","commits_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/commits{/sha}","git_commits_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/git/commits{/sha}","comments_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/comments{/number}","issue_comment_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/issues/comments{/number}","contents_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/contents/{+path}","compare_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/merges","archive_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/downloads","issues_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/issues{/number}","pulls_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/pulls{/number}","milestones_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/milestones{/number}","notifications_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/labels{/name}","releases_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/releases{/id}","deployments_url":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/deployments","created_at":"2016-04-19T19:15:35Z","updated_at":"2016-06-20T12:47:41Z","pushed_at":"2016-07-02T15:04:26Z","git_url":"git://github.com/rubyforgood/loggerhead_shrike.git","ssh_url":"git@github.com:rubyforgood/loggerhead_shrike.git","clone_url":"https://github.com/rubyforgood/loggerhead_shrike.git","svn_url":"https://github.com/rubyforgood/loggerhead_shrike","homepage":"https://losh.herokuapp.com/","size":3509,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":12,"forks":1,"open_issues":12,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/pulls/70"},"html":{"href":"https://github.com/rubyforgood/loggerhead_shrike/pull/70"},"issue":{"href":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/issues/70"},"comments":{"href":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/issues/70/comments"},"review_comments":{"href":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/pulls/70/comments"},"review_comment":{"href":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/pulls/70/commits"},"statuses":{"href":"https://api.github.com/repos/rubyforgood/loggerhead_shrike/statuses/ac65f1c55c9661927f50caa33b1e666f816c5c7f"}}}}
{"actor":{"display_login":"houndci-bot"}}