{"action":"created","comment":{"url":"https://api.github.com/repos/jraaaaanger/StandDown/pulls/comments/72910393","id":72910393,"diff_hunk":"@@ -0,0 +1,62 @@\n+require 'rails_helper'\n+\n+describe \"Answers API\" do\n+  describe \"GET /api/teams/:team_id/answers\" do\n+    it 'successfully gets a response from the API controller' do\n+      team = FactoryGirl.create :team\n+      user = FactoryGirl.create :user, team: team\n+      answer = FactoryGirl.create :answer, user: user\n+\n+      get \"/api/teams/#{team.id}/answers.json\", {}, { \"Accept\" => \"application/json\" }\n+\n+      expect(response.status).to eq 200\n+    end\n+\n+    it \"returns JSON answers in specific order\" do\n+      team = FactoryGirl.create :team\n+      user = FactoryGirl.create :user, team: team\n+      answer = FactoryGirl.create :answer, user: user\n+\n+      get \"/api/teams/#{team.id}/answers.json\", {}, { \"Accept\" => \"application/json\" }\n+\n+      json_response = JSON.parse(response.body)\n+      answers = json_response[\"answers\"]\n+      user_hash = answers[0][\"user\"]\n+      body = answers[0][\"body\"]\n+\n+      expect(json_response).to have_key \"answers\"\n+\n+      expect(answers[0]).to have_key \"body\"","path":"spec/requests/answers_spec.rb","position":29,"original_position":29,"commit_id":"a28a4e470d093e9d584c7075ee981c79a792cd46","original_commit_id":"a28a4e470d093e9d584c7075ee981c79a792cd46","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Prefer single-quoted strings when you don't need string interpolation or special symbols.","created_at":"2016-07-31T20:34:43Z","updated_at":"2016-07-31T20:34:43Z","html_url":"https://github.com/jraaaaanger/StandDown/pull/30#discussion_r72910393","pull_request_url":"https://api.github.com/repos/jraaaaanger/StandDown/pulls/30","_links":{"self":{"href":"https://api.github.com/repos/jraaaaanger/StandDown/pulls/comments/72910393"},"html":{"href":"https://github.com/jraaaaanger/StandDown/pull/30#discussion_r72910393"},"pull_request":{"href":"https://api.github.com/repos/jraaaaanger/StandDown/pulls/30"}}},"pull_request":{"url":"https://api.github.com/repos/jraaaaanger/StandDown/pulls/30","id":79495224,"html_url":"https://github.com/jraaaaanger/StandDown/pull/30","diff_url":"https://github.com/jraaaaanger/StandDown/pull/30.diff","patch_url":"https://github.com/jraaaaanger/StandDown/pull/30.patch","issue_url":"https://api.github.com/repos/jraaaaanger/StandDown/issues/30","number":30,"state":"open","locked":false,"title":"updates with api::answers spec","user":{"login":"jraaaaanger","id":17931975,"avatar_url":"https://avatars.githubusercontent.com/u/17931975?v=3","gravatar_id":"","url":"https://api.github.com/users/jraaaaanger","html_url":"https://github.com/jraaaaanger","followers_url":"https://api.github.com/users/jraaaaanger/followers","following_url":"https://api.github.com/users/jraaaaanger/following{/other_user}","gists_url":"https://api.github.com/users/jraaaaanger/gists{/gist_id}","starred_url":"https://api.github.com/users/jraaaaanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jraaaaanger/subscriptions","organizations_url":"https://api.github.com/users/jraaaaanger/orgs","repos_url":"https://api.github.com/users/jraaaaanger/repos","events_url":"https://api.github.com/users/jraaaaanger/events{/privacy}","received_events_url":"https://api.github.com/users/jraaaaanger/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-07-31T20:34:39Z","updated_at":"2016-07-31T20:34:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2940761334fb7704adb5a900ca35722a97e69f09","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/jraaaaanger/StandDown/pulls/30/commits","review_comments_url":"https://api.github.com/repos/jraaaaanger/StandDown/pulls/30/comments","review_comment_url":"https://api.github.com/repos/jraaaaanger/StandDown/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jraaaaanger/StandDown/issues/30/comments","statuses_url":"https://api.github.com/repos/jraaaaanger/StandDown/statuses/a28a4e470d093e9d584c7075ee981c79a792cd46","head":{"label":"jraaaaanger:capybara-api-testing","ref":"capybara-api-testing","sha":"a28a4e470d093e9d584c7075ee981c79a792cd46","user":{"login":"jraaaaanger","id":17931975,"avatar_url":"https://avatars.githubusercontent.com/u/17931975?v=3","gravatar_id":"","url":"https://api.github.com/users/jraaaaanger","html_url":"https://github.com/jraaaaanger","followers_url":"https://api.github.com/users/jraaaaanger/followers","following_url":"https://api.github.com/users/jraaaaanger/following{/other_user}","gists_url":"https://api.github.com/users/jraaaaanger/gists{/gist_id}","starred_url":"https://api.github.com/users/jraaaaanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jraaaaanger/subscriptions","organizations_url":"https://api.github.com/users/jraaaaanger/orgs","repos_url":"https://api.github.com/users/jraaaaanger/repos","events_url":"https://api.github.com/users/jraaaaanger/events{/privacy}","received_events_url":"https://api.github.com/users/jraaaaanger/received_events","type":"User","site_admin":false},"repo":{"id":63615222,"name":"StandDown","full_name":"jraaaaanger/StandDown","owner":{"login":"jraaaaanger","id":17931975,"avatar_url":"https://avatars.githubusercontent.com/u/17931975?v=3","gravatar_id":"","url":"https://api.github.com/users/jraaaaanger","html_url":"https://github.com/jraaaaanger","followers_url":"https://api.github.com/users/jraaaaanger/followers","following_url":"https://api.github.com/users/jraaaaanger/following{/other_user}","gists_url":"https://api.github.com/users/jraaaaanger/gists{/gist_id}","starred_url":"https://api.github.com/users/jraaaaanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jraaaaanger/subscriptions","organizations_url":"https://api.github.com/users/jraaaaanger/orgs","repos_url":"https://api.github.com/users/jraaaaanger/repos","events_url":"https://api.github.com/users/jraaaaanger/events{/privacy}","received_events_url":"https://api.github.com/users/jraaaaanger/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jraaaaanger/StandDown","description":"A web app for performing asynchronous standup meetings around the world","fork":false,"url":"https://api.github.com/repos/jraaaaanger/StandDown","forks_url":"https://api.github.com/repos/jraaaaanger/StandDown/forks","keys_url":"https://api.github.com/repos/jraaaaanger/StandDown/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jraaaaanger/StandDown/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jraaaaanger/StandDown/teams","hooks_url":"https://api.github.com/repos/jraaaaanger/StandDown/hooks","issue_events_url":"https://api.github.com/repos/jraaaaanger/StandDown/issues/events{/number}","events_url":"https://api.github.com/repos/jraaaaanger/StandDown/events","assignees_url":"https://api.github.com/repos/jraaaaanger/StandDown/assignees{/user}","branches_url":"https://api.github.com/repos/jraaaaanger/StandDown/branches{/branch}","tags_url":"https://api.github.com/repos/jraaaaanger/StandDown/tags","blobs_url":"https://api.github.com/repos/jraaaaanger/StandDown/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jraaaaanger/StandDown/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jraaaaanger/StandDown/git/refs{/sha}","trees_url":"https://api.github.com/repos/jraaaaanger/StandDown/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jraaaaanger/StandDown/statuses/{sha}","languages_url":"https://api.github.com/repos/jraaaaanger/StandDown/languages","stargazers_url":"https://api.github.com/repos/jraaaaanger/StandDown/stargazers","contributors_url":"https://api.github.com/repos/jraaaaanger/StandDown/contributors","subscribers_url":"https://api.github.com/repos/jraaaaanger/StandDown/subscribers","subscription_url":"https://api.github.com/repos/jraaaaanger/StandDown/subscription","commits_url":"https://api.github.com/repos/jraaaaanger/StandDown/commits{/sha}","git_commits_url":"https://api.github.com/repos/jraaaaanger/StandDown/git/commits{/sha}","comments_url":"https://api.github.com/repos/jraaaaanger/StandDown/comments{/number}","issue_comment_url":"https://api.github.com/repos/jraaaaanger/StandDown/issues/comments{/number}","contents_url":"https://api.github.com/repos/jraaaaanger/StandDown/contents/{+path}","compare_url":"https://api.github.com/repos/jraaaaanger/StandDown/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jraaaaanger/StandDown/merges","archive_url":"https://api.github.com/repos/jraaaaanger/StandDown/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jraaaaanger/StandDown/downloads","issues_url":"https://api.github.com/repos/jraaaaanger/StandDown/issues{/number}","pulls_url":"https://api.github.com/repos/jraaaaanger/StandDown/pulls{/number}","milestones_url":"https://api.github.com/repos/jraaaaanger/StandDown/milestones{/number}","notifications_url":"https://api.github.com/repos/jraaaaanger/StandDown/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jraaaaanger/StandDown/labels{/name}","releases_url":"https://api.github.com/repos/jraaaaanger/StandDown/releases{/id}","deployments_url":"https://api.github.com/repos/jraaaaanger/StandDown/deployments","created_at":"2016-07-18T15:33:29Z","updated_at":"2016-07-30T20:03:57Z","pushed_at":"2016-07-31T20:34:40Z","git_url":"git://github.com/jraaaaanger/StandDown.git","ssh_url":"git@github.com:jraaaaanger/StandDown.git","clone_url":"https://github.com/jraaaaanger/StandDown.git","svn_url":"https://github.com/jraaaaanger/StandDown","homepage":"http://standdown.herokuapp.com","size":210,"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":"jraaaaanger:master","ref":"master","sha":"6e1b1479d9e9d1faa7befbad8671671e26b459d7","user":{"login":"jraaaaanger","id":17931975,"avatar_url":"https://avatars.githubusercontent.com/u/17931975?v=3","gravatar_id":"","url":"https://api.github.com/users/jraaaaanger","html_url":"https://github.com/jraaaaanger","followers_url":"https://api.github.com/users/jraaaaanger/followers","following_url":"https://api.github.com/users/jraaaaanger/following{/other_user}","gists_url":"https://api.github.com/users/jraaaaanger/gists{/gist_id}","starred_url":"https://api.github.com/users/jraaaaanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jraaaaanger/subscriptions","organizations_url":"https://api.github.com/users/jraaaaanger/orgs","repos_url":"https://api.github.com/users/jraaaaanger/repos","events_url":"https://api.github.com/users/jraaaaanger/events{/privacy}","received_events_url":"https://api.github.com/users/jraaaaanger/received_events","type":"User","site_admin":false},"repo":{"id":63615222,"name":"StandDown","full_name":"jraaaaanger/StandDown","owner":{"login":"jraaaaanger","id":17931975,"avatar_url":"https://avatars.githubusercontent.com/u/17931975?v=3","gravatar_id":"","url":"https://api.github.com/users/jraaaaanger","html_url":"https://github.com/jraaaaanger","followers_url":"https://api.github.com/users/jraaaaanger/followers","following_url":"https://api.github.com/users/jraaaaanger/following{/other_user}","gists_url":"https://api.github.com/users/jraaaaanger/gists{/gist_id}","starred_url":"https://api.github.com/users/jraaaaanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jraaaaanger/subscriptions","organizations_url":"https://api.github.com/users/jraaaaanger/orgs","repos_url":"https://api.github.com/users/jraaaaanger/repos","events_url":"https://api.github.com/users/jraaaaanger/events{/privacy}","received_events_url":"https://api.github.com/users/jraaaaanger/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jraaaaanger/StandDown","description":"A web app for performing asynchronous standup meetings around the world","fork":false,"url":"https://api.github.com/repos/jraaaaanger/StandDown","forks_url":"https://api.github.com/repos/jraaaaanger/StandDown/forks","keys_url":"https://api.github.com/repos/jraaaaanger/StandDown/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jraaaaanger/StandDown/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jraaaaanger/StandDown/teams","hooks_url":"https://api.github.com/repos/jraaaaanger/StandDown/hooks","issue_events_url":"https://api.github.com/repos/jraaaaanger/StandDown/issues/events{/number}","events_url":"https://api.github.com/repos/jraaaaanger/StandDown/events","assignees_url":"https://api.github.com/repos/jraaaaanger/StandDown/assignees{/user}","branches_url":"https://api.github.com/repos/jraaaaanger/StandDown/branches{/branch}","tags_url":"https://api.github.com/repos/jraaaaanger/StandDown/tags","blobs_url":"https://api.github.com/repos/jraaaaanger/StandDown/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jraaaaanger/StandDown/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jraaaaanger/StandDown/git/refs{/sha}","trees_url":"https://api.github.com/repos/jraaaaanger/StandDown/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jraaaaanger/StandDown/statuses/{sha}","languages_url":"https://api.github.com/repos/jraaaaanger/StandDown/languages","stargazers_url":"https://api.github.com/repos/jraaaaanger/StandDown/stargazers","contributors_url":"https://api.github.com/repos/jraaaaanger/StandDown/contributors","subscribers_url":"https://api.github.com/repos/jraaaaanger/StandDown/subscribers","subscription_url":"https://api.github.com/repos/jraaaaanger/StandDown/subscription","commits_url":"https://api.github.com/repos/jraaaaanger/StandDown/commits{/sha}","git_commits_url":"https://api.github.com/repos/jraaaaanger/StandDown/git/commits{/sha}","comments_url":"https://api.github.com/repos/jraaaaanger/StandDown/comments{/number}","issue_comment_url":"https://api.github.com/repos/jraaaaanger/StandDown/issues/comments{/number}","contents_url":"https://api.github.com/repos/jraaaaanger/StandDown/contents/{+path}","compare_url":"https://api.github.com/repos/jraaaaanger/StandDown/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jraaaaanger/StandDown/merges","archive_url":"https://api.github.com/repos/jraaaaanger/StandDown/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jraaaaanger/StandDown/downloads","issues_url":"https://api.github.com/repos/jraaaaanger/StandDown/issues{/number}","pulls_url":"https://api.github.com/repos/jraaaaanger/StandDown/pulls{/number}","milestones_url":"https://api.github.com/repos/jraaaaanger/StandDown/milestones{/number}","notifications_url":"https://api.github.com/repos/jraaaaanger/StandDown/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jraaaaanger/StandDown/labels{/name}","releases_url":"https://api.github.com/repos/jraaaaanger/StandDown/releases{/id}","deployments_url":"https://api.github.com/repos/jraaaaanger/StandDown/deployments","created_at":"2016-07-18T15:33:29Z","updated_at":"2016-07-30T20:03:57Z","pushed_at":"2016-07-31T20:34:40Z","git_url":"git://github.com/jraaaaanger/StandDown.git","ssh_url":"git@github.com:jraaaaanger/StandDown.git","clone_url":"https://github.com/jraaaaanger/StandDown.git","svn_url":"https://github.com/jraaaaanger/StandDown","homepage":"http://standdown.herokuapp.com","size":210,"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/jraaaaanger/StandDown/pulls/30"},"html":{"href":"https://github.com/jraaaaanger/StandDown/pull/30"},"issue":{"href":"https://api.github.com/repos/jraaaaanger/StandDown/issues/30"},"comments":{"href":"https://api.github.com/repos/jraaaaanger/StandDown/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/jraaaaanger/StandDown/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/jraaaaanger/StandDown/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jraaaaanger/StandDown/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/jraaaaanger/StandDown/statuses/a28a4e470d093e9d584c7075ee981c79a792cd46"}}}}
{"actor":{"display_login":"houndci-bot"}}