{"action":"created","comment":{"url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/pulls/comments/40232387","id":40232387,"diff_hunk":"@@ -0,0 +1,66 @@\n+require 'rails_helper'\n+\n+feature 'user can add a comment to a review', %{\n+  As a user\n+  I want to add a comment to a review\n+  So others can hear my opinions\n+\n+  Acceptance Criteria\n+  [] - User must be signed in\n+  [] - Form should be displayed correctly\n+  [] - User can submit a comment\n+  [] - User can't leave form blank\n+  [] - User can see their comment on the show page\n+\n+\n+} do\n+\n+  feature \"User can add comment if signed in\" do\n+\n+    before(:each) do\n+      user = FactoryGirl.create(:user)\n+      visit new_user_session_path\n+\n+      fill_in 'Email', with: user.email\n+      fill_in 'Password', with: user.password\n+      click_button 'Log in'\n+    end\n+\n+    scenario 'User fills in form correctly' do\n+      review = FactoryGirl.create(:review)\n+      visit dinosaur_path(review.dinosaur)\n+\n+      fill_in 'Comment', with: \"This review is awesome!\"\n+      click_button 'Save comment'\n+      expect(page).to have_content(\"This review is awesome!\")\n+    end\n+\n+    scenario 'form should be displayed correctly' do\n+      review = FactoryGirl.create(:review)\n+      visit dinosaur_path(review.dinosaur)\n+\n+      click_button 'Save comment'","path":"spec/features/user_adds_comment_to_review_spec.rb","position":42,"original_position":42,"commit_id":"a283c56cdccc37b3f786e12ed24de9e03f609d86","original_commit_id":"a283c56cdccc37b3f786e12ed24de9e03f609d86","user":{"login":"mlg-","id":6767094,"avatar_url":"https://avatars.githubusercontent.com/u/6767094?v=3","gravatar_id":"","url":"https://api.github.com/users/mlg-","html_url":"https://github.com/mlg-","followers_url":"https://api.github.com/users/mlg-/followers","following_url":"https://api.github.com/users/mlg-/following{/other_user}","gists_url":"https://api.github.com/users/mlg-/gists{/gist_id}","starred_url":"https://api.github.com/users/mlg-/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mlg-/subscriptions","organizations_url":"https://api.github.com/users/mlg-/orgs","repos_url":"https://api.github.com/users/mlg-/repos","events_url":"https://api.github.com/users/mlg-/events{/privacy}","received_events_url":"https://api.github.com/users/mlg-/received_events","type":"User","site_admin":false},"body":"I don't think this line is needed for this test.","created_at":"2015-09-23T17:31:39Z","updated_at":"2015-09-23T17:31:39Z","html_url":"https://github.com/michaelveloso/Dinosaur-reviews/pull/14#discussion_r40232387","pull_request_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/pulls/14","_links":{"self":{"href":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/pulls/comments/40232387"},"html":{"href":"https://github.com/michaelveloso/Dinosaur-reviews/pull/14#discussion_r40232387"},"pull_request":{"href":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/pulls/14"}}},"pull_request":{"url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/pulls/14","id":45805976,"html_url":"https://github.com/michaelveloso/Dinosaur-reviews/pull/14","diff_url":"https://github.com/michaelveloso/Dinosaur-reviews/pull/14.diff","patch_url":"https://github.com/michaelveloso/Dinosaur-reviews/pull/14.patch","issue_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/issues/14","number":14,"state":"open","locked":false,"title":"Sw add comments","user":{"login":"maribethpierce","id":10468678,"avatar_url":"https://avatars.githubusercontent.com/u/10468678?v=3","gravatar_id":"","url":"https://api.github.com/users/maribethpierce","html_url":"https://github.com/maribethpierce","followers_url":"https://api.github.com/users/maribethpierce/followers","following_url":"https://api.github.com/users/maribethpierce/following{/other_user}","gists_url":"https://api.github.com/users/maribethpierce/gists{/gist_id}","starred_url":"https://api.github.com/users/maribethpierce/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maribethpierce/subscriptions","organizations_url":"https://api.github.com/users/maribethpierce/orgs","repos_url":"https://api.github.com/users/maribethpierce/repos","events_url":"https://api.github.com/users/maribethpierce/events{/privacy}","received_events_url":"https://api.github.com/users/maribethpierce/received_events","type":"User","site_admin":false},"body":"i hope it works","created_at":"2015-09-23T17:16:41Z","updated_at":"2015-09-23T17:31:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cbd2465dc38330841537e0442cf47b838767b3e4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/pulls/14/commits","review_comments_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/pulls/14/comments","review_comment_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/pulls/comments{/number}","comments_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/issues/14/comments","statuses_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/statuses/a283c56cdccc37b3f786e12ed24de9e03f609d86","head":{"label":"michaelveloso:sw-add-comments","ref":"sw-add-comments","sha":"a283c56cdccc37b3f786e12ed24de9e03f609d86","user":{"login":"michaelveloso","id":11981927,"avatar_url":"https://avatars.githubusercontent.com/u/11981927?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelveloso","html_url":"https://github.com/michaelveloso","followers_url":"https://api.github.com/users/michaelveloso/followers","following_url":"https://api.github.com/users/michaelveloso/following{/other_user}","gists_url":"https://api.github.com/users/michaelveloso/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelveloso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelveloso/subscriptions","organizations_url":"https://api.github.com/users/michaelveloso/orgs","repos_url":"https://api.github.com/users/michaelveloso/repos","events_url":"https://api.github.com/users/michaelveloso/events{/privacy}","received_events_url":"https://api.github.com/users/michaelveloso/received_events","type":"User","site_admin":false},"repo":{"id":42873654,"name":"Dinosaur-reviews","full_name":"michaelveloso/Dinosaur-reviews","owner":{"login":"michaelveloso","id":11981927,"avatar_url":"https://avatars.githubusercontent.com/u/11981927?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelveloso","html_url":"https://github.com/michaelveloso","followers_url":"https://api.github.com/users/michaelveloso/followers","following_url":"https://api.github.com/users/michaelveloso/following{/other_user}","gists_url":"https://api.github.com/users/michaelveloso/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelveloso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelveloso/subscriptions","organizations_url":"https://api.github.com/users/michaelveloso/orgs","repos_url":"https://api.github.com/users/michaelveloso/repos","events_url":"https://api.github.com/users/michaelveloso/events{/privacy}","received_events_url":"https://api.github.com/users/michaelveloso/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/michaelveloso/Dinosaur-reviews","description":"All about dinosaurs!","fork":false,"url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews","forks_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/forks","keys_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/keys{/key_id}","collaborators_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/teams","hooks_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/hooks","issue_events_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/issues/events{/number}","events_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/events","assignees_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/assignees{/user}","branches_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/branches{/branch}","tags_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/tags","blobs_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/git/refs{/sha}","trees_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/git/trees{/sha}","statuses_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/statuses/{sha}","languages_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/languages","stargazers_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/stargazers","contributors_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/contributors","subscribers_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/subscribers","subscription_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/subscription","commits_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/commits{/sha}","git_commits_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/git/commits{/sha}","comments_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/comments{/number}","issue_comment_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/issues/comments{/number}","contents_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/contents/{+path}","compare_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/compare/{base}...{head}","merges_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/merges","archive_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/downloads","issues_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/issues{/number}","pulls_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/pulls{/number}","milestones_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/milestones{/number}","notifications_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/labels{/name}","releases_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/releases{/id}","created_at":"2015-09-21T15:03:25Z","updated_at":"2015-09-22T18:33:48Z","pushed_at":"2015-09-23T17:21:13Z","git_url":"git://github.com/michaelveloso/Dinosaur-reviews.git","ssh_url":"git@github.com:michaelveloso/Dinosaur-reviews.git","clone_url":"https://github.com/michaelveloso/Dinosaur-reviews.git","svn_url":"https://github.com/michaelveloso/Dinosaur-reviews","homepage":null,"size":376,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"michaelveloso:master","ref":"master","sha":"3a43db235415ee85f469c98b4b69c3cf77a24625","user":{"login":"michaelveloso","id":11981927,"avatar_url":"https://avatars.githubusercontent.com/u/11981927?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelveloso","html_url":"https://github.com/michaelveloso","followers_url":"https://api.github.com/users/michaelveloso/followers","following_url":"https://api.github.com/users/michaelveloso/following{/other_user}","gists_url":"https://api.github.com/users/michaelveloso/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelveloso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelveloso/subscriptions","organizations_url":"https://api.github.com/users/michaelveloso/orgs","repos_url":"https://api.github.com/users/michaelveloso/repos","events_url":"https://api.github.com/users/michaelveloso/events{/privacy}","received_events_url":"https://api.github.com/users/michaelveloso/received_events","type":"User","site_admin":false},"repo":{"id":42873654,"name":"Dinosaur-reviews","full_name":"michaelveloso/Dinosaur-reviews","owner":{"login":"michaelveloso","id":11981927,"avatar_url":"https://avatars.githubusercontent.com/u/11981927?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelveloso","html_url":"https://github.com/michaelveloso","followers_url":"https://api.github.com/users/michaelveloso/followers","following_url":"https://api.github.com/users/michaelveloso/following{/other_user}","gists_url":"https://api.github.com/users/michaelveloso/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelveloso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelveloso/subscriptions","organizations_url":"https://api.github.com/users/michaelveloso/orgs","repos_url":"https://api.github.com/users/michaelveloso/repos","events_url":"https://api.github.com/users/michaelveloso/events{/privacy}","received_events_url":"https://api.github.com/users/michaelveloso/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/michaelveloso/Dinosaur-reviews","description":"All about dinosaurs!","fork":false,"url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews","forks_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/forks","keys_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/keys{/key_id}","collaborators_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/teams","hooks_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/hooks","issue_events_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/issues/events{/number}","events_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/events","assignees_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/assignees{/user}","branches_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/branches{/branch}","tags_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/tags","blobs_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/git/refs{/sha}","trees_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/git/trees{/sha}","statuses_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/statuses/{sha}","languages_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/languages","stargazers_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/stargazers","contributors_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/contributors","subscribers_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/subscribers","subscription_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/subscription","commits_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/commits{/sha}","git_commits_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/git/commits{/sha}","comments_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/comments{/number}","issue_comment_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/issues/comments{/number}","contents_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/contents/{+path}","compare_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/compare/{base}...{head}","merges_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/merges","archive_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/downloads","issues_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/issues{/number}","pulls_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/pulls{/number}","milestones_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/milestones{/number}","notifications_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/labels{/name}","releases_url":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/releases{/id}","created_at":"2015-09-21T15:03:25Z","updated_at":"2015-09-22T18:33:48Z","pushed_at":"2015-09-23T17:21:13Z","git_url":"git://github.com/michaelveloso/Dinosaur-reviews.git","ssh_url":"git@github.com:michaelveloso/Dinosaur-reviews.git","clone_url":"https://github.com/michaelveloso/Dinosaur-reviews.git","svn_url":"https://github.com/michaelveloso/Dinosaur-reviews","homepage":null,"size":376,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/pulls/14"},"html":{"href":"https://github.com/michaelveloso/Dinosaur-reviews/pull/14"},"issue":{"href":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/issues/14"},"comments":{"href":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/michaelveloso/Dinosaur-reviews/statuses/a283c56cdccc37b3f786e12ed24de9e03f609d86"}}}}