GitHub PullRequestReviewCommentEvent at 2014-09-26 16:48:50
Repository: char_brawls
Actor: houndci
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/LaunchAcademy/char_brawls/pulls/comments/18099813","id":18099813,"diff_hunk":"@@ -0,0 +1,58 @@\n+require 'rails_helper'\n+feature \"Authenticated user creates a opinion\", %{\n+  As an Authenticated user,\n+  I want to write a opinion\n+  so that I can tell the world about my opinions!\n+  }  do\n+\n+  context \"authenticated user\" do\n+    before (:each) do\n+      user = FactoryGirl.create(:user)\n+      sign_in_as(user)\n+    end\n+\n+    scenario \"User writes and submits a opinion\" do\n+      matchup = FactoryGirl.create(:matchup)\n+\n+      visit matchup_path(matchup)\n+      # Later, test how the user would navigate to this page, something like:\n+      # visit root_path\n+      # click_on \"Browse Matchups\"\n+      # click_on matchup.description  # description would be an instance method\n+      # on matchup, that returned some description like \"Pikachu vs. Link\"\n+\n+      fill_in \"Battle Notes\", with: \"I think that link is gonna kick that ass!\"\n+      choose 'opinion_winner_id_' + matchup.character.id.to_s\n+      click_on \"Create Opinion\"\n+\n+      expect(page).to have_content \"The opinion has been created successfully.\"\n+    end\n+\n+    scenario \"User can't submit an empty opinion\" do\n+      matchup = FactoryGirl.create(:matchup)\n+      visit matchup_path(matchup)\n+      click_on \"Create Opinion\"\n+      expect(page).to have_content \"The opinion can't be empty!\"\n+    end\n+\n+    scenario \"User can't submit exactly the same opinion text\" do\n+      matchup = FactoryGirl.create(:matchup)\n+      FactoryGirl.create(:opinion)\n+\n+      visit matchup_path(matchup)\n+      fill_in \"Battle Notes\", with: \"I think that link is gonna kick that ass!\"\n+\n+      click_on \"Create Opinion\"\n+      expect(page).to have_content \"That opinion already exists!\"\n+  end\n+end\n+\n+  scenario \"Unauthenticated user cannot create a opinion\" do\n+     matchup = FactoryGirl.create(:matchup)","path":"spec/features/user_creates_review_spec.rb","position":51,"original_position":51,"commit_id":"6960d54847dd68aab97af55fed1a54255dbf200f","original_commit_id":"6960d54847dd68aab97af55fed1a54255dbf200f","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=2","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":"Use 2 (not 3) spaces for indentation.","created_at":"2014-09-26T16:48:50Z","updated_at":"2014-09-26T16:48:50Z","html_url":"https://github.com/LaunchAcademy/char_brawls/pull/5#discussion_r18099813","pull_request_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/LaunchAcademy/char_brawls/pulls/comments/18099813"},"html":{"href":"https://github.com/LaunchAcademy/char_brawls/pull/5#discussion_r18099813"},"pull_request":{"href":"https://api.github.com/repos/LaunchAcademy/char_brawls/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/LaunchAcademy/char_brawls/pulls/5","id":21732232,"html_url":"https://github.com/LaunchAcademy/char_brawls/pull/5","diff_url":"https://github.com/LaunchAcademy/char_brawls/pull/5.diff","patch_url":"https://github.com/LaunchAcademy/char_brawls/pull/5.patch","issue_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/issues/5","number":5,"state":"open","locked":false,"title":"Added matchup associations, review, views, and mo!","user":{"login":"foglabs","id":8140840,"avatar_url":"https://avatars.githubusercontent.com/u/8140840?v=2","gravatar_id":"","url":"https://api.github.com/users/foglabs","html_url":"https://github.com/foglabs","followers_url":"https://api.github.com/users/foglabs/followers","following_url":"https://api.github.com/users/foglabs/following{/other_user}","gists_url":"https://api.github.com/users/foglabs/gists{/gist_id}","starred_url":"https://api.github.com/users/foglabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foglabs/subscriptions","organizations_url":"https://api.github.com/users/foglabs/orgs","repos_url":"https://api.github.com/users/foglabs/repos","events_url":"https://api.github.com/users/foglabs/events{/privacy}","received_events_url":"https://api.github.com/users/foglabs/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-09-24T17:56:51Z","updated_at":"2014-09-26T16:48:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d7e3a6e7374529cbd52180aad74f31c49707bdce","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/pulls/5/commits","review_comments_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/pulls/5/comments","review_comment_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/pulls/comments/{number}","comments_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/issues/5/comments","statuses_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/statuses/6960d54847dd68aab97af55fed1a54255dbf200f","head":{"label":"LaunchAcademy:AddMatchupsSuperSwag","ref":"AddMatchupsSuperSwag","sha":"6960d54847dd68aab97af55fed1a54255dbf200f","user":{"login":"LaunchAcademy","id":3612691,"avatar_url":"https://avatars.githubusercontent.com/u/3612691?v=2","gravatar_id":"","url":"https://api.github.com/users/LaunchAcademy","html_url":"https://github.com/LaunchAcademy","followers_url":"https://api.github.com/users/LaunchAcademy/followers","following_url":"https://api.github.com/users/LaunchAcademy/following{/other_user}","gists_url":"https://api.github.com/users/LaunchAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/LaunchAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaunchAcademy/subscriptions","organizations_url":"https://api.github.com/users/LaunchAcademy/orgs","repos_url":"https://api.github.com/users/LaunchAcademy/repos","events_url":"https://api.github.com/users/LaunchAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/LaunchAcademy/received_events","type":"Organization","site_admin":false},"repo":{"id":24338355,"name":"char_brawls","full_name":"LaunchAcademy/char_brawls","owner":{"login":"LaunchAcademy","id":3612691,"avatar_url":"https://avatars.githubusercontent.com/u/3612691?v=2","gravatar_id":"","url":"https://api.github.com/users/LaunchAcademy","html_url":"https://github.com/LaunchAcademy","followers_url":"https://api.github.com/users/LaunchAcademy/followers","following_url":"https://api.github.com/users/LaunchAcademy/following{/other_user}","gists_url":"https://api.github.com/users/LaunchAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/LaunchAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaunchAcademy/subscriptions","organizations_url":"https://api.github.com/users/LaunchAcademy/orgs","repos_url":"https://api.github.com/users/LaunchAcademy/repos","events_url":"https://api.github.com/users/LaunchAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/LaunchAcademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LaunchAcademy/char_brawls","description":"A Pokemon character battling site!","fork":false,"url":"https://api.github.com/repos/LaunchAcademy/char_brawls","forks_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/forks","keys_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/teams","hooks_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/hooks","issue_events_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/issues/events{/number}","events_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/events","assignees_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/assignees{/user}","branches_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/branches{/branch}","tags_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/tags","blobs_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/git/refs{/sha}","trees_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/statuses/{sha}","languages_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/languages","stargazers_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/stargazers","contributors_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/contributors","subscribers_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/subscribers","subscription_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/subscription","commits_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/commits{/sha}","git_commits_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/git/commits{/sha}","comments_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/comments{/number}","issue_comment_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/issues/comments/{number}","contents_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/contents/{+path}","compare_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/merges","archive_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/downloads","issues_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/issues{/number}","pulls_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/pulls{/number}","milestones_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/milestones{/number}","notifications_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/labels{/name}","releases_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/releases{/id}","created_at":"2014-09-22T17:34:40Z","updated_at":"2014-09-23T20:03:22Z","pushed_at":"2014-09-26T16:48:41Z","git_url":"git://github.com/LaunchAcademy/char_brawls.git","ssh_url":"git@github.com:LaunchAcademy/char_brawls.git","clone_url":"https://github.com/LaunchAcademy/char_brawls.git","svn_url":"https://github.com/LaunchAcademy/char_brawls","homepage":null,"size":690,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":0,"default_branch":"master"}},"base":{"label":"LaunchAcademy:master","ref":"master","sha":"420c6d687c65df4dbe0981836274ebc467b0ee61","user":{"login":"LaunchAcademy","id":3612691,"avatar_url":"https://avatars.githubusercontent.com/u/3612691?v=2","gravatar_id":"","url":"https://api.github.com/users/LaunchAcademy","html_url":"https://github.com/LaunchAcademy","followers_url":"https://api.github.com/users/LaunchAcademy/followers","following_url":"https://api.github.com/users/LaunchAcademy/following{/other_user}","gists_url":"https://api.github.com/users/LaunchAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/LaunchAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaunchAcademy/subscriptions","organizations_url":"https://api.github.com/users/LaunchAcademy/orgs","repos_url":"https://api.github.com/users/LaunchAcademy/repos","events_url":"https://api.github.com/users/LaunchAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/LaunchAcademy/received_events","type":"Organization","site_admin":false},"repo":{"id":24338355,"name":"char_brawls","full_name":"LaunchAcademy/char_brawls","owner":{"login":"LaunchAcademy","id":3612691,"avatar_url":"https://avatars.githubusercontent.com/u/3612691?v=2","gravatar_id":"","url":"https://api.github.com/users/LaunchAcademy","html_url":"https://github.com/LaunchAcademy","followers_url":"https://api.github.com/users/LaunchAcademy/followers","following_url":"https://api.github.com/users/LaunchAcademy/following{/other_user}","gists_url":"https://api.github.com/users/LaunchAcademy/gists{/gist_id}","starred_url":"https://api.github.com/users/LaunchAcademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaunchAcademy/subscriptions","organizations_url":"https://api.github.com/users/LaunchAcademy/orgs","repos_url":"https://api.github.com/users/LaunchAcademy/repos","events_url":"https://api.github.com/users/LaunchAcademy/events{/privacy}","received_events_url":"https://api.github.com/users/LaunchAcademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LaunchAcademy/char_brawls","description":"A Pokemon character battling site!","fork":false,"url":"https://api.github.com/repos/LaunchAcademy/char_brawls","forks_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/forks","keys_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/teams","hooks_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/hooks","issue_events_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/issues/events{/number}","events_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/events","assignees_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/assignees{/user}","branches_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/branches{/branch}","tags_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/tags","blobs_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/git/refs{/sha}","trees_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/statuses/{sha}","languages_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/languages","stargazers_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/stargazers","contributors_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/contributors","subscribers_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/subscribers","subscription_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/subscription","commits_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/commits{/sha}","git_commits_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/git/commits{/sha}","comments_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/comments{/number}","issue_comment_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/issues/comments/{number}","contents_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/contents/{+path}","compare_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/merges","archive_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/downloads","issues_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/issues{/number}","pulls_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/pulls{/number}","milestones_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/milestones{/number}","notifications_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/labels{/name}","releases_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/releases{/id}","created_at":"2014-09-22T17:34:40Z","updated_at":"2014-09-23T20:03:22Z","pushed_at":"2014-09-26T16:48:41Z","git_url":"git://github.com/LaunchAcademy/char_brawls.git","ssh_url":"git@github.com:LaunchAcademy/char_brawls.git","clone_url":"https://github.com/LaunchAcademy/char_brawls.git","svn_url":"https://github.com/LaunchAcademy/char_brawls","homepage":null,"size":690,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LaunchAcademy/char_brawls/pulls/5"},"html":{"href":"https://github.com/LaunchAcademy/char_brawls/pull/5"},"issue":{"href":"https://api.github.com/repos/LaunchAcademy/char_brawls/issues/5"},"comments":{"href":"https://api.github.com/repos/LaunchAcademy/char_brawls/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/LaunchAcademy/char_brawls/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/LaunchAcademy/char_brawls/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/LaunchAcademy/char_brawls/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/LaunchAcademy/char_brawls/statuses/6960d54847dd68aab97af55fed1a54255dbf200f"}}}}