{"action":"created","comment":{"url":"https://api.github.com/repos/stuartpet/acebook-steam/pulls/comments/289337231","pull_request_review_id":244238817,"id":289337231,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI4OTMzNzIzMQ==","diff_hunk":"@@ -0,0 +1,77 @@\n+require 'rails_helper'\n+require 'web_helper'\n+\n+feature 'Users can comment on a post' do\n+  scenario 'user has the option to comment on a post' do\n+    create_new_user\n+    visit '/posts'\n+    click_link 'New post'\n+    fill_in 'Message', with: 'Hello, world!'\n+    click_button 'Submit'\n+\n+    expect(page).to have_button(\"Add\")\n+  end\n+\n+  scenario 'user comment successfully appears on page' do\n+    create_new_user\n+    visit '/posts'\n+    click_link 'New post'\n+    fill_in 'Message', with: 'Hello, world!'\n+    click_button 'Submit'\n+    fill_in 'comment_content', with: \"example comment\"\n+    click_button \"Add\"\n+    expect(page).to have_content(\"example comment\")\n+  end\n+\n+  scenario 'user can only delete their comments' do\n+    create_new_user\n+    visit '/posts'\n+    click_link 'New post'\n+    fill_in 'Message', with: 'Hello, world!'\n+    click_button 'Submit'\n+    click_button 'Add'\n+    fill_in 'comment_content', with: \"example comment\"\n+    click_button \"Add\"\n+    expect(page).to have_button(\"Delete Comment\")\n+  end\n+\n+  scenario 'comments are successfully deleted' do\n+    create_new_user\n+    visit '/posts'\n+    click_link 'New post'\n+    fill_in 'Message', with: 'Hello!'\n+    click_button 'Submit'\n+    click_button 'Add'\n+    fill_in 'comment_content', with: \"new comment\"\n+    click_button \"Add\"\n+    click_button(\"Delete Comment\", match: :first)","path":"spec/features/users_can_comment_spec.rb","position":47,"original_position":47,"commit_id":"22f6260d66c2bd299e9455b9ca547a0901df23ee","original_commit_id":"22f6260d66c2bd299e9455b9ca547a0901df23ee","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://app.codacy.com/assets/images/favicon.png) Issue found: [Style/StringLiterals: Prefer single-quoted strings when you don't need string interpolation or special symbols.](https://app.codacy.com/app/stuartpet/acebook-steam/pullRequest?prid=3660102)","created_at":"2019-05-31T10:27:44Z","updated_at":"2019-05-31T10:27:44Z","html_url":"https://github.com/stuartpet/acebook-steam/pull/46#discussion_r289337231","pull_request_url":"https://api.github.com/repos/stuartpet/acebook-steam/pulls/46","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/stuartpet/acebook-steam/pulls/comments/289337231"},"html":{"href":"https://github.com/stuartpet/acebook-steam/pull/46#discussion_r289337231"},"pull_request":{"href":"https://api.github.com/repos/stuartpet/acebook-steam/pulls/46"}}},"pull_request":{"url":"https://api.github.com/repos/stuartpet/acebook-steam/pulls/46","id":283988560,"node_id":"MDExOlB1bGxSZXF1ZXN0MjgzOTg4NTYw","html_url":"https://github.com/stuartpet/acebook-steam/pull/46","diff_url":"https://github.com/stuartpet/acebook-steam/pull/46.diff","patch_url":"https://github.com/stuartpet/acebook-steam/pull/46.patch","issue_url":"https://api.github.com/repos/stuartpet/acebook-steam/issues/46","number":46,"state":"open","locked":false,"title":"Post comments","user":{"login":"jordantroberts","id":46907218,"node_id":"MDQ6VXNlcjQ2OTA3MjE4","avatar_url":"https://avatars2.githubusercontent.com/u/46907218?v=4","gravatar_id":"","url":"https://api.github.com/users/jordantroberts","html_url":"https://github.com/jordantroberts","followers_url":"https://api.github.com/users/jordantroberts/followers","following_url":"https://api.github.com/users/jordantroberts/following{/other_user}","gists_url":"https://api.github.com/users/jordantroberts/gists{/gist_id}","starred_url":"https://api.github.com/users/jordantroberts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordantroberts/subscriptions","organizations_url":"https://api.github.com/users/jordantroberts/orgs","repos_url":"https://api.github.com/users/jordantroberts/repos","events_url":"https://api.github.com/users/jordantroberts/events{/privacy}","received_events_url":"https://api.github.com/users/jordantroberts/received_events","type":"User","site_admin":false},"body":"Comments are now only editable before 10 mins ","created_at":"2019-05-31T10:25:16Z","updated_at":"2019-05-31T10:27:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"048f0e5fdfca78e89644b660090478c42676b55a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/stuartpet/acebook-steam/pulls/46/commits","review_comments_url":"https://api.github.com/repos/stuartpet/acebook-steam/pulls/46/comments","review_comment_url":"https://api.github.com/repos/stuartpet/acebook-steam/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stuartpet/acebook-steam/issues/46/comments","statuses_url":"https://api.github.com/repos/stuartpet/acebook-steam/statuses/22f6260d66c2bd299e9455b9ca547a0901df23ee","head":{"label":"stuartpet:post_comments","ref":"post_comments","sha":"22f6260d66c2bd299e9455b9ca547a0901df23ee","user":{"login":"stuartpet","id":46967134,"node_id":"MDQ6VXNlcjQ2OTY3MTM0","avatar_url":"https://avatars3.githubusercontent.com/u/46967134?v=4","gravatar_id":"","url":"https://api.github.com/users/stuartpet","html_url":"https://github.com/stuartpet","followers_url":"https://api.github.com/users/stuartpet/followers","following_url":"https://api.github.com/users/stuartpet/following{/other_user}","gists_url":"https://api.github.com/users/stuartpet/gists{/gist_id}","starred_url":"https://api.github.com/users/stuartpet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuartpet/subscriptions","organizations_url":"https://api.github.com/users/stuartpet/orgs","repos_url":"https://api.github.com/users/stuartpet/repos","events_url":"https://api.github.com/users/stuartpet/events{/privacy}","received_events_url":"https://api.github.com/users/stuartpet/received_events","type":"User","site_admin":false},"repo":{"id":187616798,"node_id":"MDEwOlJlcG9zaXRvcnkxODc2MTY3OTg=","name":"acebook-steam","full_name":"stuartpet/acebook-steam","private":false,"owner":{"login":"stuartpet","id":46967134,"node_id":"MDQ6VXNlcjQ2OTY3MTM0","avatar_url":"https://avatars3.githubusercontent.com/u/46967134?v=4","gravatar_id":"","url":"https://api.github.com/users/stuartpet","html_url":"https://github.com/stuartpet","followers_url":"https://api.github.com/users/stuartpet/followers","following_url":"https://api.github.com/users/stuartpet/following{/other_user}","gists_url":"https://api.github.com/users/stuartpet/gists{/gist_id}","starred_url":"https://api.github.com/users/stuartpet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuartpet/subscriptions","organizations_url":"https://api.github.com/users/stuartpet/orgs","repos_url":"https://api.github.com/users/stuartpet/repos","events_url":"https://api.github.com/users/stuartpet/events{/privacy}","received_events_url":"https://api.github.com/users/stuartpet/received_events","type":"User","site_admin":false},"html_url":"https://github.com/stuartpet/acebook-steam","description":"Template for the AceBook project","fork":true,"url":"https://api.github.com/repos/stuartpet/acebook-steam","forks_url":"https://api.github.com/repos/stuartpet/acebook-steam/forks","keys_url":"https://api.github.com/repos/stuartpet/acebook-steam/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stuartpet/acebook-steam/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stuartpet/acebook-steam/teams","hooks_url":"https://api.github.com/repos/stuartpet/acebook-steam/hooks","issue_events_url":"https://api.github.com/repos/stuartpet/acebook-steam/issues/events{/number}","events_url":"https://api.github.com/repos/stuartpet/acebook-steam/events","assignees_url":"https://api.github.com/repos/stuartpet/acebook-steam/assignees{/user}","branches_url":"https://api.github.com/repos/stuartpet/acebook-steam/branches{/branch}","tags_url":"https://api.github.com/repos/stuartpet/acebook-steam/tags","blobs_url":"https://api.github.com/repos/stuartpet/acebook-steam/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stuartpet/acebook-steam/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stuartpet/acebook-steam/git/refs{/sha}","trees_url":"https://api.github.com/repos/stuartpet/acebook-steam/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stuartpet/acebook-steam/statuses/{sha}","languages_url":"https://api.github.com/repos/stuartpet/acebook-steam/languages","stargazers_url":"https://api.github.com/repos/stuartpet/acebook-steam/stargazers","contributors_url":"https://api.github.com/repos/stuartpet/acebook-steam/contributors","subscribers_url":"https://api.github.com/repos/stuartpet/acebook-steam/subscribers","subscription_url":"https://api.github.com/repos/stuartpet/acebook-steam/subscription","commits_url":"https://api.github.com/repos/stuartpet/acebook-steam/commits{/sha}","git_commits_url":"https://api.github.com/repos/stuartpet/acebook-steam/git/commits{/sha}","comments_url":"https://api.github.com/repos/stuartpet/acebook-steam/comments{/number}","issue_comment_url":"https://api.github.com/repos/stuartpet/acebook-steam/issues/comments{/number}","contents_url":"https://api.github.com/repos/stuartpet/acebook-steam/contents/{+path}","compare_url":"https://api.github.com/repos/stuartpet/acebook-steam/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stuartpet/acebook-steam/merges","archive_url":"https://api.github.com/repos/stuartpet/acebook-steam/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stuartpet/acebook-steam/downloads","issues_url":"https://api.github.com/repos/stuartpet/acebook-steam/issues{/number}","pulls_url":"https://api.github.com/repos/stuartpet/acebook-steam/pulls{/number}","milestones_url":"https://api.github.com/repos/stuartpet/acebook-steam/milestones{/number}","notifications_url":"https://api.github.com/repos/stuartpet/acebook-steam/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stuartpet/acebook-steam/labels{/name}","releases_url":"https://api.github.com/repos/stuartpet/acebook-steam/releases{/id}","deployments_url":"https://api.github.com/repos/stuartpet/acebook-steam/deployments","created_at":"2019-05-20T10:10:58Z","updated_at":"2019-05-31T10:00:39Z","pushed_at":"2019-05-31T10:25:17Z","git_url":"git://github.com/stuartpet/acebook-steam.git","ssh_url":"git@github.com:stuartpet/acebook-steam.git","clone_url":"https://github.com/stuartpet/acebook-steam.git","svn_url":"https://github.com/stuartpet/acebook-steam","homepage":"","size":6332,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"stuartpet:master","ref":"master","sha":"4b9e202cd0d9535b346ce21b1a77ab6ad2f6da87","user":{"login":"stuartpet","id":46967134,"node_id":"MDQ6VXNlcjQ2OTY3MTM0","avatar_url":"https://avatars3.githubusercontent.com/u/46967134?v=4","gravatar_id":"","url":"https://api.github.com/users/stuartpet","html_url":"https://github.com/stuartpet","followers_url":"https://api.github.com/users/stuartpet/followers","following_url":"https://api.github.com/users/stuartpet/following{/other_user}","gists_url":"https://api.github.com/users/stuartpet/gists{/gist_id}","starred_url":"https://api.github.com/users/stuartpet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuartpet/subscriptions","organizations_url":"https://api.github.com/users/stuartpet/orgs","repos_url":"https://api.github.com/users/stuartpet/repos","events_url":"https://api.github.com/users/stuartpet/events{/privacy}","received_events_url":"https://api.github.com/users/stuartpet/received_events","type":"User","site_admin":false},"repo":{"id":187616798,"node_id":"MDEwOlJlcG9zaXRvcnkxODc2MTY3OTg=","name":"acebook-steam","full_name":"stuartpet/acebook-steam","private":false,"owner":{"login":"stuartpet","id":46967134,"node_id":"MDQ6VXNlcjQ2OTY3MTM0","avatar_url":"https://avatars3.githubusercontent.com/u/46967134?v=4","gravatar_id":"","url":"https://api.github.com/users/stuartpet","html_url":"https://github.com/stuartpet","followers_url":"https://api.github.com/users/stuartpet/followers","following_url":"https://api.github.com/users/stuartpet/following{/other_user}","gists_url":"https://api.github.com/users/stuartpet/gists{/gist_id}","starred_url":"https://api.github.com/users/stuartpet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuartpet/subscriptions","organizations_url":"https://api.github.com/users/stuartpet/orgs","repos_url":"https://api.github.com/users/stuartpet/repos","events_url":"https://api.github.com/users/stuartpet/events{/privacy}","received_events_url":"https://api.github.com/users/stuartpet/received_events","type":"User","site_admin":false},"html_url":"https://github.com/stuartpet/acebook-steam","description":"Template for the AceBook project","fork":true,"url":"https://api.github.com/repos/stuartpet/acebook-steam","forks_url":"https://api.github.com/repos/stuartpet/acebook-steam/forks","keys_url":"https://api.github.com/repos/stuartpet/acebook-steam/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stuartpet/acebook-steam/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stuartpet/acebook-steam/teams","hooks_url":"https://api.github.com/repos/stuartpet/acebook-steam/hooks","issue_events_url":"https://api.github.com/repos/stuartpet/acebook-steam/issues/events{/number}","events_url":"https://api.github.com/repos/stuartpet/acebook-steam/events","assignees_url":"https://api.github.com/repos/stuartpet/acebook-steam/assignees{/user}","branches_url":"https://api.github.com/repos/stuartpet/acebook-steam/branches{/branch}","tags_url":"https://api.github.com/repos/stuartpet/acebook-steam/tags","blobs_url":"https://api.github.com/repos/stuartpet/acebook-steam/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stuartpet/acebook-steam/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stuartpet/acebook-steam/git/refs{/sha}","trees_url":"https://api.github.com/repos/stuartpet/acebook-steam/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stuartpet/acebook-steam/statuses/{sha}","languages_url":"https://api.github.com/repos/stuartpet/acebook-steam/languages","stargazers_url":"https://api.github.com/repos/stuartpet/acebook-steam/stargazers","contributors_url":"https://api.github.com/repos/stuartpet/acebook-steam/contributors","subscribers_url":"https://api.github.com/repos/stuartpet/acebook-steam/subscribers","subscription_url":"https://api.github.com/repos/stuartpet/acebook-steam/subscription","commits_url":"https://api.github.com/repos/stuartpet/acebook-steam/commits{/sha}","git_commits_url":"https://api.github.com/repos/stuartpet/acebook-steam/git/commits{/sha}","comments_url":"https://api.github.com/repos/stuartpet/acebook-steam/comments{/number}","issue_comment_url":"https://api.github.com/repos/stuartpet/acebook-steam/issues/comments{/number}","contents_url":"https://api.github.com/repos/stuartpet/acebook-steam/contents/{+path}","compare_url":"https://api.github.com/repos/stuartpet/acebook-steam/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stuartpet/acebook-steam/merges","archive_url":"https://api.github.com/repos/stuartpet/acebook-steam/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stuartpet/acebook-steam/downloads","issues_url":"https://api.github.com/repos/stuartpet/acebook-steam/issues{/number}","pulls_url":"https://api.github.com/repos/stuartpet/acebook-steam/pulls{/number}","milestones_url":"https://api.github.com/repos/stuartpet/acebook-steam/milestones{/number}","notifications_url":"https://api.github.com/repos/stuartpet/acebook-steam/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stuartpet/acebook-steam/labels{/name}","releases_url":"https://api.github.com/repos/stuartpet/acebook-steam/releases{/id}","deployments_url":"https://api.github.com/repos/stuartpet/acebook-steam/deployments","created_at":"2019-05-20T10:10:58Z","updated_at":"2019-05-31T10:00:39Z","pushed_at":"2019-05-31T10:25:17Z","git_url":"git://github.com/stuartpet/acebook-steam.git","ssh_url":"git@github.com:stuartpet/acebook-steam.git","clone_url":"https://github.com/stuartpet/acebook-steam.git","svn_url":"https://github.com/stuartpet/acebook-steam","homepage":"","size":6332,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":1,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/stuartpet/acebook-steam/pulls/46"},"html":{"href":"https://github.com/stuartpet/acebook-steam/pull/46"},"issue":{"href":"https://api.github.com/repos/stuartpet/acebook-steam/issues/46"},"comments":{"href":"https://api.github.com/repos/stuartpet/acebook-steam/issues/46/comments"},"review_comments":{"href":"https://api.github.com/repos/stuartpet/acebook-steam/pulls/46/comments"},"review_comment":{"href":"https://api.github.com/repos/stuartpet/acebook-steam/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stuartpet/acebook-steam/pulls/46/commits"},"statuses":{"href":"https://api.github.com/repos/stuartpet/acebook-steam/statuses/22f6260d66c2bd299e9455b9ca547a0901df23ee"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"codacy-bot"}}