{"action":"created","comment":{"url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/pulls/comments/25820806","id":25820806,"diff_hunk":"@@ -76,4 +76,15 @@\n       end\n     end\n   end\n+\n+  describe \"GET targeted\" do\n+    it \"returns a hash with a targeted legislator\" do\n+      legislator = FactoryGirl.create(:representative, :targeted)\n+\n+      get :targeted\n+      json_response = JSON.parse(response.body)\n+\n+      expect(json_response[0]['name']).to eq(legislator.name)","path":"spec/controllers/v1/legislators_controller_spec.rb","position":12,"original_position":12,"commit_id":"6450f87a6df9de60bec67b445b945a009329f95f","original_commit_id":"6450f87a6df9de60bec67b445b945a009329f95f","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":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2015-03-04T22:24:29Z","updated_at":"2015-03-04T22:24:29Z","html_url":"https://github.com/MayOneUS/mayday-2.0-backend/pull/23#discussion_r25820806","pull_request_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/pulls/comments/25820806"},"html":{"href":"https://github.com/MayOneUS/mayday-2.0-backend/pull/23#discussion_r25820806"},"pull_request":{"href":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/pulls/23","id":30511008,"html_url":"https://github.com/MayOneUS/mayday-2.0-backend/pull/23","diff_url":"https://github.com/MayOneUS/mayday-2.0-backend/pull/23.diff","patch_url":"https://github.com/MayOneUS/mayday-2.0-backend/pull/23.patch","issue_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/issues/23","number":23,"state":"open","locked":false,"title":"Add targeted legislators endpoint","user":{"login":"Rio517","id":14241,"avatar_url":"https://avatars.githubusercontent.com/u/14241?v=3","gravatar_id":"","url":"https://api.github.com/users/Rio517","html_url":"https://github.com/Rio517","followers_url":"https://api.github.com/users/Rio517/followers","following_url":"https://api.github.com/users/Rio517/following{/other_user}","gists_url":"https://api.github.com/users/Rio517/gists{/gist_id}","starred_url":"https://api.github.com/users/Rio517/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rio517/subscriptions","organizations_url":"https://api.github.com/users/Rio517/orgs","repos_url":"https://api.github.com/users/Rio517/repos","events_url":"https://api.github.com/users/Rio517/events{/privacy}","received_events_url":"https://api.github.com/users/Rio517/received_events","type":"User","site_admin":false},"body":"This creates and endpoint to use to populate the sidebar on \"The Plan\" page.","created_at":"2015-03-04T22:24:25Z","updated_at":"2015-03-04T22:24:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9fc8122a304ce3d57fedd27706238c8a918cffc1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/pulls/23/commits","review_comments_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/pulls/23/comments","review_comment_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/issues/23/comments","statuses_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/statuses/6450f87a6df9de60bec67b445b945a009329f95f","head":{"label":"MayOneUS:mf-legislators-targeted-endpoint","ref":"mf-legislators-targeted-endpoint","sha":"6450f87a6df9de60bec67b445b945a009329f95f","user":{"login":"MayOneUS","id":7469720,"avatar_url":"https://avatars.githubusercontent.com/u/7469720?v=3","gravatar_id":"","url":"https://api.github.com/users/MayOneUS","html_url":"https://github.com/MayOneUS","followers_url":"https://api.github.com/users/MayOneUS/followers","following_url":"https://api.github.com/users/MayOneUS/following{/other_user}","gists_url":"https://api.github.com/users/MayOneUS/gists{/gist_id}","starred_url":"https://api.github.com/users/MayOneUS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MayOneUS/subscriptions","organizations_url":"https://api.github.com/users/MayOneUS/orgs","repos_url":"https://api.github.com/users/MayOneUS/repos","events_url":"https://api.github.com/users/MayOneUS/events{/privacy}","received_events_url":"https://api.github.com/users/MayOneUS/received_events","type":"Organization","site_admin":false},"repo":{"id":29715441,"name":"mayday-2.0-backend","full_name":"MayOneUS/mayday-2.0-backend","owner":{"login":"MayOneUS","id":7469720,"avatar_url":"https://avatars.githubusercontent.com/u/7469720?v=3","gravatar_id":"","url":"https://api.github.com/users/MayOneUS","html_url":"https://github.com/MayOneUS","followers_url":"https://api.github.com/users/MayOneUS/followers","following_url":"https://api.github.com/users/MayOneUS/following{/other_user}","gists_url":"https://api.github.com/users/MayOneUS/gists{/gist_id}","starred_url":"https://api.github.com/users/MayOneUS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MayOneUS/subscriptions","organizations_url":"https://api.github.com/users/MayOneUS/orgs","repos_url":"https://api.github.com/users/MayOneUS/repos","events_url":"https://api.github.com/users/MayOneUS/events{/privacy}","received_events_url":"https://api.github.com/users/MayOneUS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MayOneUS/mayday-2.0-backend","description":"The API-driven next generation MADAY.us site","fork":false,"url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend","forks_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/forks","keys_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/teams","hooks_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/hooks","issue_events_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/issues/events{/number}","events_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/events","assignees_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/assignees{/user}","branches_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/branches{/branch}","tags_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/tags","blobs_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/languages","stargazers_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/stargazers","contributors_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/contributors","subscribers_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/subscribers","subscription_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/subscription","commits_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/contents/{+path}","compare_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/merges","archive_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/downloads","issues_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/issues{/number}","pulls_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/labels{/name}","releases_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/releases{/id}","created_at":"2015-01-23T03:50:45Z","updated_at":"2015-03-04T22:16:57Z","pushed_at":"2015-03-04T22:23:48Z","git_url":"git://github.com/MayOneUS/mayday-2.0-backend.git","ssh_url":"git@github.com:MayOneUS/mayday-2.0-backend.git","clone_url":"https://github.com/MayOneUS/mayday-2.0-backend.git","svn_url":"https://github.com/MayOneUS/mayday-2.0-backend","homepage":null,"size":2494,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"MayOneUS:master","ref":"master","sha":"4bf2faa8842a8cef58e2579cfecec9ffef0ad7c5","user":{"login":"MayOneUS","id":7469720,"avatar_url":"https://avatars.githubusercontent.com/u/7469720?v=3","gravatar_id":"","url":"https://api.github.com/users/MayOneUS","html_url":"https://github.com/MayOneUS","followers_url":"https://api.github.com/users/MayOneUS/followers","following_url":"https://api.github.com/users/MayOneUS/following{/other_user}","gists_url":"https://api.github.com/users/MayOneUS/gists{/gist_id}","starred_url":"https://api.github.com/users/MayOneUS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MayOneUS/subscriptions","organizations_url":"https://api.github.com/users/MayOneUS/orgs","repos_url":"https://api.github.com/users/MayOneUS/repos","events_url":"https://api.github.com/users/MayOneUS/events{/privacy}","received_events_url":"https://api.github.com/users/MayOneUS/received_events","type":"Organization","site_admin":false},"repo":{"id":29715441,"name":"mayday-2.0-backend","full_name":"MayOneUS/mayday-2.0-backend","owner":{"login":"MayOneUS","id":7469720,"avatar_url":"https://avatars.githubusercontent.com/u/7469720?v=3","gravatar_id":"","url":"https://api.github.com/users/MayOneUS","html_url":"https://github.com/MayOneUS","followers_url":"https://api.github.com/users/MayOneUS/followers","following_url":"https://api.github.com/users/MayOneUS/following{/other_user}","gists_url":"https://api.github.com/users/MayOneUS/gists{/gist_id}","starred_url":"https://api.github.com/users/MayOneUS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MayOneUS/subscriptions","organizations_url":"https://api.github.com/users/MayOneUS/orgs","repos_url":"https://api.github.com/users/MayOneUS/repos","events_url":"https://api.github.com/users/MayOneUS/events{/privacy}","received_events_url":"https://api.github.com/users/MayOneUS/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MayOneUS/mayday-2.0-backend","description":"The API-driven next generation MADAY.us site","fork":false,"url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend","forks_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/forks","keys_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/teams","hooks_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/hooks","issue_events_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/issues/events{/number}","events_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/events","assignees_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/assignees{/user}","branches_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/branches{/branch}","tags_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/tags","blobs_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/languages","stargazers_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/stargazers","contributors_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/contributors","subscribers_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/subscribers","subscription_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/subscription","commits_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/contents/{+path}","compare_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/merges","archive_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/downloads","issues_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/issues{/number}","pulls_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/labels{/name}","releases_url":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/releases{/id}","created_at":"2015-01-23T03:50:45Z","updated_at":"2015-03-04T22:16:57Z","pushed_at":"2015-03-04T22:23:48Z","git_url":"git://github.com/MayOneUS/mayday-2.0-backend.git","ssh_url":"git@github.com:MayOneUS/mayday-2.0-backend.git","clone_url":"https://github.com/MayOneUS/mayday-2.0-backend.git","svn_url":"https://github.com/MayOneUS/mayday-2.0-backend","homepage":null,"size":2494,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/pulls/23"},"html":{"href":"https://github.com/MayOneUS/mayday-2.0-backend/pull/23"},"issue":{"href":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/issues/23"},"comments":{"href":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/MayOneUS/mayday-2.0-backend/statuses/6450f87a6df9de60bec67b445b945a009329f95f"}}}}