GitHub PullRequestReviewCommentEvent at 2014-09-29 14:22:18
Repository: char_brawls
Actor: houndci
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/LaunchAcademy/char_brawls/pulls/comments/18156498","id":18156498,"diff_hunk":"@@ -0,0 +1,59 @@\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+      choose 'opinion_winner_id_' + matchup.character.id.to_s\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+      choose 'opinion_winner_id_' + matchup.character.id.to_s\n+      click_on \"Create Opinion\"\n+      expect(page).to have_content \"That opinion already exists!\"\n+  end\n+end","path":"spec/features/user_creates_review_spec.rb","position":49,"original_position":49,"commit_id":"658f3e2754044a69baccee54471bf1c2370c63eb","original_commit_id":"658f3e2754044a69baccee54471bf1c2370c63eb","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":"`end` at 49, 0 is not aligned with `context \"authenticated user\" do` at 8, 2","created_at":"2014-09-29T14:22:18Z","updated_at":"2014-09-29T14:22:18Z","html_url":"https://github.com/LaunchAcademy/char_brawls/pull/12#discussion_r18156498","pull_request_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/pulls/12","_links":{"self":{"href":"https://api.github.com/repos/LaunchAcademy/char_brawls/pulls/comments/18156498"},"html":{"href":"https://github.com/LaunchAcademy/char_brawls/pull/12#discussion_r18156498"},"pull_request":{"href":"https://api.github.com/repos/LaunchAcademy/char_brawls/pulls/12"}}},"pull_request":{"url":"https://api.github.com/repos/LaunchAcademy/char_brawls/pulls/12","id":21871351,"html_url":"https://github.com/LaunchAcademy/char_brawls/pull/12","diff_url":"https://github.com/LaunchAcademy/char_brawls/pull/12.diff","patch_url":"https://github.com/LaunchAcademy/char_brawls/pull/12.patch","issue_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/issues/12","number":12,"state":"open","locked":false,"title":"Addmin RFR! (this is our previous branch plus the admin and all passing tests :)  )","user":{"login":"Dgrady3","id":6283512,"avatar_url":"https://avatars.githubusercontent.com/u/6283512?v=2","gravatar_id":"","url":"https://api.github.com/users/Dgrady3","html_url":"https://github.com/Dgrady3","followers_url":"https://api.github.com/users/Dgrady3/followers","following_url":"https://api.github.com/users/Dgrady3/following{/other_user}","gists_url":"https://api.github.com/users/Dgrady3/gists{/gist_id}","starred_url":"https://api.github.com/users/Dgrady3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dgrady3/subscriptions","organizations_url":"https://api.github.com/users/Dgrady3/orgs","repos_url":"https://api.github.com/users/Dgrady3/repos","events_url":"https://api.github.com/users/Dgrady3/events{/privacy}","received_events_url":"https://api.github.com/users/Dgrady3/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-09-26T19:53:03Z","updated_at":"2014-09-29T14:22:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"36b032b97eef185c997c6c0562119b50e5dbaa7c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/pulls/12/commits","review_comments_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/pulls/12/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/12/comments","statuses_url":"https://api.github.com/repos/LaunchAcademy/char_brawls/statuses/658f3e2754044a69baccee54471bf1c2370c63eb","head":{"label":"LaunchAcademy:Addmin","ref":"Addmin","sha":"658f3e2754044a69baccee54471bf1c2370c63eb","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-29T14:22:08Z","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":7,"forks":2,"open_issues":7,"watchers":0,"default_branch":"master"}},"base":{"label":"LaunchAcademy:master","ref":"master","sha":"bd309b814e4575611d8bd37dbda090dd50edf365","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-29T14:22:08Z","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":7,"forks":2,"open_issues":7,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LaunchAcademy/char_brawls/pulls/12"},"html":{"href":"https://github.com/LaunchAcademy/char_brawls/pull/12"},"issue":{"href":"https://api.github.com/repos/LaunchAcademy/char_brawls/issues/12"},"comments":{"href":"https://api.github.com/repos/LaunchAcademy/char_brawls/issues/12/comments"},"review_comments":{"href":"https://api.github.com/repos/LaunchAcademy/char_brawls/pulls/12/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/12/commits"},"statuses":{"href":"https://api.github.com/repos/LaunchAcademy/char_brawls/statuses/658f3e2754044a69baccee54471bf1c2370c63eb"}}}}