{"action":"created","comment":{"url":"https://api.github.com/repos/slavibg/dirtybassfm/pulls/comments/136800775","pull_request_review_id":60389388,"id":136800775,"diff_hunk":"@@ -0,0 +1,30 @@\n+require 'rails_helper'\n+\n+RSpec.describe Post, :type => :model do\n+  subject { create(:post) }\n+\n+  it \"has a valid factory\" do\n+    expect(subject).to be_valid\n+  end\n+\n+  describe \"validations\" do\n+    it { is_expected.to validate_uniqueness_of(:title) }\n+    it { is_expected.to validate_presence_of(:body) }\n+    it { is_expected.to validate_uniqueness_of(:slug).case_insensitive }\n+\n+    describe \"post\" do\n+      it \"has a title\" do\n+        expect(subject.respond_to?(:title)).to eq true\n+      end\n+      \n+      it 'slug can not be empty' do\n+        expect(subject.slug).to_not be_falsy\n+      end\n+\n+      it 'slugged title' do\n+        expect(subject.slug).to eq(subject.title.parameterize)\n+      end\n+    end\n+\n+  end\n+end","path":"spec/models/post_spec.rb","position":30,"original_position":30,"commit_id":"7830e923af0c2d4782191474b6fa723ae60e44d8","original_commit_id":"7830e923af0c2d4782191474b6fa723ae60e44d8","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":"Final newline missing.","created_at":"2017-09-04T11:26:29Z","updated_at":"2017-09-04T11:26:29Z","html_url":"https://github.com/slavibg/dirtybassfm/pull/1#discussion_r136800775","pull_request_url":"https://api.github.com/repos/slavibg/dirtybassfm/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/slavibg/dirtybassfm/pulls/comments/136800775"},"html":{"href":"https://github.com/slavibg/dirtybassfm/pull/1#discussion_r136800775"},"pull_request":{"href":"https://api.github.com/repos/slavibg/dirtybassfm/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/slavibg/dirtybassfm/pulls/1","id":139136982,"html_url":"https://github.com/slavibg/dirtybassfm/pull/1","diff_url":"https://github.com/slavibg/dirtybassfm/pull/1.diff","patch_url":"https://github.com/slavibg/dirtybassfm/pull/1.patch","issue_url":"https://api.github.com/repos/slavibg/dirtybassfm/issues/1","number":1,"state":"open","locked":false,"title":"Blog posts","user":{"login":"slavibg","id":7252176,"avatar_url":"https://avatars3.githubusercontent.com/u/7252176?v=4","gravatar_id":"","url":"https://api.github.com/users/slavibg","html_url":"https://github.com/slavibg","followers_url":"https://api.github.com/users/slavibg/followers","following_url":"https://api.github.com/users/slavibg/following{/other_user}","gists_url":"https://api.github.com/users/slavibg/gists{/gist_id}","starred_url":"https://api.github.com/users/slavibg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slavibg/subscriptions","organizations_url":"https://api.github.com/users/slavibg/orgs","repos_url":"https://api.github.com/users/slavibg/repos","events_url":"https://api.github.com/users/slavibg/events{/privacy}","received_events_url":"https://api.github.com/users/slavibg/received_events","type":"User","site_admin":false},"body":"Adds post functionality to the dashboard.","created_at":"2017-09-04T11:26:09Z","updated_at":"2017-09-04T11:26:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"902ed7f87886d0b30587bd368ff9f60f767eaba5","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/slavibg/dirtybassfm/pulls/1/commits","review_comments_url":"https://api.github.com/repos/slavibg/dirtybassfm/pulls/1/comments","review_comment_url":"https://api.github.com/repos/slavibg/dirtybassfm/pulls/comments{/number}","comments_url":"https://api.github.com/repos/slavibg/dirtybassfm/issues/1/comments","statuses_url":"https://api.github.com/repos/slavibg/dirtybassfm/statuses/7830e923af0c2d4782191474b6fa723ae60e44d8","head":{"label":"slavibg:blog_posts","ref":"blog_posts","sha":"7830e923af0c2d4782191474b6fa723ae60e44d8","user":{"login":"slavibg","id":7252176,"avatar_url":"https://avatars3.githubusercontent.com/u/7252176?v=4","gravatar_id":"","url":"https://api.github.com/users/slavibg","html_url":"https://github.com/slavibg","followers_url":"https://api.github.com/users/slavibg/followers","following_url":"https://api.github.com/users/slavibg/following{/other_user}","gists_url":"https://api.github.com/users/slavibg/gists{/gist_id}","starred_url":"https://api.github.com/users/slavibg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slavibg/subscriptions","organizations_url":"https://api.github.com/users/slavibg/orgs","repos_url":"https://api.github.com/users/slavibg/repos","events_url":"https://api.github.com/users/slavibg/events{/privacy}","received_events_url":"https://api.github.com/users/slavibg/received_events","type":"User","site_admin":false},"repo":{"id":99234361,"name":"dirtybassfm","full_name":"slavibg/dirtybassfm","owner":{"login":"slavibg","id":7252176,"avatar_url":"https://avatars3.githubusercontent.com/u/7252176?v=4","gravatar_id":"","url":"https://api.github.com/users/slavibg","html_url":"https://github.com/slavibg","followers_url":"https://api.github.com/users/slavibg/followers","following_url":"https://api.github.com/users/slavibg/following{/other_user}","gists_url":"https://api.github.com/users/slavibg/gists{/gist_id}","starred_url":"https://api.github.com/users/slavibg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slavibg/subscriptions","organizations_url":"https://api.github.com/users/slavibg/orgs","repos_url":"https://api.github.com/users/slavibg/repos","events_url":"https://api.github.com/users/slavibg/events{/privacy}","received_events_url":"https://api.github.com/users/slavibg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/slavibg/dirtybassfm","description":null,"fork":false,"url":"https://api.github.com/repos/slavibg/dirtybassfm","forks_url":"https://api.github.com/repos/slavibg/dirtybassfm/forks","keys_url":"https://api.github.com/repos/slavibg/dirtybassfm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/slavibg/dirtybassfm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/slavibg/dirtybassfm/teams","hooks_url":"https://api.github.com/repos/slavibg/dirtybassfm/hooks","issue_events_url":"https://api.github.com/repos/slavibg/dirtybassfm/issues/events{/number}","events_url":"https://api.github.com/repos/slavibg/dirtybassfm/events","assignees_url":"https://api.github.com/repos/slavibg/dirtybassfm/assignees{/user}","branches_url":"https://api.github.com/repos/slavibg/dirtybassfm/branches{/branch}","tags_url":"https://api.github.com/repos/slavibg/dirtybassfm/tags","blobs_url":"https://api.github.com/repos/slavibg/dirtybassfm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/slavibg/dirtybassfm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/slavibg/dirtybassfm/git/refs{/sha}","trees_url":"https://api.github.com/repos/slavibg/dirtybassfm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/slavibg/dirtybassfm/statuses/{sha}","languages_url":"https://api.github.com/repos/slavibg/dirtybassfm/languages","stargazers_url":"https://api.github.com/repos/slavibg/dirtybassfm/stargazers","contributors_url":"https://api.github.com/repos/slavibg/dirtybassfm/contributors","subscribers_url":"https://api.github.com/repos/slavibg/dirtybassfm/subscribers","subscription_url":"https://api.github.com/repos/slavibg/dirtybassfm/subscription","commits_url":"https://api.github.com/repos/slavibg/dirtybassfm/commits{/sha}","git_commits_url":"https://api.github.com/repos/slavibg/dirtybassfm/git/commits{/sha}","comments_url":"https://api.github.com/repos/slavibg/dirtybassfm/comments{/number}","issue_comment_url":"https://api.github.com/repos/slavibg/dirtybassfm/issues/comments{/number}","contents_url":"https://api.github.com/repos/slavibg/dirtybassfm/contents/{+path}","compare_url":"https://api.github.com/repos/slavibg/dirtybassfm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/slavibg/dirtybassfm/merges","archive_url":"https://api.github.com/repos/slavibg/dirtybassfm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/slavibg/dirtybassfm/downloads","issues_url":"https://api.github.com/repos/slavibg/dirtybassfm/issues{/number}","pulls_url":"https://api.github.com/repos/slavibg/dirtybassfm/pulls{/number}","milestones_url":"https://api.github.com/repos/slavibg/dirtybassfm/milestones{/number}","notifications_url":"https://api.github.com/repos/slavibg/dirtybassfm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/slavibg/dirtybassfm/labels{/name}","releases_url":"https://api.github.com/repos/slavibg/dirtybassfm/releases{/id}","deployments_url":"https://api.github.com/repos/slavibg/dirtybassfm/deployments","created_at":"2017-08-03T13:16:01Z","updated_at":"2017-08-12T20:16:03Z","pushed_at":"2017-09-04T11:26:10Z","git_url":"git://github.com/slavibg/dirtybassfm.git","ssh_url":"git@github.com:slavibg/dirtybassfm.git","clone_url":"https://github.com/slavibg/dirtybassfm.git","svn_url":"https://github.com/slavibg/dirtybassfm","homepage":null,"size":58,"stargazers_count":0,"watchers_count":0,"language":"CSS","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":"slavibg:master","ref":"master","sha":"d4dbb3516e8ec9772974feaa25cdfca1085948d7","user":{"login":"slavibg","id":7252176,"avatar_url":"https://avatars3.githubusercontent.com/u/7252176?v=4","gravatar_id":"","url":"https://api.github.com/users/slavibg","html_url":"https://github.com/slavibg","followers_url":"https://api.github.com/users/slavibg/followers","following_url":"https://api.github.com/users/slavibg/following{/other_user}","gists_url":"https://api.github.com/users/slavibg/gists{/gist_id}","starred_url":"https://api.github.com/users/slavibg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slavibg/subscriptions","organizations_url":"https://api.github.com/users/slavibg/orgs","repos_url":"https://api.github.com/users/slavibg/repos","events_url":"https://api.github.com/users/slavibg/events{/privacy}","received_events_url":"https://api.github.com/users/slavibg/received_events","type":"User","site_admin":false},"repo":{"id":99234361,"name":"dirtybassfm","full_name":"slavibg/dirtybassfm","owner":{"login":"slavibg","id":7252176,"avatar_url":"https://avatars3.githubusercontent.com/u/7252176?v=4","gravatar_id":"","url":"https://api.github.com/users/slavibg","html_url":"https://github.com/slavibg","followers_url":"https://api.github.com/users/slavibg/followers","following_url":"https://api.github.com/users/slavibg/following{/other_user}","gists_url":"https://api.github.com/users/slavibg/gists{/gist_id}","starred_url":"https://api.github.com/users/slavibg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slavibg/subscriptions","organizations_url":"https://api.github.com/users/slavibg/orgs","repos_url":"https://api.github.com/users/slavibg/repos","events_url":"https://api.github.com/users/slavibg/events{/privacy}","received_events_url":"https://api.github.com/users/slavibg/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/slavibg/dirtybassfm","description":null,"fork":false,"url":"https://api.github.com/repos/slavibg/dirtybassfm","forks_url":"https://api.github.com/repos/slavibg/dirtybassfm/forks","keys_url":"https://api.github.com/repos/slavibg/dirtybassfm/keys{/key_id}","collaborators_url":"https://api.github.com/repos/slavibg/dirtybassfm/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/slavibg/dirtybassfm/teams","hooks_url":"https://api.github.com/repos/slavibg/dirtybassfm/hooks","issue_events_url":"https://api.github.com/repos/slavibg/dirtybassfm/issues/events{/number}","events_url":"https://api.github.com/repos/slavibg/dirtybassfm/events","assignees_url":"https://api.github.com/repos/slavibg/dirtybassfm/assignees{/user}","branches_url":"https://api.github.com/repos/slavibg/dirtybassfm/branches{/branch}","tags_url":"https://api.github.com/repos/slavibg/dirtybassfm/tags","blobs_url":"https://api.github.com/repos/slavibg/dirtybassfm/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/slavibg/dirtybassfm/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/slavibg/dirtybassfm/git/refs{/sha}","trees_url":"https://api.github.com/repos/slavibg/dirtybassfm/git/trees{/sha}","statuses_url":"https://api.github.com/repos/slavibg/dirtybassfm/statuses/{sha}","languages_url":"https://api.github.com/repos/slavibg/dirtybassfm/languages","stargazers_url":"https://api.github.com/repos/slavibg/dirtybassfm/stargazers","contributors_url":"https://api.github.com/repos/slavibg/dirtybassfm/contributors","subscribers_url":"https://api.github.com/repos/slavibg/dirtybassfm/subscribers","subscription_url":"https://api.github.com/repos/slavibg/dirtybassfm/subscription","commits_url":"https://api.github.com/repos/slavibg/dirtybassfm/commits{/sha}","git_commits_url":"https://api.github.com/repos/slavibg/dirtybassfm/git/commits{/sha}","comments_url":"https://api.github.com/repos/slavibg/dirtybassfm/comments{/number}","issue_comment_url":"https://api.github.com/repos/slavibg/dirtybassfm/issues/comments{/number}","contents_url":"https://api.github.com/repos/slavibg/dirtybassfm/contents/{+path}","compare_url":"https://api.github.com/repos/slavibg/dirtybassfm/compare/{base}...{head}","merges_url":"https://api.github.com/repos/slavibg/dirtybassfm/merges","archive_url":"https://api.github.com/repos/slavibg/dirtybassfm/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/slavibg/dirtybassfm/downloads","issues_url":"https://api.github.com/repos/slavibg/dirtybassfm/issues{/number}","pulls_url":"https://api.github.com/repos/slavibg/dirtybassfm/pulls{/number}","milestones_url":"https://api.github.com/repos/slavibg/dirtybassfm/milestones{/number}","notifications_url":"https://api.github.com/repos/slavibg/dirtybassfm/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/slavibg/dirtybassfm/labels{/name}","releases_url":"https://api.github.com/repos/slavibg/dirtybassfm/releases{/id}","deployments_url":"https://api.github.com/repos/slavibg/dirtybassfm/deployments","created_at":"2017-08-03T13:16:01Z","updated_at":"2017-08-12T20:16:03Z","pushed_at":"2017-09-04T11:26:10Z","git_url":"git://github.com/slavibg/dirtybassfm.git","ssh_url":"git@github.com:slavibg/dirtybassfm.git","clone_url":"https://github.com/slavibg/dirtybassfm.git","svn_url":"https://github.com/slavibg/dirtybassfm","homepage":null,"size":58,"stargazers_count":0,"watchers_count":0,"language":"CSS","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/slavibg/dirtybassfm/pulls/1"},"html":{"href":"https://github.com/slavibg/dirtybassfm/pull/1"},"issue":{"href":"https://api.github.com/repos/slavibg/dirtybassfm/issues/1"},"comments":{"href":"https://api.github.com/repos/slavibg/dirtybassfm/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/slavibg/dirtybassfm/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/slavibg/dirtybassfm/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/slavibg/dirtybassfm/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/slavibg/dirtybassfm/statuses/7830e923af0c2d4782191474b6fa723ae60e44d8"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}