{"action":"created","comment":{"url":"https://api.github.com/repos/wildfiler/book-o-book/pulls/comments/48535240","id":48535240,"diff_hunk":"@@ -11,4 +11,12 @@\n       expect(fullname).to eq('John Doe')\n     end\n   end\n+\n+  describe 'validations' do\n+    it { should validate_presence_of(:title)}\n+    it { should validate_presence_of(:description)}\n+    it { should validate_presence_of(:published_at)}\n+    it { should validate_presence_of(:cover_url)}\n+    it { should validate_presence_of(:author_id)}","path":"spec/models/book_spec.rb","position":10,"original_position":10,"commit_id":"470629034fad294502282454b35e9fd0bd17df27","original_commit_id":"470629034fad294502282454b35e9fd0bd17df27","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":"Space missing inside }.","created_at":"2015-12-29T11:40:53Z","updated_at":"2015-12-29T11:40:53Z","html_url":"https://github.com/wildfiler/book-o-book/pull/9#discussion_r48535240","pull_request_url":"https://api.github.com/repos/wildfiler/book-o-book/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/wildfiler/book-o-book/pulls/comments/48535240"},"html":{"href":"https://github.com/wildfiler/book-o-book/pull/9#discussion_r48535240"},"pull_request":{"href":"https://api.github.com/repos/wildfiler/book-o-book/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/wildfiler/book-o-book/pulls/9","id":54720597,"html_url":"https://github.com/wildfiler/book-o-book/pull/9","diff_url":"https://github.com/wildfiler/book-o-book/pull/9.diff","patch_url":"https://github.com/wildfiler/book-o-book/pull/9.patch","issue_url":"https://api.github.com/repos/wildfiler/book-o-book/issues/9","number":9,"state":"open","locked":false,"title":"Add validations to models","user":{"login":"Fatpaher","id":15785863,"avatar_url":"https://avatars.githubusercontent.com/u/15785863?v=3","gravatar_id":"","url":"https://api.github.com/users/Fatpaher","html_url":"https://github.com/Fatpaher","followers_url":"https://api.github.com/users/Fatpaher/followers","following_url":"https://api.github.com/users/Fatpaher/following{/other_user}","gists_url":"https://api.github.com/users/Fatpaher/gists{/gist_id}","starred_url":"https://api.github.com/users/Fatpaher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fatpaher/subscriptions","organizations_url":"https://api.github.com/users/Fatpaher/orgs","repos_url":"https://api.github.com/users/Fatpaher/repos","events_url":"https://api.github.com/users/Fatpaher/events{/privacy}","received_events_url":"https://api.github.com/users/Fatpaher/received_events","type":"User","site_admin":false},"body":"Add validations to books and author models\r\nAdd gem shoulda\r\n","created_at":"2015-12-29T11:40:50Z","updated_at":"2015-12-29T11:40:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"072abf94537e4bb538e8505f1689948f49718e88","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wildfiler/book-o-book/pulls/9/commits","review_comments_url":"https://api.github.com/repos/wildfiler/book-o-book/pulls/9/comments","review_comment_url":"https://api.github.com/repos/wildfiler/book-o-book/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wildfiler/book-o-book/issues/9/comments","statuses_url":"https://api.github.com/repos/wildfiler/book-o-book/statuses/470629034fad294502282454b35e9fd0bd17df27","head":{"label":"wildfiler:pp-add_validations","ref":"pp-add_validations","sha":"470629034fad294502282454b35e9fd0bd17df27","user":{"login":"wildfiler","id":2605257,"avatar_url":"https://avatars.githubusercontent.com/u/2605257?v=3","gravatar_id":"","url":"https://api.github.com/users/wildfiler","html_url":"https://github.com/wildfiler","followers_url":"https://api.github.com/users/wildfiler/followers","following_url":"https://api.github.com/users/wildfiler/following{/other_user}","gists_url":"https://api.github.com/users/wildfiler/gists{/gist_id}","starred_url":"https://api.github.com/users/wildfiler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wildfiler/subscriptions","organizations_url":"https://api.github.com/users/wildfiler/orgs","repos_url":"https://api.github.com/users/wildfiler/repos","events_url":"https://api.github.com/users/wildfiler/events{/privacy}","received_events_url":"https://api.github.com/users/wildfiler/received_events","type":"User","site_admin":false},"repo":{"id":48337149,"name":"book-o-book","full_name":"wildfiler/book-o-book","owner":{"login":"wildfiler","id":2605257,"avatar_url":"https://avatars.githubusercontent.com/u/2605257?v=3","gravatar_id":"","url":"https://api.github.com/users/wildfiler","html_url":"https://github.com/wildfiler","followers_url":"https://api.github.com/users/wildfiler/followers","following_url":"https://api.github.com/users/wildfiler/following{/other_user}","gists_url":"https://api.github.com/users/wildfiler/gists{/gist_id}","starred_url":"https://api.github.com/users/wildfiler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wildfiler/subscriptions","organizations_url":"https://api.github.com/users/wildfiler/orgs","repos_url":"https://api.github.com/users/wildfiler/repos","events_url":"https://api.github.com/users/wildfiler/events{/privacy}","received_events_url":"https://api.github.com/users/wildfiler/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wildfiler/book-o-book","description":"","fork":false,"url":"https://api.github.com/repos/wildfiler/book-o-book","forks_url":"https://api.github.com/repos/wildfiler/book-o-book/forks","keys_url":"https://api.github.com/repos/wildfiler/book-o-book/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wildfiler/book-o-book/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wildfiler/book-o-book/teams","hooks_url":"https://api.github.com/repos/wildfiler/book-o-book/hooks","issue_events_url":"https://api.github.com/repos/wildfiler/book-o-book/issues/events{/number}","events_url":"https://api.github.com/repos/wildfiler/book-o-book/events","assignees_url":"https://api.github.com/repos/wildfiler/book-o-book/assignees{/user}","branches_url":"https://api.github.com/repos/wildfiler/book-o-book/branches{/branch}","tags_url":"https://api.github.com/repos/wildfiler/book-o-book/tags","blobs_url":"https://api.github.com/repos/wildfiler/book-o-book/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wildfiler/book-o-book/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wildfiler/book-o-book/git/refs{/sha}","trees_url":"https://api.github.com/repos/wildfiler/book-o-book/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wildfiler/book-o-book/statuses/{sha}","languages_url":"https://api.github.com/repos/wildfiler/book-o-book/languages","stargazers_url":"https://api.github.com/repos/wildfiler/book-o-book/stargazers","contributors_url":"https://api.github.com/repos/wildfiler/book-o-book/contributors","subscribers_url":"https://api.github.com/repos/wildfiler/book-o-book/subscribers","subscription_url":"https://api.github.com/repos/wildfiler/book-o-book/subscription","commits_url":"https://api.github.com/repos/wildfiler/book-o-book/commits{/sha}","git_commits_url":"https://api.github.com/repos/wildfiler/book-o-book/git/commits{/sha}","comments_url":"https://api.github.com/repos/wildfiler/book-o-book/comments{/number}","issue_comment_url":"https://api.github.com/repos/wildfiler/book-o-book/issues/comments{/number}","contents_url":"https://api.github.com/repos/wildfiler/book-o-book/contents/{+path}","compare_url":"https://api.github.com/repos/wildfiler/book-o-book/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wildfiler/book-o-book/merges","archive_url":"https://api.github.com/repos/wildfiler/book-o-book/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wildfiler/book-o-book/downloads","issues_url":"https://api.github.com/repos/wildfiler/book-o-book/issues{/number}","pulls_url":"https://api.github.com/repos/wildfiler/book-o-book/pulls{/number}","milestones_url":"https://api.github.com/repos/wildfiler/book-o-book/milestones{/number}","notifications_url":"https://api.github.com/repos/wildfiler/book-o-book/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wildfiler/book-o-book/labels{/name}","releases_url":"https://api.github.com/repos/wildfiler/book-o-book/releases{/id}","created_at":"2015-12-20T21:03:58Z","updated_at":"2015-12-20T21:20:18Z","pushed_at":"2015-12-29T11:40:51Z","git_url":"git://github.com/wildfiler/book-o-book.git","ssh_url":"git@github.com:wildfiler/book-o-book.git","clone_url":"https://github.com/wildfiler/book-o-book.git","svn_url":"https://github.com/wildfiler/book-o-book","homepage":null,"size":55,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"wildfiler:master","ref":"master","sha":"09bf7c34bf62a1301d5276553f4d29febf954d3d","user":{"login":"wildfiler","id":2605257,"avatar_url":"https://avatars.githubusercontent.com/u/2605257?v=3","gravatar_id":"","url":"https://api.github.com/users/wildfiler","html_url":"https://github.com/wildfiler","followers_url":"https://api.github.com/users/wildfiler/followers","following_url":"https://api.github.com/users/wildfiler/following{/other_user}","gists_url":"https://api.github.com/users/wildfiler/gists{/gist_id}","starred_url":"https://api.github.com/users/wildfiler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wildfiler/subscriptions","organizations_url":"https://api.github.com/users/wildfiler/orgs","repos_url":"https://api.github.com/users/wildfiler/repos","events_url":"https://api.github.com/users/wildfiler/events{/privacy}","received_events_url":"https://api.github.com/users/wildfiler/received_events","type":"User","site_admin":false},"repo":{"id":48337149,"name":"book-o-book","full_name":"wildfiler/book-o-book","owner":{"login":"wildfiler","id":2605257,"avatar_url":"https://avatars.githubusercontent.com/u/2605257?v=3","gravatar_id":"","url":"https://api.github.com/users/wildfiler","html_url":"https://github.com/wildfiler","followers_url":"https://api.github.com/users/wildfiler/followers","following_url":"https://api.github.com/users/wildfiler/following{/other_user}","gists_url":"https://api.github.com/users/wildfiler/gists{/gist_id}","starred_url":"https://api.github.com/users/wildfiler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wildfiler/subscriptions","organizations_url":"https://api.github.com/users/wildfiler/orgs","repos_url":"https://api.github.com/users/wildfiler/repos","events_url":"https://api.github.com/users/wildfiler/events{/privacy}","received_events_url":"https://api.github.com/users/wildfiler/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wildfiler/book-o-book","description":"","fork":false,"url":"https://api.github.com/repos/wildfiler/book-o-book","forks_url":"https://api.github.com/repos/wildfiler/book-o-book/forks","keys_url":"https://api.github.com/repos/wildfiler/book-o-book/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wildfiler/book-o-book/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wildfiler/book-o-book/teams","hooks_url":"https://api.github.com/repos/wildfiler/book-o-book/hooks","issue_events_url":"https://api.github.com/repos/wildfiler/book-o-book/issues/events{/number}","events_url":"https://api.github.com/repos/wildfiler/book-o-book/events","assignees_url":"https://api.github.com/repos/wildfiler/book-o-book/assignees{/user}","branches_url":"https://api.github.com/repos/wildfiler/book-o-book/branches{/branch}","tags_url":"https://api.github.com/repos/wildfiler/book-o-book/tags","blobs_url":"https://api.github.com/repos/wildfiler/book-o-book/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wildfiler/book-o-book/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wildfiler/book-o-book/git/refs{/sha}","trees_url":"https://api.github.com/repos/wildfiler/book-o-book/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wildfiler/book-o-book/statuses/{sha}","languages_url":"https://api.github.com/repos/wildfiler/book-o-book/languages","stargazers_url":"https://api.github.com/repos/wildfiler/book-o-book/stargazers","contributors_url":"https://api.github.com/repos/wildfiler/book-o-book/contributors","subscribers_url":"https://api.github.com/repos/wildfiler/book-o-book/subscribers","subscription_url":"https://api.github.com/repos/wildfiler/book-o-book/subscription","commits_url":"https://api.github.com/repos/wildfiler/book-o-book/commits{/sha}","git_commits_url":"https://api.github.com/repos/wildfiler/book-o-book/git/commits{/sha}","comments_url":"https://api.github.com/repos/wildfiler/book-o-book/comments{/number}","issue_comment_url":"https://api.github.com/repos/wildfiler/book-o-book/issues/comments{/number}","contents_url":"https://api.github.com/repos/wildfiler/book-o-book/contents/{+path}","compare_url":"https://api.github.com/repos/wildfiler/book-o-book/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wildfiler/book-o-book/merges","archive_url":"https://api.github.com/repos/wildfiler/book-o-book/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wildfiler/book-o-book/downloads","issues_url":"https://api.github.com/repos/wildfiler/book-o-book/issues{/number}","pulls_url":"https://api.github.com/repos/wildfiler/book-o-book/pulls{/number}","milestones_url":"https://api.github.com/repos/wildfiler/book-o-book/milestones{/number}","notifications_url":"https://api.github.com/repos/wildfiler/book-o-book/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wildfiler/book-o-book/labels{/name}","releases_url":"https://api.github.com/repos/wildfiler/book-o-book/releases{/id}","created_at":"2015-12-20T21:03:58Z","updated_at":"2015-12-20T21:20:18Z","pushed_at":"2015-12-29T11:40:51Z","git_url":"git://github.com/wildfiler/book-o-book.git","ssh_url":"git@github.com:wildfiler/book-o-book.git","clone_url":"https://github.com/wildfiler/book-o-book.git","svn_url":"https://github.com/wildfiler/book-o-book","homepage":null,"size":55,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wildfiler/book-o-book/pulls/9"},"html":{"href":"https://github.com/wildfiler/book-o-book/pull/9"},"issue":{"href":"https://api.github.com/repos/wildfiler/book-o-book/issues/9"},"comments":{"href":"https://api.github.com/repos/wildfiler/book-o-book/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/wildfiler/book-o-book/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/wildfiler/book-o-book/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wildfiler/book-o-book/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/wildfiler/book-o-book/statuses/470629034fad294502282454b35e9fd0bd17df27"}}}}