{"action":"created","comment":{"url":"https://api.github.com/repos/paulghaddad/assessment_questions/pulls/comments/145555924","pull_request_review_id":70373616,"id":145555924,"diff_hunk":"@@ -21,4 +22,63 @@\n       expect(response_body.size).to eq(4000)\n     end\n   end\n+\n+  describe \"#show\" do\n+    it \"returns a single question\" do\n+      get \"/questions/1\"\n+\n+      response_body = JSON.parse(last_response.body)\n+\n+      expect(last_response.status).to eq(200)\n+      expect(response_body).to include(\"id\"=>1,\n+                                       \"title\"=>\"What is 1754 - 3936?\",\n+                                       \"answer\"=>\"-2182\",\n+                                       \"distractors\"=> %w(3176 6529 6903))\n+    end\n+  end\n+\n+  describe \"#create\" do\n+    it \"returns a single question\" do\n+      post \"/questions\", new_question_params\n+\n+      response_body = JSON.parse(last_response.body)\n+\n+      expect(last_response.status).to eq(201)\n+      expect(response_body).to include(\"id\"=>4001,\n+                                       \"title\"=>\"What's your favorite color?\",\n+                                       \"answer\"=>\"red\",\n+                                       \"distractors\"=> %w(orange green blue))\n+    end\n+  end\n+\n+  describe \"#edit\" do\n+    it \"edits a single question\" do\n+      patch \"/questions/1\", updated_question_params\n+\n+      response_body = JSON.parse(last_response.body)\n+\n+      expect(last_response.status).to eq(200)\n+      expect(response_body).to include(\"id\"=>1,\n+                                       \"title\"=>\"What's an update?\",\n+                                       \"answer\"=>\"Changing a Question\",\n+                                       \"distractors\"=> %w(3176 6529 6903))","path":"spec/main_spec.rb","position":51,"original_position":51,"commit_id":"059c5dbc77639fe18b221fe88cf039afe9ea2ac7","original_commit_id":"059c5dbc77639fe18b221fe88cf039afe9ea2ac7","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","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":"Surrounding space missing for operator =>.","created_at":"2017-10-18T22:05:31Z","updated_at":"2017-10-18T22:05:32Z","html_url":"https://github.com/paulghaddad/assessment_questions/pull/7#discussion_r145555924","pull_request_url":"https://api.github.com/repos/paulghaddad/assessment_questions/pulls/7","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/paulghaddad/assessment_questions/pulls/comments/145555924"},"html":{"href":"https://github.com/paulghaddad/assessment_questions/pull/7#discussion_r145555924"},"pull_request":{"href":"https://api.github.com/repos/paulghaddad/assessment_questions/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/paulghaddad/assessment_questions/pulls/7","id":147422029,"html_url":"https://github.com/paulghaddad/assessment_questions/pull/7","diff_url":"https://github.com/paulghaddad/assessment_questions/pull/7.diff","patch_url":"https://github.com/paulghaddad/assessment_questions/pull/7.patch","issue_url":"https://api.github.com/repos/paulghaddad/assessment_questions/issues/7","number":7,"state":"open","locked":false,"title":"Show create edit points","user":{"login":"paulghaddad","id":1412714,"avatar_url":"https://avatars0.githubusercontent.com/u/1412714?v=4","gravatar_id":"","url":"https://api.github.com/users/paulghaddad","html_url":"https://github.com/paulghaddad","followers_url":"https://api.github.com/users/paulghaddad/followers","following_url":"https://api.github.com/users/paulghaddad/following{/other_user}","gists_url":"https://api.github.com/users/paulghaddad/gists{/gist_id}","starred_url":"https://api.github.com/users/paulghaddad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulghaddad/subscriptions","organizations_url":"https://api.github.com/users/paulghaddad/orgs","repos_url":"https://api.github.com/users/paulghaddad/repos","events_url":"https://api.github.com/users/paulghaddad/events{/privacy}","received_events_url":"https://api.github.com/users/paulghaddad/received_events","type":"User","site_admin":false},"body":"FInish out endpoints for API: Show, Create, Update","created_at":"2017-10-18T22:05:21Z","updated_at":"2017-10-18T22:05:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c84d0b54aaf4ab8454c4217e7389418f9420e7f1","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/paulghaddad/assessment_questions/pulls/7/commits","review_comments_url":"https://api.github.com/repos/paulghaddad/assessment_questions/pulls/7/comments","review_comment_url":"https://api.github.com/repos/paulghaddad/assessment_questions/pulls/comments{/number}","comments_url":"https://api.github.com/repos/paulghaddad/assessment_questions/issues/7/comments","statuses_url":"https://api.github.com/repos/paulghaddad/assessment_questions/statuses/059c5dbc77639fe18b221fe88cf039afe9ea2ac7","head":{"label":"paulghaddad:show-create-edit-points","ref":"show-create-edit-points","sha":"059c5dbc77639fe18b221fe88cf039afe9ea2ac7","user":{"login":"paulghaddad","id":1412714,"avatar_url":"https://avatars0.githubusercontent.com/u/1412714?v=4","gravatar_id":"","url":"https://api.github.com/users/paulghaddad","html_url":"https://github.com/paulghaddad","followers_url":"https://api.github.com/users/paulghaddad/followers","following_url":"https://api.github.com/users/paulghaddad/following{/other_user}","gists_url":"https://api.github.com/users/paulghaddad/gists{/gist_id}","starred_url":"https://api.github.com/users/paulghaddad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulghaddad/subscriptions","organizations_url":"https://api.github.com/users/paulghaddad/orgs","repos_url":"https://api.github.com/users/paulghaddad/repos","events_url":"https://api.github.com/users/paulghaddad/events{/privacy}","received_events_url":"https://api.github.com/users/paulghaddad/received_events","type":"User","site_admin":false},"repo":{"id":106959159,"name":"assessment_questions","full_name":"paulghaddad/assessment_questions","owner":{"login":"paulghaddad","id":1412714,"avatar_url":"https://avatars0.githubusercontent.com/u/1412714?v=4","gravatar_id":"","url":"https://api.github.com/users/paulghaddad","html_url":"https://github.com/paulghaddad","followers_url":"https://api.github.com/users/paulghaddad/followers","following_url":"https://api.github.com/users/paulghaddad/following{/other_user}","gists_url":"https://api.github.com/users/paulghaddad/gists{/gist_id}","starred_url":"https://api.github.com/users/paulghaddad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulghaddad/subscriptions","organizations_url":"https://api.github.com/users/paulghaddad/orgs","repos_url":"https://api.github.com/users/paulghaddad/repos","events_url":"https://api.github.com/users/paulghaddad/events{/privacy}","received_events_url":"https://api.github.com/users/paulghaddad/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/paulghaddad/assessment_questions","description":"A Repository of Questions for Pluralsight Assessments","fork":false,"url":"https://api.github.com/repos/paulghaddad/assessment_questions","forks_url":"https://api.github.com/repos/paulghaddad/assessment_questions/forks","keys_url":"https://api.github.com/repos/paulghaddad/assessment_questions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paulghaddad/assessment_questions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paulghaddad/assessment_questions/teams","hooks_url":"https://api.github.com/repos/paulghaddad/assessment_questions/hooks","issue_events_url":"https://api.github.com/repos/paulghaddad/assessment_questions/issues/events{/number}","events_url":"https://api.github.com/repos/paulghaddad/assessment_questions/events","assignees_url":"https://api.github.com/repos/paulghaddad/assessment_questions/assignees{/user}","branches_url":"https://api.github.com/repos/paulghaddad/assessment_questions/branches{/branch}","tags_url":"https://api.github.com/repos/paulghaddad/assessment_questions/tags","blobs_url":"https://api.github.com/repos/paulghaddad/assessment_questions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paulghaddad/assessment_questions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paulghaddad/assessment_questions/git/refs{/sha}","trees_url":"https://api.github.com/repos/paulghaddad/assessment_questions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paulghaddad/assessment_questions/statuses/{sha}","languages_url":"https://api.github.com/repos/paulghaddad/assessment_questions/languages","stargazers_url":"https://api.github.com/repos/paulghaddad/assessment_questions/stargazers","contributors_url":"https://api.github.com/repos/paulghaddad/assessment_questions/contributors","subscribers_url":"https://api.github.com/repos/paulghaddad/assessment_questions/subscribers","subscription_url":"https://api.github.com/repos/paulghaddad/assessment_questions/subscription","commits_url":"https://api.github.com/repos/paulghaddad/assessment_questions/commits{/sha}","git_commits_url":"https://api.github.com/repos/paulghaddad/assessment_questions/git/commits{/sha}","comments_url":"https://api.github.com/repos/paulghaddad/assessment_questions/comments{/number}","issue_comment_url":"https://api.github.com/repos/paulghaddad/assessment_questions/issues/comments{/number}","contents_url":"https://api.github.com/repos/paulghaddad/assessment_questions/contents/{+path}","compare_url":"https://api.github.com/repos/paulghaddad/assessment_questions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paulghaddad/assessment_questions/merges","archive_url":"https://api.github.com/repos/paulghaddad/assessment_questions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paulghaddad/assessment_questions/downloads","issues_url":"https://api.github.com/repos/paulghaddad/assessment_questions/issues{/number}","pulls_url":"https://api.github.com/repos/paulghaddad/assessment_questions/pulls{/number}","milestones_url":"https://api.github.com/repos/paulghaddad/assessment_questions/milestones{/number}","notifications_url":"https://api.github.com/repos/paulghaddad/assessment_questions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paulghaddad/assessment_questions/labels{/name}","releases_url":"https://api.github.com/repos/paulghaddad/assessment_questions/releases{/id}","deployments_url":"https://api.github.com/repos/paulghaddad/assessment_questions/deployments","created_at":"2017-10-14T20:08:03Z","updated_at":"2017-10-15T19:52:18Z","pushed_at":"2017-10-18T22:05:21Z","git_url":"git://github.com/paulghaddad/assessment_questions.git","ssh_url":"git@github.com:paulghaddad/assessment_questions.git","clone_url":"https://github.com/paulghaddad/assessment_questions.git","svn_url":"https://github.com/paulghaddad/assessment_questions","homepage":null,"size":525,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":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":"paulghaddad:master","ref":"master","sha":"9e9aaa906ac82f72d05d4e38ee9e5946c640d458","user":{"login":"paulghaddad","id":1412714,"avatar_url":"https://avatars0.githubusercontent.com/u/1412714?v=4","gravatar_id":"","url":"https://api.github.com/users/paulghaddad","html_url":"https://github.com/paulghaddad","followers_url":"https://api.github.com/users/paulghaddad/followers","following_url":"https://api.github.com/users/paulghaddad/following{/other_user}","gists_url":"https://api.github.com/users/paulghaddad/gists{/gist_id}","starred_url":"https://api.github.com/users/paulghaddad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulghaddad/subscriptions","organizations_url":"https://api.github.com/users/paulghaddad/orgs","repos_url":"https://api.github.com/users/paulghaddad/repos","events_url":"https://api.github.com/users/paulghaddad/events{/privacy}","received_events_url":"https://api.github.com/users/paulghaddad/received_events","type":"User","site_admin":false},"repo":{"id":106959159,"name":"assessment_questions","full_name":"paulghaddad/assessment_questions","owner":{"login":"paulghaddad","id":1412714,"avatar_url":"https://avatars0.githubusercontent.com/u/1412714?v=4","gravatar_id":"","url":"https://api.github.com/users/paulghaddad","html_url":"https://github.com/paulghaddad","followers_url":"https://api.github.com/users/paulghaddad/followers","following_url":"https://api.github.com/users/paulghaddad/following{/other_user}","gists_url":"https://api.github.com/users/paulghaddad/gists{/gist_id}","starred_url":"https://api.github.com/users/paulghaddad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulghaddad/subscriptions","organizations_url":"https://api.github.com/users/paulghaddad/orgs","repos_url":"https://api.github.com/users/paulghaddad/repos","events_url":"https://api.github.com/users/paulghaddad/events{/privacy}","received_events_url":"https://api.github.com/users/paulghaddad/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/paulghaddad/assessment_questions","description":"A Repository of Questions for Pluralsight Assessments","fork":false,"url":"https://api.github.com/repos/paulghaddad/assessment_questions","forks_url":"https://api.github.com/repos/paulghaddad/assessment_questions/forks","keys_url":"https://api.github.com/repos/paulghaddad/assessment_questions/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paulghaddad/assessment_questions/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paulghaddad/assessment_questions/teams","hooks_url":"https://api.github.com/repos/paulghaddad/assessment_questions/hooks","issue_events_url":"https://api.github.com/repos/paulghaddad/assessment_questions/issues/events{/number}","events_url":"https://api.github.com/repos/paulghaddad/assessment_questions/events","assignees_url":"https://api.github.com/repos/paulghaddad/assessment_questions/assignees{/user}","branches_url":"https://api.github.com/repos/paulghaddad/assessment_questions/branches{/branch}","tags_url":"https://api.github.com/repos/paulghaddad/assessment_questions/tags","blobs_url":"https://api.github.com/repos/paulghaddad/assessment_questions/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paulghaddad/assessment_questions/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paulghaddad/assessment_questions/git/refs{/sha}","trees_url":"https://api.github.com/repos/paulghaddad/assessment_questions/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paulghaddad/assessment_questions/statuses/{sha}","languages_url":"https://api.github.com/repos/paulghaddad/assessment_questions/languages","stargazers_url":"https://api.github.com/repos/paulghaddad/assessment_questions/stargazers","contributors_url":"https://api.github.com/repos/paulghaddad/assessment_questions/contributors","subscribers_url":"https://api.github.com/repos/paulghaddad/assessment_questions/subscribers","subscription_url":"https://api.github.com/repos/paulghaddad/assessment_questions/subscription","commits_url":"https://api.github.com/repos/paulghaddad/assessment_questions/commits{/sha}","git_commits_url":"https://api.github.com/repos/paulghaddad/assessment_questions/git/commits{/sha}","comments_url":"https://api.github.com/repos/paulghaddad/assessment_questions/comments{/number}","issue_comment_url":"https://api.github.com/repos/paulghaddad/assessment_questions/issues/comments{/number}","contents_url":"https://api.github.com/repos/paulghaddad/assessment_questions/contents/{+path}","compare_url":"https://api.github.com/repos/paulghaddad/assessment_questions/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paulghaddad/assessment_questions/merges","archive_url":"https://api.github.com/repos/paulghaddad/assessment_questions/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paulghaddad/assessment_questions/downloads","issues_url":"https://api.github.com/repos/paulghaddad/assessment_questions/issues{/number}","pulls_url":"https://api.github.com/repos/paulghaddad/assessment_questions/pulls{/number}","milestones_url":"https://api.github.com/repos/paulghaddad/assessment_questions/milestones{/number}","notifications_url":"https://api.github.com/repos/paulghaddad/assessment_questions/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paulghaddad/assessment_questions/labels{/name}","releases_url":"https://api.github.com/repos/paulghaddad/assessment_questions/releases{/id}","deployments_url":"https://api.github.com/repos/paulghaddad/assessment_questions/deployments","created_at":"2017-10-14T20:08:03Z","updated_at":"2017-10-15T19:52:18Z","pushed_at":"2017-10-18T22:05:21Z","git_url":"git://github.com/paulghaddad/assessment_questions.git","ssh_url":"git@github.com:paulghaddad/assessment_questions.git","clone_url":"https://github.com/paulghaddad/assessment_questions.git","svn_url":"https://github.com/paulghaddad/assessment_questions","homepage":null,"size":525,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":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/paulghaddad/assessment_questions/pulls/7"},"html":{"href":"https://github.com/paulghaddad/assessment_questions/pull/7"},"issue":{"href":"https://api.github.com/repos/paulghaddad/assessment_questions/issues/7"},"comments":{"href":"https://api.github.com/repos/paulghaddad/assessment_questions/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/paulghaddad/assessment_questions/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/paulghaddad/assessment_questions/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/paulghaddad/assessment_questions/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/paulghaddad/assessment_questions/statuses/059c5dbc77639fe18b221fe88cf039afe9ea2ac7"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}