{"action":"created","comment":{"url":"https://api.github.com/repos/npendery/Season-Survey/pulls/comments/40224788","id":40224788,"diff_hunk":"@@ -0,0 +1,88 @@\n+require 'rails_helper'\n+\n+feature 'user creates review', %{\n+  As a signed up user\n+  I want to create new review\n+  So that other users can see what I think of the item\n+} do\n+  scenario 'creates review succcessfully' do\n+    user = FactoryGirl.create(:user)\n+    category = FactoryGirl.create(:category)\n+\n+    item = Item.create!(name: \"Snow boots\", description: \"Fluffy\", image: \"www.zappos.com\", purchase_url: \"www.zappos.com\", user_id: user.id, category_id: category.id)\n+\n+    visit new_user_session_path\n+\n+    fill_in 'Email', with: user.email\n+    fill_in 'Password', with: user.password\n+\n+    click_button 'Log in'\n+\n+    click_on category.name\n+\n+    click_on item.name\n+\n+    click_on 'Add Review'\n+\n+    choose 3\n+\n+    fill_in \"Description\", with: \"Soaks through\"\n+\n+    click_on \"Create Review\"\n+\n+    expect(page).to have_content(\"Review added.\")\n+    expect(page).to have_content(\"Soaks through\")\n+  end\n+\n+  scenario 'create unsucccessful review, without rating' do\n+    user = FactoryGirl.create(:user)\n+    category = FactoryGirl.create(:category)\n+    item = Item.create!(name: \"Snow boots\", description: \"Fluffy\", image: \"www.zappos.com\", purchase_url: \"www.zappos.com\", user_id: user.id, category_id: category.id)","path":"spec/features/user_creates_review_spec.rb","position":40,"original_position":40,"commit_id":"bbffc848e54dcf69f20bce017b02f937aa78cbf6","original_commit_id":"bbffc848e54dcf69f20bce017b02f937aa78cbf6","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":"Line is too long. [167/80]","created_at":"2015-09-23T16:25:37Z","updated_at":"2015-09-23T16:25:37Z","html_url":"https://github.com/npendery/Season-Survey/pull/8#discussion_r40224788","pull_request_url":"https://api.github.com/repos/npendery/Season-Survey/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/npendery/Season-Survey/pulls/comments/40224788"},"html":{"href":"https://github.com/npendery/Season-Survey/pull/8#discussion_r40224788"},"pull_request":{"href":"https://api.github.com/repos/npendery/Season-Survey/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/npendery/Season-Survey/pulls/8","id":45800492,"html_url":"https://github.com/npendery/Season-Survey/pull/8","diff_url":"https://github.com/npendery/Season-Survey/pull/8.diff","patch_url":"https://github.com/npendery/Season-Survey/pull/8.patch","issue_url":"https://api.github.com/repos/npendery/Season-Survey/issues/8","number":8,"state":"open","locked":false,"title":"Create review feature test","user":{"login":"npendery","id":12616684,"avatar_url":"https://avatars.githubusercontent.com/u/12616684?v=3","gravatar_id":"","url":"https://api.github.com/users/npendery","html_url":"https://github.com/npendery","followers_url":"https://api.github.com/users/npendery/followers","following_url":"https://api.github.com/users/npendery/following{/other_user}","gists_url":"https://api.github.com/users/npendery/gists{/gist_id}","starred_url":"https://api.github.com/users/npendery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npendery/subscriptions","organizations_url":"https://api.github.com/users/npendery/orgs","repos_url":"https://api.github.com/users/npendery/repos","events_url":"https://api.github.com/users/npendery/events{/privacy}","received_events_url":"https://api.github.com/users/npendery/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-23T16:25:30Z","updated_at":"2015-09-23T16:25:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a96e3995b9e159b06ab3bddbb174392ece12b004","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/npendery/Season-Survey/pulls/8/commits","review_comments_url":"https://api.github.com/repos/npendery/Season-Survey/pulls/8/comments","review_comment_url":"https://api.github.com/repos/npendery/Season-Survey/pulls/comments{/number}","comments_url":"https://api.github.com/repos/npendery/Season-Survey/issues/8/comments","statuses_url":"https://api.github.com/repos/npendery/Season-Survey/statuses/bbffc848e54dcf69f20bce017b02f937aa78cbf6","head":{"label":"npendery:CreateReviewFeatureTest","ref":"CreateReviewFeatureTest","sha":"bbffc848e54dcf69f20bce017b02f937aa78cbf6","user":{"login":"npendery","id":12616684,"avatar_url":"https://avatars.githubusercontent.com/u/12616684?v=3","gravatar_id":"","url":"https://api.github.com/users/npendery","html_url":"https://github.com/npendery","followers_url":"https://api.github.com/users/npendery/followers","following_url":"https://api.github.com/users/npendery/following{/other_user}","gists_url":"https://api.github.com/users/npendery/gists{/gist_id}","starred_url":"https://api.github.com/users/npendery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npendery/subscriptions","organizations_url":"https://api.github.com/users/npendery/orgs","repos_url":"https://api.github.com/users/npendery/repos","events_url":"https://api.github.com/users/npendery/events{/privacy}","received_events_url":"https://api.github.com/users/npendery/received_events","type":"User","site_admin":false},"repo":{"id":42872279,"name":"Season-Survey","full_name":"npendery/Season-Survey","owner":{"login":"npendery","id":12616684,"avatar_url":"https://avatars.githubusercontent.com/u/12616684?v=3","gravatar_id":"","url":"https://api.github.com/users/npendery","html_url":"https://github.com/npendery","followers_url":"https://api.github.com/users/npendery/followers","following_url":"https://api.github.com/users/npendery/following{/other_user}","gists_url":"https://api.github.com/users/npendery/gists{/gist_id}","starred_url":"https://api.github.com/users/npendery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npendery/subscriptions","organizations_url":"https://api.github.com/users/npendery/orgs","repos_url":"https://api.github.com/users/npendery/repos","events_url":"https://api.github.com/users/npendery/events{/privacy}","received_events_url":"https://api.github.com/users/npendery/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/npendery/Season-Survey","description":"","fork":false,"url":"https://api.github.com/repos/npendery/Season-Survey","forks_url":"https://api.github.com/repos/npendery/Season-Survey/forks","keys_url":"https://api.github.com/repos/npendery/Season-Survey/keys{/key_id}","collaborators_url":"https://api.github.com/repos/npendery/Season-Survey/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/npendery/Season-Survey/teams","hooks_url":"https://api.github.com/repos/npendery/Season-Survey/hooks","issue_events_url":"https://api.github.com/repos/npendery/Season-Survey/issues/events{/number}","events_url":"https://api.github.com/repos/npendery/Season-Survey/events","assignees_url":"https://api.github.com/repos/npendery/Season-Survey/assignees{/user}","branches_url":"https://api.github.com/repos/npendery/Season-Survey/branches{/branch}","tags_url":"https://api.github.com/repos/npendery/Season-Survey/tags","blobs_url":"https://api.github.com/repos/npendery/Season-Survey/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/npendery/Season-Survey/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/npendery/Season-Survey/git/refs{/sha}","trees_url":"https://api.github.com/repos/npendery/Season-Survey/git/trees{/sha}","statuses_url":"https://api.github.com/repos/npendery/Season-Survey/statuses/{sha}","languages_url":"https://api.github.com/repos/npendery/Season-Survey/languages","stargazers_url":"https://api.github.com/repos/npendery/Season-Survey/stargazers","contributors_url":"https://api.github.com/repos/npendery/Season-Survey/contributors","subscribers_url":"https://api.github.com/repos/npendery/Season-Survey/subscribers","subscription_url":"https://api.github.com/repos/npendery/Season-Survey/subscription","commits_url":"https://api.github.com/repos/npendery/Season-Survey/commits{/sha}","git_commits_url":"https://api.github.com/repos/npendery/Season-Survey/git/commits{/sha}","comments_url":"https://api.github.com/repos/npendery/Season-Survey/comments{/number}","issue_comment_url":"https://api.github.com/repos/npendery/Season-Survey/issues/comments{/number}","contents_url":"https://api.github.com/repos/npendery/Season-Survey/contents/{+path}","compare_url":"https://api.github.com/repos/npendery/Season-Survey/compare/{base}...{head}","merges_url":"https://api.github.com/repos/npendery/Season-Survey/merges","archive_url":"https://api.github.com/repos/npendery/Season-Survey/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/npendery/Season-Survey/downloads","issues_url":"https://api.github.com/repos/npendery/Season-Survey/issues{/number}","pulls_url":"https://api.github.com/repos/npendery/Season-Survey/pulls{/number}","milestones_url":"https://api.github.com/repos/npendery/Season-Survey/milestones{/number}","notifications_url":"https://api.github.com/repos/npendery/Season-Survey/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/npendery/Season-Survey/labels{/name}","releases_url":"https://api.github.com/repos/npendery/Season-Survey/releases{/id}","created_at":"2015-09-21T14:43:28Z","updated_at":"2015-09-22T16:53:32Z","pushed_at":"2015-09-23T16:25:30Z","git_url":"git://github.com/npendery/Season-Survey.git","ssh_url":"git@github.com:npendery/Season-Survey.git","clone_url":"https://github.com/npendery/Season-Survey.git","svn_url":"https://github.com/npendery/Season-Survey","homepage":null,"size":0,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"npendery:master","ref":"master","sha":"ad98833383148a453bf56e0c128f0549d50e2af5","user":{"login":"npendery","id":12616684,"avatar_url":"https://avatars.githubusercontent.com/u/12616684?v=3","gravatar_id":"","url":"https://api.github.com/users/npendery","html_url":"https://github.com/npendery","followers_url":"https://api.github.com/users/npendery/followers","following_url":"https://api.github.com/users/npendery/following{/other_user}","gists_url":"https://api.github.com/users/npendery/gists{/gist_id}","starred_url":"https://api.github.com/users/npendery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npendery/subscriptions","organizations_url":"https://api.github.com/users/npendery/orgs","repos_url":"https://api.github.com/users/npendery/repos","events_url":"https://api.github.com/users/npendery/events{/privacy}","received_events_url":"https://api.github.com/users/npendery/received_events","type":"User","site_admin":false},"repo":{"id":42872279,"name":"Season-Survey","full_name":"npendery/Season-Survey","owner":{"login":"npendery","id":12616684,"avatar_url":"https://avatars.githubusercontent.com/u/12616684?v=3","gravatar_id":"","url":"https://api.github.com/users/npendery","html_url":"https://github.com/npendery","followers_url":"https://api.github.com/users/npendery/followers","following_url":"https://api.github.com/users/npendery/following{/other_user}","gists_url":"https://api.github.com/users/npendery/gists{/gist_id}","starred_url":"https://api.github.com/users/npendery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/npendery/subscriptions","organizations_url":"https://api.github.com/users/npendery/orgs","repos_url":"https://api.github.com/users/npendery/repos","events_url":"https://api.github.com/users/npendery/events{/privacy}","received_events_url":"https://api.github.com/users/npendery/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/npendery/Season-Survey","description":"","fork":false,"url":"https://api.github.com/repos/npendery/Season-Survey","forks_url":"https://api.github.com/repos/npendery/Season-Survey/forks","keys_url":"https://api.github.com/repos/npendery/Season-Survey/keys{/key_id}","collaborators_url":"https://api.github.com/repos/npendery/Season-Survey/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/npendery/Season-Survey/teams","hooks_url":"https://api.github.com/repos/npendery/Season-Survey/hooks","issue_events_url":"https://api.github.com/repos/npendery/Season-Survey/issues/events{/number}","events_url":"https://api.github.com/repos/npendery/Season-Survey/events","assignees_url":"https://api.github.com/repos/npendery/Season-Survey/assignees{/user}","branches_url":"https://api.github.com/repos/npendery/Season-Survey/branches{/branch}","tags_url":"https://api.github.com/repos/npendery/Season-Survey/tags","blobs_url":"https://api.github.com/repos/npendery/Season-Survey/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/npendery/Season-Survey/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/npendery/Season-Survey/git/refs{/sha}","trees_url":"https://api.github.com/repos/npendery/Season-Survey/git/trees{/sha}","statuses_url":"https://api.github.com/repos/npendery/Season-Survey/statuses/{sha}","languages_url":"https://api.github.com/repos/npendery/Season-Survey/languages","stargazers_url":"https://api.github.com/repos/npendery/Season-Survey/stargazers","contributors_url":"https://api.github.com/repos/npendery/Season-Survey/contributors","subscribers_url":"https://api.github.com/repos/npendery/Season-Survey/subscribers","subscription_url":"https://api.github.com/repos/npendery/Season-Survey/subscription","commits_url":"https://api.github.com/repos/npendery/Season-Survey/commits{/sha}","git_commits_url":"https://api.github.com/repos/npendery/Season-Survey/git/commits{/sha}","comments_url":"https://api.github.com/repos/npendery/Season-Survey/comments{/number}","issue_comment_url":"https://api.github.com/repos/npendery/Season-Survey/issues/comments{/number}","contents_url":"https://api.github.com/repos/npendery/Season-Survey/contents/{+path}","compare_url":"https://api.github.com/repos/npendery/Season-Survey/compare/{base}...{head}","merges_url":"https://api.github.com/repos/npendery/Season-Survey/merges","archive_url":"https://api.github.com/repos/npendery/Season-Survey/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/npendery/Season-Survey/downloads","issues_url":"https://api.github.com/repos/npendery/Season-Survey/issues{/number}","pulls_url":"https://api.github.com/repos/npendery/Season-Survey/pulls{/number}","milestones_url":"https://api.github.com/repos/npendery/Season-Survey/milestones{/number}","notifications_url":"https://api.github.com/repos/npendery/Season-Survey/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/npendery/Season-Survey/labels{/name}","releases_url":"https://api.github.com/repos/npendery/Season-Survey/releases{/id}","created_at":"2015-09-21T14:43:28Z","updated_at":"2015-09-22T16:53:32Z","pushed_at":"2015-09-23T16:25:30Z","git_url":"git://github.com/npendery/Season-Survey.git","ssh_url":"git@github.com:npendery/Season-Survey.git","clone_url":"https://github.com/npendery/Season-Survey.git","svn_url":"https://github.com/npendery/Season-Survey","homepage":null,"size":0,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/npendery/Season-Survey/pulls/8"},"html":{"href":"https://github.com/npendery/Season-Survey/pull/8"},"issue":{"href":"https://api.github.com/repos/npendery/Season-Survey/issues/8"},"comments":{"href":"https://api.github.com/repos/npendery/Season-Survey/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/npendery/Season-Survey/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/npendery/Season-Survey/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/npendery/Season-Survey/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/npendery/Season-Survey/statuses/bbffc848e54dcf69f20bce017b02f937aa78cbf6"}}}}