{"action":"created","comment":{"url":"https://api.github.com/repos/getschomp/skillswap/pulls/comments/23135017","id":23135017,"diff_hunk":"@@ -34,11 +33,25 @@\n       HadSkill.create(skill_id: skill1.id, user_id: @user.id)\n       visit user_path(@user)\n       within(:css, \"div.had_skill\") do\n-        save_and_open_page\n-        \n         click_on \"Delete Skill\"\n       end\n       expect(page).to have_content \"Skill successfully deleted from profile.\"\n       expect(page).to_not have_content skill1.name\n     end\n+    scenario \"a user can not delete a skill from another users profile\" do\n+      # no link to add a skill when you are not the current user\n+      # if you try to manually visit the path to add a skill you are not allowed\n+      skill1 = FactoryGirl.create(:skill)\n+      wanted_skill = WantedSkill.create(skill_id: skill1.id, user_id: @user.id)","path":"spec/features/user_can_delete_their_wanted_and_had_skills_spec.rb","position":23,"original_position":23,"commit_id":"dcb674e020970f457498096895f42fd57e351880","original_commit_id":"dcb674e020970f457498096895f42fd57e351880","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":"Useless assignment to variable - `wanted_skill`.","created_at":"2015-01-18T17:28:56Z","updated_at":"2015-01-18T17:28:56Z","html_url":"https://github.com/getschomp/skillswap/pull/20#discussion_r23135017","pull_request_url":"https://api.github.com/repos/getschomp/skillswap/pulls/20","_links":{"self":{"href":"https://api.github.com/repos/getschomp/skillswap/pulls/comments/23135017"},"html":{"href":"https://github.com/getschomp/skillswap/pull/20#discussion_r23135017"},"pull_request":{"href":"https://api.github.com/repos/getschomp/skillswap/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/getschomp/skillswap/pulls/20","id":27573937,"html_url":"https://github.com/getschomp/skillswap/pull/20","diff_url":"https://github.com/getschomp/skillswap/pull/20.diff","patch_url":"https://github.com/getschomp/skillswap/pull/20.patch","issue_url":"https://api.github.com/repos/getschomp/skillswap/issues/20","number":20,"state":"open","locked":false,"title":"Searchsort","user":{"login":"getschomp","id":5835824,"avatar_url":"https://avatars.githubusercontent.com/u/5835824?v=3","gravatar_id":"","url":"https://api.github.com/users/getschomp","html_url":"https://github.com/getschomp","followers_url":"https://api.github.com/users/getschomp/followers","following_url":"https://api.github.com/users/getschomp/following{/other_user}","gists_url":"https://api.github.com/users/getschomp/gists{/gist_id}","starred_url":"https://api.github.com/users/getschomp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getschomp/subscriptions","organizations_url":"https://api.github.com/users/getschomp/orgs","repos_url":"https://api.github.com/users/getschomp/repos","events_url":"https://api.github.com/users/getschomp/events{/privacy}","received_events_url":"https://api.github.com/users/getschomp/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-18T17:19:50Z","updated_at":"2015-01-18T17:28:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0f66355fa6ad9bb519515ded5e86965d4b49744d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/getschomp/skillswap/pulls/20/commits","review_comments_url":"https://api.github.com/repos/getschomp/skillswap/pulls/20/comments","review_comment_url":"https://api.github.com/repos/getschomp/skillswap/pulls/comments/{number}","comments_url":"https://api.github.com/repos/getschomp/skillswap/issues/20/comments","statuses_url":"https://api.github.com/repos/getschomp/skillswap/statuses/dcb674e020970f457498096895f42fd57e351880","head":{"label":"getschomp:searchsort","ref":"searchsort","sha":"dcb674e020970f457498096895f42fd57e351880","user":{"login":"getschomp","id":5835824,"avatar_url":"https://avatars.githubusercontent.com/u/5835824?v=3","gravatar_id":"","url":"https://api.github.com/users/getschomp","html_url":"https://github.com/getschomp","followers_url":"https://api.github.com/users/getschomp/followers","following_url":"https://api.github.com/users/getschomp/following{/other_user}","gists_url":"https://api.github.com/users/getschomp/gists{/gist_id}","starred_url":"https://api.github.com/users/getschomp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getschomp/subscriptions","organizations_url":"https://api.github.com/users/getschomp/orgs","repos_url":"https://api.github.com/users/getschomp/repos","events_url":"https://api.github.com/users/getschomp/events{/privacy}","received_events_url":"https://api.github.com/users/getschomp/received_events","type":"User","site_admin":false},"repo":{"id":28350590,"name":"skillswap","full_name":"getschomp/skillswap","owner":{"login":"getschomp","id":5835824,"avatar_url":"https://avatars.githubusercontent.com/u/5835824?v=3","gravatar_id":"","url":"https://api.github.com/users/getschomp","html_url":"https://github.com/getschomp","followers_url":"https://api.github.com/users/getschomp/followers","following_url":"https://api.github.com/users/getschomp/following{/other_user}","gists_url":"https://api.github.com/users/getschomp/gists{/gist_id}","starred_url":"https://api.github.com/users/getschomp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getschomp/subscriptions","organizations_url":"https://api.github.com/users/getschomp/orgs","repos_url":"https://api.github.com/users/getschomp/repos","events_url":"https://api.github.com/users/getschomp/events{/privacy}","received_events_url":"https://api.github.com/users/getschomp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/getschomp/skillswap","description":"A website that will allow people to barter for skills based on a one-to-one trade.","fork":false,"url":"https://api.github.com/repos/getschomp/skillswap","forks_url":"https://api.github.com/repos/getschomp/skillswap/forks","keys_url":"https://api.github.com/repos/getschomp/skillswap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getschomp/skillswap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getschomp/skillswap/teams","hooks_url":"https://api.github.com/repos/getschomp/skillswap/hooks","issue_events_url":"https://api.github.com/repos/getschomp/skillswap/issues/events{/number}","events_url":"https://api.github.com/repos/getschomp/skillswap/events","assignees_url":"https://api.github.com/repos/getschomp/skillswap/assignees{/user}","branches_url":"https://api.github.com/repos/getschomp/skillswap/branches{/branch}","tags_url":"https://api.github.com/repos/getschomp/skillswap/tags","blobs_url":"https://api.github.com/repos/getschomp/skillswap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getschomp/skillswap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getschomp/skillswap/git/refs{/sha}","trees_url":"https://api.github.com/repos/getschomp/skillswap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getschomp/skillswap/statuses/{sha}","languages_url":"https://api.github.com/repos/getschomp/skillswap/languages","stargazers_url":"https://api.github.com/repos/getschomp/skillswap/stargazers","contributors_url":"https://api.github.com/repos/getschomp/skillswap/contributors","subscribers_url":"https://api.github.com/repos/getschomp/skillswap/subscribers","subscription_url":"https://api.github.com/repos/getschomp/skillswap/subscription","commits_url":"https://api.github.com/repos/getschomp/skillswap/commits{/sha}","git_commits_url":"https://api.github.com/repos/getschomp/skillswap/git/commits{/sha}","comments_url":"https://api.github.com/repos/getschomp/skillswap/comments{/number}","issue_comment_url":"https://api.github.com/repos/getschomp/skillswap/issues/comments/{number}","contents_url":"https://api.github.com/repos/getschomp/skillswap/contents/{+path}","compare_url":"https://api.github.com/repos/getschomp/skillswap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getschomp/skillswap/merges","archive_url":"https://api.github.com/repos/getschomp/skillswap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getschomp/skillswap/downloads","issues_url":"https://api.github.com/repos/getschomp/skillswap/issues{/number}","pulls_url":"https://api.github.com/repos/getschomp/skillswap/pulls{/number}","milestones_url":"https://api.github.com/repos/getschomp/skillswap/milestones{/number}","notifications_url":"https://api.github.com/repos/getschomp/skillswap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getschomp/skillswap/labels{/name}","releases_url":"https://api.github.com/repos/getschomp/skillswap/releases{/id}","created_at":"2014-12-22T17:43:23Z","updated_at":"2015-01-17T22:33:20Z","pushed_at":"2015-01-18T17:28:49Z","git_url":"git://github.com/getschomp/skillswap.git","ssh_url":"git@github.com:getschomp/skillswap.git","clone_url":"https://github.com/getschomp/skillswap.git","svn_url":"https://github.com/getschomp/skillswap","homepage":"https://the-skill-swap.herokuapp.com/","size":1344,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":1,"default_branch":"master"}},"base":{"label":"getschomp:master","ref":"master","sha":"c7175ab17816dbd501bb07509fb299a4586a8144","user":{"login":"getschomp","id":5835824,"avatar_url":"https://avatars.githubusercontent.com/u/5835824?v=3","gravatar_id":"","url":"https://api.github.com/users/getschomp","html_url":"https://github.com/getschomp","followers_url":"https://api.github.com/users/getschomp/followers","following_url":"https://api.github.com/users/getschomp/following{/other_user}","gists_url":"https://api.github.com/users/getschomp/gists{/gist_id}","starred_url":"https://api.github.com/users/getschomp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getschomp/subscriptions","organizations_url":"https://api.github.com/users/getschomp/orgs","repos_url":"https://api.github.com/users/getschomp/repos","events_url":"https://api.github.com/users/getschomp/events{/privacy}","received_events_url":"https://api.github.com/users/getschomp/received_events","type":"User","site_admin":false},"repo":{"id":28350590,"name":"skillswap","full_name":"getschomp/skillswap","owner":{"login":"getschomp","id":5835824,"avatar_url":"https://avatars.githubusercontent.com/u/5835824?v=3","gravatar_id":"","url":"https://api.github.com/users/getschomp","html_url":"https://github.com/getschomp","followers_url":"https://api.github.com/users/getschomp/followers","following_url":"https://api.github.com/users/getschomp/following{/other_user}","gists_url":"https://api.github.com/users/getschomp/gists{/gist_id}","starred_url":"https://api.github.com/users/getschomp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/getschomp/subscriptions","organizations_url":"https://api.github.com/users/getschomp/orgs","repos_url":"https://api.github.com/users/getschomp/repos","events_url":"https://api.github.com/users/getschomp/events{/privacy}","received_events_url":"https://api.github.com/users/getschomp/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/getschomp/skillswap","description":"A website that will allow people to barter for skills based on a one-to-one trade.","fork":false,"url":"https://api.github.com/repos/getschomp/skillswap","forks_url":"https://api.github.com/repos/getschomp/skillswap/forks","keys_url":"https://api.github.com/repos/getschomp/skillswap/keys{/key_id}","collaborators_url":"https://api.github.com/repos/getschomp/skillswap/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/getschomp/skillswap/teams","hooks_url":"https://api.github.com/repos/getschomp/skillswap/hooks","issue_events_url":"https://api.github.com/repos/getschomp/skillswap/issues/events{/number}","events_url":"https://api.github.com/repos/getschomp/skillswap/events","assignees_url":"https://api.github.com/repos/getschomp/skillswap/assignees{/user}","branches_url":"https://api.github.com/repos/getschomp/skillswap/branches{/branch}","tags_url":"https://api.github.com/repos/getschomp/skillswap/tags","blobs_url":"https://api.github.com/repos/getschomp/skillswap/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/getschomp/skillswap/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/getschomp/skillswap/git/refs{/sha}","trees_url":"https://api.github.com/repos/getschomp/skillswap/git/trees{/sha}","statuses_url":"https://api.github.com/repos/getschomp/skillswap/statuses/{sha}","languages_url":"https://api.github.com/repos/getschomp/skillswap/languages","stargazers_url":"https://api.github.com/repos/getschomp/skillswap/stargazers","contributors_url":"https://api.github.com/repos/getschomp/skillswap/contributors","subscribers_url":"https://api.github.com/repos/getschomp/skillswap/subscribers","subscription_url":"https://api.github.com/repos/getschomp/skillswap/subscription","commits_url":"https://api.github.com/repos/getschomp/skillswap/commits{/sha}","git_commits_url":"https://api.github.com/repos/getschomp/skillswap/git/commits{/sha}","comments_url":"https://api.github.com/repos/getschomp/skillswap/comments{/number}","issue_comment_url":"https://api.github.com/repos/getschomp/skillswap/issues/comments/{number}","contents_url":"https://api.github.com/repos/getschomp/skillswap/contents/{+path}","compare_url":"https://api.github.com/repos/getschomp/skillswap/compare/{base}...{head}","merges_url":"https://api.github.com/repos/getschomp/skillswap/merges","archive_url":"https://api.github.com/repos/getschomp/skillswap/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/getschomp/skillswap/downloads","issues_url":"https://api.github.com/repos/getschomp/skillswap/issues{/number}","pulls_url":"https://api.github.com/repos/getschomp/skillswap/pulls{/number}","milestones_url":"https://api.github.com/repos/getschomp/skillswap/milestones{/number}","notifications_url":"https://api.github.com/repos/getschomp/skillswap/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/getschomp/skillswap/labels{/name}","releases_url":"https://api.github.com/repos/getschomp/skillswap/releases{/id}","created_at":"2014-12-22T17:43:23Z","updated_at":"2015-01-17T22:33:20Z","pushed_at":"2015-01-18T17:28:49Z","git_url":"git://github.com/getschomp/skillswap.git","ssh_url":"git@github.com:getschomp/skillswap.git","clone_url":"https://github.com/getschomp/skillswap.git","svn_url":"https://github.com/getschomp/skillswap","homepage":"https://the-skill-swap.herokuapp.com/","size":1344,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/getschomp/skillswap/pulls/20"},"html":{"href":"https://github.com/getschomp/skillswap/pull/20"},"issue":{"href":"https://api.github.com/repos/getschomp/skillswap/issues/20"},"comments":{"href":"https://api.github.com/repos/getschomp/skillswap/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/getschomp/skillswap/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/getschomp/skillswap/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/getschomp/skillswap/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/getschomp/skillswap/statuses/dcb674e020970f457498096895f42fd57e351880"}}}}