{"action":"created","comment":{"url":"https://api.github.com/repos/justarrived/just_match_api/pulls/comments/59115283","id":59115283,"diff_hunk":"@@ -0,0 +1,56 @@\n+# frozen_string_literal: true\n+require 'rails_helper'\n+\n+RSpec.describe CommentSerializer, type: :serializer do\n+  context 'Individual Resource Representation' do\n+    let(:resource) { FactoryGirl.build(:comment) }\n+    let(:serialization) { JsonApiSerializer.serialize(resource) }\n+\n+    subject do\n+      JSON.parse(serialization.to_json)\n+    end\n+\n+    described_class::ATTRIBUTES.each do |attribute|\n+      it \"has #{attribute.to_s.humanize.downcase}\" do\n+        dashed_attribute = attribute.to_s.dasherize\n+        value = resource.public_send(attribute)\n+        expect(subject).to have_jsonapi_attribute(dashed_attribute, value)\n+      end\n+    end\n+\n+    %w(owner language).each do |relationship|\n+      it \"has #{relationship} relationship\" do\n+        expect(subject).to have_jsonapi_relationship(relationship)\n+      end\n+    end\n+\n+    it 'is valid jsonapi format' do\n+      expect(subject).to be_jsonapi_formatted('comments')\n+    end\n+  end\n+end\n+\n+# == Schema Information\n+#\n+# Table name: comments\n+#\n+#  id               :integer          not null, primary key\n+#  body             :text\n+#  commentable_id   :integer\n+#  commentable_type :string\n+#  owner_user_id    :integer\n+#  created_at       :datetime         not null\n+#  updated_at       :datetime         not null\n+#  language_id      :integer\n+#  hidden           :boolean          default(FALSE)\n+#\n+# Indexes\n+#\n+#  index_comments_on_commentable_type_and_commentable_id  (commentable_type,commentable_id)","path":"spec/serializers/comment_serializer_spec.rb","position":49,"original_position":49,"commit_id":"7de4c43675224631d6b927bf4a43175522714425","original_commit_id":"7de4c43675224631d6b927bf4a43175522714425","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":"Line is too long. [91/90]","created_at":"2016-04-09T13:33:28Z","updated_at":"2016-04-09T13:33:28Z","html_url":"https://github.com/justarrived/just_match_api/pull/294#discussion_r59115283","pull_request_url":"https://api.github.com/repos/justarrived/just_match_api/pulls/294","_links":{"self":{"href":"https://api.github.com/repos/justarrived/just_match_api/pulls/comments/59115283"},"html":{"href":"https://github.com/justarrived/just_match_api/pull/294#discussion_r59115283"},"pull_request":{"href":"https://api.github.com/repos/justarrived/just_match_api/pulls/294"}}},"pull_request":{"url":"https://api.github.com/repos/justarrived/just_match_api/pulls/294","id":65881048,"html_url":"https://github.com/justarrived/just_match_api/pull/294","diff_url":"https://github.com/justarrived/just_match_api/pull/294.diff","patch_url":"https://github.com/justarrived/just_match_api/pull/294.patch","issue_url":"https://api.github.com/repos/justarrived/just_match_api/issues/294","number":294,"state":"open","locked":false,"title":"Join all attribute names with - instead of _ as per JSONAPI recommendation","user":{"login":"buren","id":922411,"avatar_url":"https://avatars.githubusercontent.com/u/922411?v=3","gravatar_id":"","url":"https://api.github.com/users/buren","html_url":"https://github.com/buren","followers_url":"https://api.github.com/users/buren/followers","following_url":"https://api.github.com/users/buren/following{/other_user}","gists_url":"https://api.github.com/users/buren/gists{/gist_id}","starred_url":"https://api.github.com/users/buren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buren/subscriptions","organizations_url":"https://api.github.com/users/buren/orgs","repos_url":"https://api.github.com/users/buren/repos","events_url":"https://api.github.com/users/buren/events{/privacy}","received_events_url":"https://api.github.com/users/buren/received_events","type":"User","site_admin":false},"body":"* Join all attribute names with - instead of _ as per [JSONAPI recommendation](http://jsonapi.org/recommendations/#naming)\r\n* Update active_model_serializer rc4 => rc5\r\n* Add serializer tests for all serializers","created_at":"2016-04-09T13:33:20Z","updated_at":"2016-04-09T13:33:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"883e959c641a536016f13cf49c835a39b30399db","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/justarrived/just_match_api/pulls/294/commits","review_comments_url":"https://api.github.com/repos/justarrived/just_match_api/pulls/294/comments","review_comment_url":"https://api.github.com/repos/justarrived/just_match_api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/justarrived/just_match_api/issues/294/comments","statuses_url":"https://api.github.com/repos/justarrived/just_match_api/statuses/7de4c43675224631d6b927bf4a43175522714425","head":{"label":"justarrived:ams-update","ref":"ams-update","sha":"7de4c43675224631d6b927bf4a43175522714425","user":{"login":"justarrived","id":16261728,"avatar_url":"https://avatars.githubusercontent.com/u/16261728?v=3","gravatar_id":"","url":"https://api.github.com/users/justarrived","html_url":"https://github.com/justarrived","followers_url":"https://api.github.com/users/justarrived/followers","following_url":"https://api.github.com/users/justarrived/following{/other_user}","gists_url":"https://api.github.com/users/justarrived/gists{/gist_id}","starred_url":"https://api.github.com/users/justarrived/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justarrived/subscriptions","organizations_url":"https://api.github.com/users/justarrived/orgs","repos_url":"https://api.github.com/users/justarrived/repos","events_url":"https://api.github.com/users/justarrived/events{/privacy}","received_events_url":"https://api.github.com/users/justarrived/received_events","type":"Organization","site_admin":false},"repo":{"id":47429013,"name":"just_match_api","full_name":"justarrived/just_match_api","owner":{"login":"justarrived","id":16261728,"avatar_url":"https://avatars.githubusercontent.com/u/16261728?v=3","gravatar_id":"","url":"https://api.github.com/users/justarrived","html_url":"https://github.com/justarrived","followers_url":"https://api.github.com/users/justarrived/followers","following_url":"https://api.github.com/users/justarrived/following{/other_user}","gists_url":"https://api.github.com/users/justarrived/gists{/gist_id}","starred_url":"https://api.github.com/users/justarrived/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justarrived/subscriptions","organizations_url":"https://api.github.com/users/justarrived/orgs","repos_url":"https://api.github.com/users/justarrived/repos","events_url":"https://api.github.com/users/justarrived/events{/privacy}","received_events_url":"https://api.github.com/users/justarrived/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/justarrived/just_match_api","description":"JustMatch API","fork":false,"url":"https://api.github.com/repos/justarrived/just_match_api","forks_url":"https://api.github.com/repos/justarrived/just_match_api/forks","keys_url":"https://api.github.com/repos/justarrived/just_match_api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/justarrived/just_match_api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/justarrived/just_match_api/teams","hooks_url":"https://api.github.com/repos/justarrived/just_match_api/hooks","issue_events_url":"https://api.github.com/repos/justarrived/just_match_api/issues/events{/number}","events_url":"https://api.github.com/repos/justarrived/just_match_api/events","assignees_url":"https://api.github.com/repos/justarrived/just_match_api/assignees{/user}","branches_url":"https://api.github.com/repos/justarrived/just_match_api/branches{/branch}","tags_url":"https://api.github.com/repos/justarrived/just_match_api/tags","blobs_url":"https://api.github.com/repos/justarrived/just_match_api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/justarrived/just_match_api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/justarrived/just_match_api/git/refs{/sha}","trees_url":"https://api.github.com/repos/justarrived/just_match_api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/justarrived/just_match_api/statuses/{sha}","languages_url":"https://api.github.com/repos/justarrived/just_match_api/languages","stargazers_url":"https://api.github.com/repos/justarrived/just_match_api/stargazers","contributors_url":"https://api.github.com/repos/justarrived/just_match_api/contributors","subscribers_url":"https://api.github.com/repos/justarrived/just_match_api/subscribers","subscription_url":"https://api.github.com/repos/justarrived/just_match_api/subscription","commits_url":"https://api.github.com/repos/justarrived/just_match_api/commits{/sha}","git_commits_url":"https://api.github.com/repos/justarrived/just_match_api/git/commits{/sha}","comments_url":"https://api.github.com/repos/justarrived/just_match_api/comments{/number}","issue_comment_url":"https://api.github.com/repos/justarrived/just_match_api/issues/comments{/number}","contents_url":"https://api.github.com/repos/justarrived/just_match_api/contents/{+path}","compare_url":"https://api.github.com/repos/justarrived/just_match_api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/justarrived/just_match_api/merges","archive_url":"https://api.github.com/repos/justarrived/just_match_api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/justarrived/just_match_api/downloads","issues_url":"https://api.github.com/repos/justarrived/just_match_api/issues{/number}","pulls_url":"https://api.github.com/repos/justarrived/just_match_api/pulls{/number}","milestones_url":"https://api.github.com/repos/justarrived/just_match_api/milestones{/number}","notifications_url":"https://api.github.com/repos/justarrived/just_match_api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/justarrived/just_match_api/labels{/name}","releases_url":"https://api.github.com/repos/justarrived/just_match_api/releases{/id}","deployments_url":"https://api.github.com/repos/justarrived/just_match_api/deployments","created_at":"2015-12-04T21:11:17Z","updated_at":"2016-03-03T22:48:34Z","pushed_at":"2016-04-09T13:33:21Z","git_url":"git://github.com/justarrived/just_match_api.git","ssh_url":"git@github.com:justarrived/just_match_api.git","clone_url":"https://github.com/justarrived/just_match_api.git","svn_url":"https://github.com/justarrived/just_match_api","homepage":"https://just-match-api.herokuapp.com/api_docs","size":1129,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":28,"forks":3,"open_issues":28,"watchers":4,"default_branch":"master"}},"base":{"label":"justarrived:master","ref":"master","sha":"4224e4d696b709ac231a12d4fae808090230d5eb","user":{"login":"justarrived","id":16261728,"avatar_url":"https://avatars.githubusercontent.com/u/16261728?v=3","gravatar_id":"","url":"https://api.github.com/users/justarrived","html_url":"https://github.com/justarrived","followers_url":"https://api.github.com/users/justarrived/followers","following_url":"https://api.github.com/users/justarrived/following{/other_user}","gists_url":"https://api.github.com/users/justarrived/gists{/gist_id}","starred_url":"https://api.github.com/users/justarrived/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justarrived/subscriptions","organizations_url":"https://api.github.com/users/justarrived/orgs","repos_url":"https://api.github.com/users/justarrived/repos","events_url":"https://api.github.com/users/justarrived/events{/privacy}","received_events_url":"https://api.github.com/users/justarrived/received_events","type":"Organization","site_admin":false},"repo":{"id":47429013,"name":"just_match_api","full_name":"justarrived/just_match_api","owner":{"login":"justarrived","id":16261728,"avatar_url":"https://avatars.githubusercontent.com/u/16261728?v=3","gravatar_id":"","url":"https://api.github.com/users/justarrived","html_url":"https://github.com/justarrived","followers_url":"https://api.github.com/users/justarrived/followers","following_url":"https://api.github.com/users/justarrived/following{/other_user}","gists_url":"https://api.github.com/users/justarrived/gists{/gist_id}","starred_url":"https://api.github.com/users/justarrived/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justarrived/subscriptions","organizations_url":"https://api.github.com/users/justarrived/orgs","repos_url":"https://api.github.com/users/justarrived/repos","events_url":"https://api.github.com/users/justarrived/events{/privacy}","received_events_url":"https://api.github.com/users/justarrived/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/justarrived/just_match_api","description":"JustMatch API","fork":false,"url":"https://api.github.com/repos/justarrived/just_match_api","forks_url":"https://api.github.com/repos/justarrived/just_match_api/forks","keys_url":"https://api.github.com/repos/justarrived/just_match_api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/justarrived/just_match_api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/justarrived/just_match_api/teams","hooks_url":"https://api.github.com/repos/justarrived/just_match_api/hooks","issue_events_url":"https://api.github.com/repos/justarrived/just_match_api/issues/events{/number}","events_url":"https://api.github.com/repos/justarrived/just_match_api/events","assignees_url":"https://api.github.com/repos/justarrived/just_match_api/assignees{/user}","branches_url":"https://api.github.com/repos/justarrived/just_match_api/branches{/branch}","tags_url":"https://api.github.com/repos/justarrived/just_match_api/tags","blobs_url":"https://api.github.com/repos/justarrived/just_match_api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/justarrived/just_match_api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/justarrived/just_match_api/git/refs{/sha}","trees_url":"https://api.github.com/repos/justarrived/just_match_api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/justarrived/just_match_api/statuses/{sha}","languages_url":"https://api.github.com/repos/justarrived/just_match_api/languages","stargazers_url":"https://api.github.com/repos/justarrived/just_match_api/stargazers","contributors_url":"https://api.github.com/repos/justarrived/just_match_api/contributors","subscribers_url":"https://api.github.com/repos/justarrived/just_match_api/subscribers","subscription_url":"https://api.github.com/repos/justarrived/just_match_api/subscription","commits_url":"https://api.github.com/repos/justarrived/just_match_api/commits{/sha}","git_commits_url":"https://api.github.com/repos/justarrived/just_match_api/git/commits{/sha}","comments_url":"https://api.github.com/repos/justarrived/just_match_api/comments{/number}","issue_comment_url":"https://api.github.com/repos/justarrived/just_match_api/issues/comments{/number}","contents_url":"https://api.github.com/repos/justarrived/just_match_api/contents/{+path}","compare_url":"https://api.github.com/repos/justarrived/just_match_api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/justarrived/just_match_api/merges","archive_url":"https://api.github.com/repos/justarrived/just_match_api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/justarrived/just_match_api/downloads","issues_url":"https://api.github.com/repos/justarrived/just_match_api/issues{/number}","pulls_url":"https://api.github.com/repos/justarrived/just_match_api/pulls{/number}","milestones_url":"https://api.github.com/repos/justarrived/just_match_api/milestones{/number}","notifications_url":"https://api.github.com/repos/justarrived/just_match_api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/justarrived/just_match_api/labels{/name}","releases_url":"https://api.github.com/repos/justarrived/just_match_api/releases{/id}","deployments_url":"https://api.github.com/repos/justarrived/just_match_api/deployments","created_at":"2015-12-04T21:11:17Z","updated_at":"2016-03-03T22:48:34Z","pushed_at":"2016-04-09T13:33:21Z","git_url":"git://github.com/justarrived/just_match_api.git","ssh_url":"git@github.com:justarrived/just_match_api.git","clone_url":"https://github.com/justarrived/just_match_api.git","svn_url":"https://github.com/justarrived/just_match_api","homepage":"https://just-match-api.herokuapp.com/api_docs","size":1129,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":28,"forks":3,"open_issues":28,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/justarrived/just_match_api/pulls/294"},"html":{"href":"https://github.com/justarrived/just_match_api/pull/294"},"issue":{"href":"https://api.github.com/repos/justarrived/just_match_api/issues/294"},"comments":{"href":"https://api.github.com/repos/justarrived/just_match_api/issues/294/comments"},"review_comments":{"href":"https://api.github.com/repos/justarrived/just_match_api/pulls/294/comments"},"review_comment":{"href":"https://api.github.com/repos/justarrived/just_match_api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/justarrived/just_match_api/pulls/294/commits"},"statuses":{"href":"https://api.github.com/repos/justarrived/just_match_api/statuses/7de4c43675224631d6b927bf4a43175522714425"}}}}