{"action":"created","comment":{"url":"https://api.github.com/repos/crossroads/api.goodcity/pulls/comments/28756546","id":28756546,"diff_hunk":"@@ -0,0 +1,37 @@\n+require 'rails_helper'\n+\n+describe Api::V1::OfferSerializer do\n+\n+  let(:donor) { create(:user) }\n+  let(:donor_serializer) { Api::V1::UserSerializer.new(donor) }\n+  let(:donor_json) { JSON.parse(donor_serializer.to_json) }\n+  let(:admin) { create(:user, :reviewer) }\n+\n+  context \"Donor\" do\n+    before { User.current_user = donor }\n+    it \"creates JSON\" do\n+      expect(donor_json['user']['id']).to eql(donor.id)\n+      expect(donor_json['user']['first_name']).to eql(donor.first_name)\n+      expect(donor_json['user']['last_name']).to eql(donor.last_name)\n+      expect(donor_json['user']['created_at'].to_date).","path":"spec/serializers/api/v1/user_serializer_spec.rb","position":16,"original_position":16,"commit_id":"4e6fd50381a21f13aae237000c28cf51fb614348","original_commit_id":"4e6fd50381a21f13aae237000c28cf51fb614348","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-04-21T07:51:44Z","updated_at":"2015-04-21T07:51:44Z","html_url":"https://github.com/crossroads/api.goodcity/pull/68#discussion_r28756546","pull_request_url":"https://api.github.com/repos/crossroads/api.goodcity/pulls/68","_links":{"self":{"href":"https://api.github.com/repos/crossroads/api.goodcity/pulls/comments/28756546"},"html":{"href":"https://github.com/crossroads/api.goodcity/pull/68#discussion_r28756546"},"pull_request":{"href":"https://api.github.com/repos/crossroads/api.goodcity/pulls/68"}}},"pull_request":{"url":"https://api.github.com/repos/crossroads/api.goodcity/pulls/68","id":33736504,"html_url":"https://github.com/crossroads/api.goodcity/pull/68","diff_url":"https://github.com/crossroads/api.goodcity/pull/68.diff","patch_url":"https://github.com/crossroads/api.goodcity/pull/68.patch","issue_url":"https://api.github.com/repos/crossroads/api.goodcity/issues/68","number":68,"state":"open","locked":false,"title":"Update user serializer and use latest changes from postgres-ext serializer ","user":{"login":"swatijadhav","id":1950768,"avatar_url":"https://avatars.githubusercontent.com/u/1950768?v=3","gravatar_id":"","url":"https://api.github.com/users/swatijadhav","html_url":"https://github.com/swatijadhav","followers_url":"https://api.github.com/users/swatijadhav/followers","following_url":"https://api.github.com/users/swatijadhav/following{/other_user}","gists_url":"https://api.github.com/users/swatijadhav/gists{/gist_id}","starred_url":"https://api.github.com/users/swatijadhav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swatijadhav/subscriptions","organizations_url":"https://api.github.com/users/swatijadhav/orgs","repos_url":"https://api.github.com/users/swatijadhav/repos","events_url":"https://api.github.com/users/swatijadhav/events{/privacy}","received_events_url":"https://api.github.com/users/swatijadhav/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-21T07:51:39Z","updated_at":"2015-04-21T07:51:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c2c1268dc96d5fb0dfbfef8627ebc8c38399e19b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/crossroads/api.goodcity/pulls/68/commits","review_comments_url":"https://api.github.com/repos/crossroads/api.goodcity/pulls/68/comments","review_comment_url":"https://api.github.com/repos/crossroads/api.goodcity/pulls/comments{/number}","comments_url":"https://api.github.com/repos/crossroads/api.goodcity/issues/68/comments","statuses_url":"https://api.github.com/repos/crossroads/api.goodcity/statuses/4e6fd50381a21f13aae237000c28cf51fb614348","head":{"label":"crossroads:update_user_serializer","ref":"update_user_serializer","sha":"4e6fd50381a21f13aae237000c28cf51fb614348","user":{"login":"crossroads","id":141971,"avatar_url":"https://avatars.githubusercontent.com/u/141971?v=3","gravatar_id":"","url":"https://api.github.com/users/crossroads","html_url":"https://github.com/crossroads","followers_url":"https://api.github.com/users/crossroads/followers","following_url":"https://api.github.com/users/crossroads/following{/other_user}","gists_url":"https://api.github.com/users/crossroads/gists{/gist_id}","starred_url":"https://api.github.com/users/crossroads/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crossroads/subscriptions","organizations_url":"https://api.github.com/users/crossroads/orgs","repos_url":"https://api.github.com/users/crossroads/repos","events_url":"https://api.github.com/users/crossroads/events{/privacy}","received_events_url":"https://api.github.com/users/crossroads/received_events","type":"Organization","site_admin":false},"repo":{"id":21196107,"name":"api.goodcity","full_name":"crossroads/api.goodcity","owner":{"login":"crossroads","id":141971,"avatar_url":"https://avatars.githubusercontent.com/u/141971?v=3","gravatar_id":"","url":"https://api.github.com/users/crossroads","html_url":"https://github.com/crossroads","followers_url":"https://api.github.com/users/crossroads/followers","following_url":"https://api.github.com/users/crossroads/following{/other_user}","gists_url":"https://api.github.com/users/crossroads/gists{/gist_id}","starred_url":"https://api.github.com/users/crossroads/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crossroads/subscriptions","organizations_url":"https://api.github.com/users/crossroads/orgs","repos_url":"https://api.github.com/users/crossroads/repos","events_url":"https://api.github.com/users/crossroads/events{/privacy}","received_events_url":"https://api.github.com/users/crossroads/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crossroads/api.goodcity","description":"Good City API server","fork":false,"url":"https://api.github.com/repos/crossroads/api.goodcity","forks_url":"https://api.github.com/repos/crossroads/api.goodcity/forks","keys_url":"https://api.github.com/repos/crossroads/api.goodcity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crossroads/api.goodcity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crossroads/api.goodcity/teams","hooks_url":"https://api.github.com/repos/crossroads/api.goodcity/hooks","issue_events_url":"https://api.github.com/repos/crossroads/api.goodcity/issues/events{/number}","events_url":"https://api.github.com/repos/crossroads/api.goodcity/events","assignees_url":"https://api.github.com/repos/crossroads/api.goodcity/assignees{/user}","branches_url":"https://api.github.com/repos/crossroads/api.goodcity/branches{/branch}","tags_url":"https://api.github.com/repos/crossroads/api.goodcity/tags","blobs_url":"https://api.github.com/repos/crossroads/api.goodcity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crossroads/api.goodcity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crossroads/api.goodcity/git/refs{/sha}","trees_url":"https://api.github.com/repos/crossroads/api.goodcity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crossroads/api.goodcity/statuses/{sha}","languages_url":"https://api.github.com/repos/crossroads/api.goodcity/languages","stargazers_url":"https://api.github.com/repos/crossroads/api.goodcity/stargazers","contributors_url":"https://api.github.com/repos/crossroads/api.goodcity/contributors","subscribers_url":"https://api.github.com/repos/crossroads/api.goodcity/subscribers","subscription_url":"https://api.github.com/repos/crossroads/api.goodcity/subscription","commits_url":"https://api.github.com/repos/crossroads/api.goodcity/commits{/sha}","git_commits_url":"https://api.github.com/repos/crossroads/api.goodcity/git/commits{/sha}","comments_url":"https://api.github.com/repos/crossroads/api.goodcity/comments{/number}","issue_comment_url":"https://api.github.com/repos/crossroads/api.goodcity/issues/comments{/number}","contents_url":"https://api.github.com/repos/crossroads/api.goodcity/contents/{+path}","compare_url":"https://api.github.com/repos/crossroads/api.goodcity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crossroads/api.goodcity/merges","archive_url":"https://api.github.com/repos/crossroads/api.goodcity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crossroads/api.goodcity/downloads","issues_url":"https://api.github.com/repos/crossroads/api.goodcity/issues{/number}","pulls_url":"https://api.github.com/repos/crossroads/api.goodcity/pulls{/number}","milestones_url":"https://api.github.com/repos/crossroads/api.goodcity/milestones{/number}","notifications_url":"https://api.github.com/repos/crossroads/api.goodcity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crossroads/api.goodcity/labels{/name}","releases_url":"https://api.github.com/repos/crossroads/api.goodcity/releases{/id}","created_at":"2014-06-25T08:40:40Z","updated_at":"2015-04-21T07:40:15Z","pushed_at":"2015-04-21T07:51:40Z","git_url":"git://github.com/crossroads/api.goodcity.git","ssh_url":"git@github.com:crossroads/api.goodcity.git","clone_url":"https://github.com/crossroads/api.goodcity.git","svn_url":"https://github.com/crossroads/api.goodcity","homepage":"http://api.goodcity.hk","size":5083,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":4,"default_branch":"master"}},"base":{"label":"crossroads:master","ref":"master","sha":"6613572a3f6974b57a439aa74aa719c3700f6f5f","user":{"login":"crossroads","id":141971,"avatar_url":"https://avatars.githubusercontent.com/u/141971?v=3","gravatar_id":"","url":"https://api.github.com/users/crossroads","html_url":"https://github.com/crossroads","followers_url":"https://api.github.com/users/crossroads/followers","following_url":"https://api.github.com/users/crossroads/following{/other_user}","gists_url":"https://api.github.com/users/crossroads/gists{/gist_id}","starred_url":"https://api.github.com/users/crossroads/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crossroads/subscriptions","organizations_url":"https://api.github.com/users/crossroads/orgs","repos_url":"https://api.github.com/users/crossroads/repos","events_url":"https://api.github.com/users/crossroads/events{/privacy}","received_events_url":"https://api.github.com/users/crossroads/received_events","type":"Organization","site_admin":false},"repo":{"id":21196107,"name":"api.goodcity","full_name":"crossroads/api.goodcity","owner":{"login":"crossroads","id":141971,"avatar_url":"https://avatars.githubusercontent.com/u/141971?v=3","gravatar_id":"","url":"https://api.github.com/users/crossroads","html_url":"https://github.com/crossroads","followers_url":"https://api.github.com/users/crossroads/followers","following_url":"https://api.github.com/users/crossroads/following{/other_user}","gists_url":"https://api.github.com/users/crossroads/gists{/gist_id}","starred_url":"https://api.github.com/users/crossroads/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crossroads/subscriptions","organizations_url":"https://api.github.com/users/crossroads/orgs","repos_url":"https://api.github.com/users/crossroads/repos","events_url":"https://api.github.com/users/crossroads/events{/privacy}","received_events_url":"https://api.github.com/users/crossroads/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/crossroads/api.goodcity","description":"Good City API server","fork":false,"url":"https://api.github.com/repos/crossroads/api.goodcity","forks_url":"https://api.github.com/repos/crossroads/api.goodcity/forks","keys_url":"https://api.github.com/repos/crossroads/api.goodcity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/crossroads/api.goodcity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/crossroads/api.goodcity/teams","hooks_url":"https://api.github.com/repos/crossroads/api.goodcity/hooks","issue_events_url":"https://api.github.com/repos/crossroads/api.goodcity/issues/events{/number}","events_url":"https://api.github.com/repos/crossroads/api.goodcity/events","assignees_url":"https://api.github.com/repos/crossroads/api.goodcity/assignees{/user}","branches_url":"https://api.github.com/repos/crossroads/api.goodcity/branches{/branch}","tags_url":"https://api.github.com/repos/crossroads/api.goodcity/tags","blobs_url":"https://api.github.com/repos/crossroads/api.goodcity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/crossroads/api.goodcity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/crossroads/api.goodcity/git/refs{/sha}","trees_url":"https://api.github.com/repos/crossroads/api.goodcity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/crossroads/api.goodcity/statuses/{sha}","languages_url":"https://api.github.com/repos/crossroads/api.goodcity/languages","stargazers_url":"https://api.github.com/repos/crossroads/api.goodcity/stargazers","contributors_url":"https://api.github.com/repos/crossroads/api.goodcity/contributors","subscribers_url":"https://api.github.com/repos/crossroads/api.goodcity/subscribers","subscription_url":"https://api.github.com/repos/crossroads/api.goodcity/subscription","commits_url":"https://api.github.com/repos/crossroads/api.goodcity/commits{/sha}","git_commits_url":"https://api.github.com/repos/crossroads/api.goodcity/git/commits{/sha}","comments_url":"https://api.github.com/repos/crossroads/api.goodcity/comments{/number}","issue_comment_url":"https://api.github.com/repos/crossroads/api.goodcity/issues/comments{/number}","contents_url":"https://api.github.com/repos/crossroads/api.goodcity/contents/{+path}","compare_url":"https://api.github.com/repos/crossroads/api.goodcity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/crossroads/api.goodcity/merges","archive_url":"https://api.github.com/repos/crossroads/api.goodcity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/crossroads/api.goodcity/downloads","issues_url":"https://api.github.com/repos/crossroads/api.goodcity/issues{/number}","pulls_url":"https://api.github.com/repos/crossroads/api.goodcity/pulls{/number}","milestones_url":"https://api.github.com/repos/crossroads/api.goodcity/milestones{/number}","notifications_url":"https://api.github.com/repos/crossroads/api.goodcity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/crossroads/api.goodcity/labels{/name}","releases_url":"https://api.github.com/repos/crossroads/api.goodcity/releases{/id}","created_at":"2014-06-25T08:40:40Z","updated_at":"2015-04-21T07:40:15Z","pushed_at":"2015-04-21T07:51:40Z","git_url":"git://github.com/crossroads/api.goodcity.git","ssh_url":"git@github.com:crossroads/api.goodcity.git","clone_url":"https://github.com/crossroads/api.goodcity.git","svn_url":"https://github.com/crossroads/api.goodcity","homepage":"http://api.goodcity.hk","size":5083,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/crossroads/api.goodcity/pulls/68"},"html":{"href":"https://github.com/crossroads/api.goodcity/pull/68"},"issue":{"href":"https://api.github.com/repos/crossroads/api.goodcity/issues/68"},"comments":{"href":"https://api.github.com/repos/crossroads/api.goodcity/issues/68/comments"},"review_comments":{"href":"https://api.github.com/repos/crossroads/api.goodcity/pulls/68/comments"},"review_comment":{"href":"https://api.github.com/repos/crossroads/api.goodcity/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/crossroads/api.goodcity/pulls/68/commits"},"statuses":{"href":"https://api.github.com/repos/crossroads/api.goodcity/statuses/4e6fd50381a21f13aae237000c28cf51fb614348"}}}}