{"action":"created","comment":{"url":"https://api.github.com/repos/entcheva/music_snippets/pulls/comments/121262680","pull_request_review_id":43302668,"id":121262680,"diff_hunk":"@@ -0,0 +1,50 @@\n+require \"rails_helper\"\n+\n+RSpec.feature \"User edits snippet\" do\n+  scenario \"successfully\" do\n+    user = FactoryGirl.create(:user)\n+    snippet = FactoryGirl.create(:snippet, user: user)\n+    new_artist = \"The Beatles\"\n+\n+    visit edit_snippet_path(snippet, as: user)\n+\n+    fill_in \"Artist\", with: new_artist\n+    fill_in \"Title\", with: snippet.title\n+    fill_in \"Notes\", with: snippet.notes\n+    click_button \"Update Snippet\"\n+\n+    expect(page).to have_content \"#{snippet.title}, by #{new_artist}\"\n+  end\n+\n+  scenario \"unsuccessfully\" do\n+    user = FactoryGirl.create(:user)\n+    snippet = FactoryGirl.create(:snippet, user: user)\n+\n+    visit edit_snippet_path(snippet, as: user)\n+\n+    expect(page).to have_text \"Update your music snippet\"\n+    expect(snippet.artist).to eq(\"Beach House\")\n+    expect(page).to have_button \"Update Snippet\"\n+\n+    fill_in \"Artist\", with: \"\"\n+    fill_in \"Title\", with: snippet.title\n+    fill_in \"Notes\", with: snippet.notes\n+    click_button \"Update Snippet\"\n+\n+    expect(page).to have_content \"can't be blank\"\n+  end\n+\n+  scenario \"only if they have created it\" do\n+    user = FactoryGirl.create(:user)\n+    other_user = FactoryGirl.create(:user)\n+    snippet = FactoryGirl.create(:snippet, user: user)\n+\n+    visit edit_snippet_path(snippet, as: user)\n+\n+    expect(page).to have_text \"Update your music snippet\"\n+\n+    expect {","path":"spec/features/user_edits_snippet_spec.rb","position":46,"original_position":46,"commit_id":"30eaa95ae2ea00a828f6aad9718e7f55ec301706","original_commit_id":"30eaa95ae2ea00a828f6aad9718e7f55ec301706","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars3.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":"Avoid using {...} for multi-line blocks.","created_at":"2017-06-10T17:55:07Z","updated_at":"2017-06-10T17:55:07Z","html_url":"https://github.com/entcheva/music_snippets/pull/10#discussion_r121262680","pull_request_url":"https://api.github.com/repos/entcheva/music_snippets/pulls/10","_links":{"self":{"href":"https://api.github.com/repos/entcheva/music_snippets/pulls/comments/121262680"},"html":{"href":"https://github.com/entcheva/music_snippets/pull/10#discussion_r121262680"},"pull_request":{"href":"https://api.github.com/repos/entcheva/music_snippets/pulls/10"}}},"pull_request":{"url":"https://api.github.com/repos/entcheva/music_snippets/pulls/10","id":122717830,"html_url":"https://github.com/entcheva/music_snippets/pull/10","diff_url":"https://github.com/entcheva/music_snippets/pull/10.diff","patch_url":"https://github.com/entcheva/music_snippets/pull/10.patch","issue_url":"https://api.github.com/repos/entcheva/music_snippets/issues/10","number":10,"state":"open","locked":false,"title":"Users can edit snippet","user":{"login":"entcheva","id":1369728,"avatar_url":"https://avatars2.githubusercontent.com/u/1369728?v=3","gravatar_id":"","url":"https://api.github.com/users/entcheva","html_url":"https://github.com/entcheva","followers_url":"https://api.github.com/users/entcheva/followers","following_url":"https://api.github.com/users/entcheva/following{/other_user}","gists_url":"https://api.github.com/users/entcheva/gists{/gist_id}","starred_url":"https://api.github.com/users/entcheva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/entcheva/subscriptions","organizations_url":"https://api.github.com/users/entcheva/orgs","repos_url":"https://api.github.com/users/entcheva/repos","events_url":"https://api.github.com/users/entcheva/events{/privacy}","received_events_url":"https://api.github.com/users/entcheva/received_events","type":"User","site_admin":false},"body":"To do:\r\n- [ ] User can only edit snippet they have created themselves","created_at":"2017-05-26T20:49:53Z","updated_at":"2017-06-10T17:55:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bad858c1b85ed36151ba948e97c756c6d317c954","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/entcheva/music_snippets/pulls/10/commits","review_comments_url":"https://api.github.com/repos/entcheva/music_snippets/pulls/10/comments","review_comment_url":"https://api.github.com/repos/entcheva/music_snippets/pulls/comments{/number}","comments_url":"https://api.github.com/repos/entcheva/music_snippets/issues/10/comments","statuses_url":"https://api.github.com/repos/entcheva/music_snippets/statuses/30eaa95ae2ea00a828f6aad9718e7f55ec301706","head":{"label":"entcheva:user-edits-snippet","ref":"user-edits-snippet","sha":"30eaa95ae2ea00a828f6aad9718e7f55ec301706","user":{"login":"entcheva","id":1369728,"avatar_url":"https://avatars2.githubusercontent.com/u/1369728?v=3","gravatar_id":"","url":"https://api.github.com/users/entcheva","html_url":"https://github.com/entcheva","followers_url":"https://api.github.com/users/entcheva/followers","following_url":"https://api.github.com/users/entcheva/following{/other_user}","gists_url":"https://api.github.com/users/entcheva/gists{/gist_id}","starred_url":"https://api.github.com/users/entcheva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/entcheva/subscriptions","organizations_url":"https://api.github.com/users/entcheva/orgs","repos_url":"https://api.github.com/users/entcheva/repos","events_url":"https://api.github.com/users/entcheva/events{/privacy}","received_events_url":"https://api.github.com/users/entcheva/received_events","type":"User","site_admin":false},"repo":{"id":84520539,"name":"music_snippets","full_name":"entcheva/music_snippets","owner":{"login":"entcheva","id":1369728,"avatar_url":"https://avatars2.githubusercontent.com/u/1369728?v=3","gravatar_id":"","url":"https://api.github.com/users/entcheva","html_url":"https://github.com/entcheva","followers_url":"https://api.github.com/users/entcheva/followers","following_url":"https://api.github.com/users/entcheva/following{/other_user}","gists_url":"https://api.github.com/users/entcheva/gists{/gist_id}","starred_url":"https://api.github.com/users/entcheva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/entcheva/subscriptions","organizations_url":"https://api.github.com/users/entcheva/orgs","repos_url":"https://api.github.com/users/entcheva/repos","events_url":"https://api.github.com/users/entcheva/events{/privacy}","received_events_url":"https://api.github.com/users/entcheva/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/entcheva/music_snippets","description":"Save guitar tabs or music notes for songs you're writing","fork":false,"url":"https://api.github.com/repos/entcheva/music_snippets","forks_url":"https://api.github.com/repos/entcheva/music_snippets/forks","keys_url":"https://api.github.com/repos/entcheva/music_snippets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/entcheva/music_snippets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/entcheva/music_snippets/teams","hooks_url":"https://api.github.com/repos/entcheva/music_snippets/hooks","issue_events_url":"https://api.github.com/repos/entcheva/music_snippets/issues/events{/number}","events_url":"https://api.github.com/repos/entcheva/music_snippets/events","assignees_url":"https://api.github.com/repos/entcheva/music_snippets/assignees{/user}","branches_url":"https://api.github.com/repos/entcheva/music_snippets/branches{/branch}","tags_url":"https://api.github.com/repos/entcheva/music_snippets/tags","blobs_url":"https://api.github.com/repos/entcheva/music_snippets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/entcheva/music_snippets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/entcheva/music_snippets/git/refs{/sha}","trees_url":"https://api.github.com/repos/entcheva/music_snippets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/entcheva/music_snippets/statuses/{sha}","languages_url":"https://api.github.com/repos/entcheva/music_snippets/languages","stargazers_url":"https://api.github.com/repos/entcheva/music_snippets/stargazers","contributors_url":"https://api.github.com/repos/entcheva/music_snippets/contributors","subscribers_url":"https://api.github.com/repos/entcheva/music_snippets/subscribers","subscription_url":"https://api.github.com/repos/entcheva/music_snippets/subscription","commits_url":"https://api.github.com/repos/entcheva/music_snippets/commits{/sha}","git_commits_url":"https://api.github.com/repos/entcheva/music_snippets/git/commits{/sha}","comments_url":"https://api.github.com/repos/entcheva/music_snippets/comments{/number}","issue_comment_url":"https://api.github.com/repos/entcheva/music_snippets/issues/comments{/number}","contents_url":"https://api.github.com/repos/entcheva/music_snippets/contents/{+path}","compare_url":"https://api.github.com/repos/entcheva/music_snippets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/entcheva/music_snippets/merges","archive_url":"https://api.github.com/repos/entcheva/music_snippets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/entcheva/music_snippets/downloads","issues_url":"https://api.github.com/repos/entcheva/music_snippets/issues{/number}","pulls_url":"https://api.github.com/repos/entcheva/music_snippets/pulls{/number}","milestones_url":"https://api.github.com/repos/entcheva/music_snippets/milestones{/number}","notifications_url":"https://api.github.com/repos/entcheva/music_snippets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/entcheva/music_snippets/labels{/name}","releases_url":"https://api.github.com/repos/entcheva/music_snippets/releases{/id}","deployments_url":"https://api.github.com/repos/entcheva/music_snippets/deployments","created_at":"2017-03-10T04:52:39Z","updated_at":"2017-05-26T03:52:06Z","pushed_at":"2017-06-10T17:54:57Z","git_url":"git://github.com/entcheva/music_snippets.git","ssh_url":"git@github.com:entcheva/music_snippets.git","clone_url":"https://github.com/entcheva/music_snippets.git","svn_url":"https://github.com/entcheva/music_snippets","homepage":"","size":747,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":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":"entcheva:master","ref":"master","sha":"4d68002cce679fcb0fcd1342630787458116c439","user":{"login":"entcheva","id":1369728,"avatar_url":"https://avatars2.githubusercontent.com/u/1369728?v=3","gravatar_id":"","url":"https://api.github.com/users/entcheva","html_url":"https://github.com/entcheva","followers_url":"https://api.github.com/users/entcheva/followers","following_url":"https://api.github.com/users/entcheva/following{/other_user}","gists_url":"https://api.github.com/users/entcheva/gists{/gist_id}","starred_url":"https://api.github.com/users/entcheva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/entcheva/subscriptions","organizations_url":"https://api.github.com/users/entcheva/orgs","repos_url":"https://api.github.com/users/entcheva/repos","events_url":"https://api.github.com/users/entcheva/events{/privacy}","received_events_url":"https://api.github.com/users/entcheva/received_events","type":"User","site_admin":false},"repo":{"id":84520539,"name":"music_snippets","full_name":"entcheva/music_snippets","owner":{"login":"entcheva","id":1369728,"avatar_url":"https://avatars2.githubusercontent.com/u/1369728?v=3","gravatar_id":"","url":"https://api.github.com/users/entcheva","html_url":"https://github.com/entcheva","followers_url":"https://api.github.com/users/entcheva/followers","following_url":"https://api.github.com/users/entcheva/following{/other_user}","gists_url":"https://api.github.com/users/entcheva/gists{/gist_id}","starred_url":"https://api.github.com/users/entcheva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/entcheva/subscriptions","organizations_url":"https://api.github.com/users/entcheva/orgs","repos_url":"https://api.github.com/users/entcheva/repos","events_url":"https://api.github.com/users/entcheva/events{/privacy}","received_events_url":"https://api.github.com/users/entcheva/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/entcheva/music_snippets","description":"Save guitar tabs or music notes for songs you're writing","fork":false,"url":"https://api.github.com/repos/entcheva/music_snippets","forks_url":"https://api.github.com/repos/entcheva/music_snippets/forks","keys_url":"https://api.github.com/repos/entcheva/music_snippets/keys{/key_id}","collaborators_url":"https://api.github.com/repos/entcheva/music_snippets/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/entcheva/music_snippets/teams","hooks_url":"https://api.github.com/repos/entcheva/music_snippets/hooks","issue_events_url":"https://api.github.com/repos/entcheva/music_snippets/issues/events{/number}","events_url":"https://api.github.com/repos/entcheva/music_snippets/events","assignees_url":"https://api.github.com/repos/entcheva/music_snippets/assignees{/user}","branches_url":"https://api.github.com/repos/entcheva/music_snippets/branches{/branch}","tags_url":"https://api.github.com/repos/entcheva/music_snippets/tags","blobs_url":"https://api.github.com/repos/entcheva/music_snippets/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/entcheva/music_snippets/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/entcheva/music_snippets/git/refs{/sha}","trees_url":"https://api.github.com/repos/entcheva/music_snippets/git/trees{/sha}","statuses_url":"https://api.github.com/repos/entcheva/music_snippets/statuses/{sha}","languages_url":"https://api.github.com/repos/entcheva/music_snippets/languages","stargazers_url":"https://api.github.com/repos/entcheva/music_snippets/stargazers","contributors_url":"https://api.github.com/repos/entcheva/music_snippets/contributors","subscribers_url":"https://api.github.com/repos/entcheva/music_snippets/subscribers","subscription_url":"https://api.github.com/repos/entcheva/music_snippets/subscription","commits_url":"https://api.github.com/repos/entcheva/music_snippets/commits{/sha}","git_commits_url":"https://api.github.com/repos/entcheva/music_snippets/git/commits{/sha}","comments_url":"https://api.github.com/repos/entcheva/music_snippets/comments{/number}","issue_comment_url":"https://api.github.com/repos/entcheva/music_snippets/issues/comments{/number}","contents_url":"https://api.github.com/repos/entcheva/music_snippets/contents/{+path}","compare_url":"https://api.github.com/repos/entcheva/music_snippets/compare/{base}...{head}","merges_url":"https://api.github.com/repos/entcheva/music_snippets/merges","archive_url":"https://api.github.com/repos/entcheva/music_snippets/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/entcheva/music_snippets/downloads","issues_url":"https://api.github.com/repos/entcheva/music_snippets/issues{/number}","pulls_url":"https://api.github.com/repos/entcheva/music_snippets/pulls{/number}","milestones_url":"https://api.github.com/repos/entcheva/music_snippets/milestones{/number}","notifications_url":"https://api.github.com/repos/entcheva/music_snippets/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/entcheva/music_snippets/labels{/name}","releases_url":"https://api.github.com/repos/entcheva/music_snippets/releases{/id}","deployments_url":"https://api.github.com/repos/entcheva/music_snippets/deployments","created_at":"2017-03-10T04:52:39Z","updated_at":"2017-05-26T03:52:06Z","pushed_at":"2017-06-10T17:54:57Z","git_url":"git://github.com/entcheva/music_snippets.git","ssh_url":"git@github.com:entcheva/music_snippets.git","clone_url":"https://github.com/entcheva/music_snippets.git","svn_url":"https://github.com/entcheva/music_snippets","homepage":"","size":747,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":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/entcheva/music_snippets/pulls/10"},"html":{"href":"https://github.com/entcheva/music_snippets/pull/10"},"issue":{"href":"https://api.github.com/repos/entcheva/music_snippets/issues/10"},"comments":{"href":"https://api.github.com/repos/entcheva/music_snippets/issues/10/comments"},"review_comments":{"href":"https://api.github.com/repos/entcheva/music_snippets/pulls/10/comments"},"review_comment":{"href":"https://api.github.com/repos/entcheva/music_snippets/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/entcheva/music_snippets/pulls/10/commits"},"statuses":{"href":"https://api.github.com/repos/entcheva/music_snippets/statuses/30eaa95ae2ea00a828f6aad9718e7f55ec301706"}}}}
{"actor":{"display_login":"houndci-bot"}}