{"action":"created","comment":{"url":"https://api.github.com/repos/ajkamel/cover/pulls/comments/43714360","id":43714360,"diff_hunk":"@@ -0,0 +1,5 @@\n+require 'rails_helper'\n+\n+RSpec.describe Book, :type => :model do","path":"spec/models/book_spec.rb","position":3,"original_position":3,"commit_id":"2909390953e94433a127ccdd7339ecf96b01be24","original_commit_id":"2909390953e94433a127ccdd7339ecf96b01be24","user":{"login":"samnang","id":131172,"avatar_url":"https://avatars.githubusercontent.com/u/131172?v=3","gravatar_id":"","url":"https://api.github.com/users/samnang","html_url":"https://github.com/samnang","followers_url":"https://api.github.com/users/samnang/followers","following_url":"https://api.github.com/users/samnang/following{/other_user}","gists_url":"https://api.github.com/users/samnang/gists{/gist_id}","starred_url":"https://api.github.com/users/samnang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samnang/subscriptions","organizations_url":"https://api.github.com/users/samnang/orgs","repos_url":"https://api.github.com/users/samnang/repos","events_url":"https://api.github.com/users/samnang/events{/privacy}","received_events_url":"https://api.github.com/users/samnang/received_events","type":"User","site_admin":false},"body":"I love the new Ruby 1.9 hash syntax even it looks wired when both key and value are symbols.","created_at":"2015-11-03T03:56:02Z","updated_at":"2015-11-03T03:56:02Z","html_url":"https://github.com/ajkamel/cover/pull/3#discussion_r43714360","pull_request_url":"https://api.github.com/repos/ajkamel/cover/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/ajkamel/cover/pulls/comments/43714360"},"html":{"href":"https://github.com/ajkamel/cover/pull/3#discussion_r43714360"},"pull_request":{"href":"https://api.github.com/repos/ajkamel/cover/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/ajkamel/cover/pulls/3","id":49351459,"html_url":"https://github.com/ajkamel/cover/pull/3","diff_url":"https://github.com/ajkamel/cover/pull/3.diff","patch_url":"https://github.com/ajkamel/cover/pull/3.patch","issue_url":"https://api.github.com/repos/ajkamel/cover/issues/3","number":3,"state":"open","locked":false,"title":"User views a list of all books","user":{"login":"samnang","id":131172,"avatar_url":"https://avatars.githubusercontent.com/u/131172?v=3","gravatar_id":"","url":"https://api.github.com/users/samnang","html_url":"https://github.com/samnang","followers_url":"https://api.github.com/users/samnang/followers","following_url":"https://api.github.com/users/samnang/following{/other_user}","gists_url":"https://api.github.com/users/samnang/gists{/gist_id}","starred_url":"https://api.github.com/users/samnang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samnang/subscriptions","organizations_url":"https://api.github.com/users/samnang/orgs","repos_url":"https://api.github.com/users/samnang/repos","events_url":"https://api.github.com/users/samnang/events{/privacy}","received_events_url":"https://api.github.com/users/samnang/received_events","type":"User","site_admin":false},"body":"https://trello.com/c/Yj3i4Q4I\r\n\r\nPair with @evan-007 \r\n\r\n* We have to run `rails generate refills:import flashes` to pull flashes partial from refills gem\r\n\r\nNOTE: We tried to add validation on book's title, but we should get shoulda-matcher working on model spec:\r\n```ruby\r\nRSpec.describe Book, :type => :model do\r\n  it { is_expected.to validate_presence_of(:title) }\r\nend\r\n```\r\n\r\nAnd here we got:\r\n\r\n```\r\nNoMethodError: undefined method `validate_presence_of'\r\n```\r\n","created_at":"2015-10-31T15:17:42Z","updated_at":"2015-11-03T03:56:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"979a65e55190bf8fb62acc6c6e2418d753e569cb","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ajkamel/cover/pulls/3/commits","review_comments_url":"https://api.github.com/repos/ajkamel/cover/pulls/3/comments","review_comment_url":"https://api.github.com/repos/ajkamel/cover/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ajkamel/cover/issues/3/comments","statuses_url":"https://api.github.com/repos/ajkamel/cover/statuses/2909390953e94433a127ccdd7339ecf96b01be24","head":{"label":"ajkamel:list_all_books","ref":"list_all_books","sha":"2909390953e94433a127ccdd7339ecf96b01be24","user":{"login":"ajkamel","id":6248492,"avatar_url":"https://avatars.githubusercontent.com/u/6248492?v=3","gravatar_id":"","url":"https://api.github.com/users/ajkamel","html_url":"https://github.com/ajkamel","followers_url":"https://api.github.com/users/ajkamel/followers","following_url":"https://api.github.com/users/ajkamel/following{/other_user}","gists_url":"https://api.github.com/users/ajkamel/gists{/gist_id}","starred_url":"https://api.github.com/users/ajkamel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajkamel/subscriptions","organizations_url":"https://api.github.com/users/ajkamel/orgs","repos_url":"https://api.github.com/users/ajkamel/repos","events_url":"https://api.github.com/users/ajkamel/events{/privacy}","received_events_url":"https://api.github.com/users/ajkamel/received_events","type":"User","site_admin":false},"repo":{"id":44979871,"name":"cover","full_name":"ajkamel/cover","owner":{"login":"ajkamel","id":6248492,"avatar_url":"https://avatars.githubusercontent.com/u/6248492?v=3","gravatar_id":"","url":"https://api.github.com/users/ajkamel","html_url":"https://github.com/ajkamel","followers_url":"https://api.github.com/users/ajkamel/followers","following_url":"https://api.github.com/users/ajkamel/following{/other_user}","gists_url":"https://api.github.com/users/ajkamel/gists{/gist_id}","starred_url":"https://api.github.com/users/ajkamel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajkamel/subscriptions","organizations_url":"https://api.github.com/users/ajkamel/orgs","repos_url":"https://api.github.com/users/ajkamel/repos","events_url":"https://api.github.com/users/ajkamel/events{/privacy}","received_events_url":"https://api.github.com/users/ajkamel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ajkamel/cover","description":" a social network centered around books","fork":false,"url":"https://api.github.com/repos/ajkamel/cover","forks_url":"https://api.github.com/repos/ajkamel/cover/forks","keys_url":"https://api.github.com/repos/ajkamel/cover/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ajkamel/cover/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ajkamel/cover/teams","hooks_url":"https://api.github.com/repos/ajkamel/cover/hooks","issue_events_url":"https://api.github.com/repos/ajkamel/cover/issues/events{/number}","events_url":"https://api.github.com/repos/ajkamel/cover/events","assignees_url":"https://api.github.com/repos/ajkamel/cover/assignees{/user}","branches_url":"https://api.github.com/repos/ajkamel/cover/branches{/branch}","tags_url":"https://api.github.com/repos/ajkamel/cover/tags","blobs_url":"https://api.github.com/repos/ajkamel/cover/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ajkamel/cover/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ajkamel/cover/git/refs{/sha}","trees_url":"https://api.github.com/repos/ajkamel/cover/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ajkamel/cover/statuses/{sha}","languages_url":"https://api.github.com/repos/ajkamel/cover/languages","stargazers_url":"https://api.github.com/repos/ajkamel/cover/stargazers","contributors_url":"https://api.github.com/repos/ajkamel/cover/contributors","subscribers_url":"https://api.github.com/repos/ajkamel/cover/subscribers","subscription_url":"https://api.github.com/repos/ajkamel/cover/subscription","commits_url":"https://api.github.com/repos/ajkamel/cover/commits{/sha}","git_commits_url":"https://api.github.com/repos/ajkamel/cover/git/commits{/sha}","comments_url":"https://api.github.com/repos/ajkamel/cover/comments{/number}","issue_comment_url":"https://api.github.com/repos/ajkamel/cover/issues/comments{/number}","contents_url":"https://api.github.com/repos/ajkamel/cover/contents/{+path}","compare_url":"https://api.github.com/repos/ajkamel/cover/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ajkamel/cover/merges","archive_url":"https://api.github.com/repos/ajkamel/cover/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ajkamel/cover/downloads","issues_url":"https://api.github.com/repos/ajkamel/cover/issues{/number}","pulls_url":"https://api.github.com/repos/ajkamel/cover/pulls{/number}","milestones_url":"https://api.github.com/repos/ajkamel/cover/milestones{/number}","notifications_url":"https://api.github.com/repos/ajkamel/cover/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ajkamel/cover/labels{/name}","releases_url":"https://api.github.com/repos/ajkamel/cover/releases{/id}","created_at":"2015-10-26T16:00:04Z","updated_at":"2015-10-31T13:51:00Z","pushed_at":"2015-11-02T20:05:28Z","git_url":"git://github.com/ajkamel/cover.git","ssh_url":"git@github.com:ajkamel/cover.git","clone_url":"https://github.com/ajkamel/cover.git","svn_url":"https://github.com/ajkamel/cover","homepage":null,"size":216,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"ajkamel:master","ref":"master","sha":"6f91d51c60b88fccf7230d98bd95649ae9b80265","user":{"login":"ajkamel","id":6248492,"avatar_url":"https://avatars.githubusercontent.com/u/6248492?v=3","gravatar_id":"","url":"https://api.github.com/users/ajkamel","html_url":"https://github.com/ajkamel","followers_url":"https://api.github.com/users/ajkamel/followers","following_url":"https://api.github.com/users/ajkamel/following{/other_user}","gists_url":"https://api.github.com/users/ajkamel/gists{/gist_id}","starred_url":"https://api.github.com/users/ajkamel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajkamel/subscriptions","organizations_url":"https://api.github.com/users/ajkamel/orgs","repos_url":"https://api.github.com/users/ajkamel/repos","events_url":"https://api.github.com/users/ajkamel/events{/privacy}","received_events_url":"https://api.github.com/users/ajkamel/received_events","type":"User","site_admin":false},"repo":{"id":44979871,"name":"cover","full_name":"ajkamel/cover","owner":{"login":"ajkamel","id":6248492,"avatar_url":"https://avatars.githubusercontent.com/u/6248492?v=3","gravatar_id":"","url":"https://api.github.com/users/ajkamel","html_url":"https://github.com/ajkamel","followers_url":"https://api.github.com/users/ajkamel/followers","following_url":"https://api.github.com/users/ajkamel/following{/other_user}","gists_url":"https://api.github.com/users/ajkamel/gists{/gist_id}","starred_url":"https://api.github.com/users/ajkamel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajkamel/subscriptions","organizations_url":"https://api.github.com/users/ajkamel/orgs","repos_url":"https://api.github.com/users/ajkamel/repos","events_url":"https://api.github.com/users/ajkamel/events{/privacy}","received_events_url":"https://api.github.com/users/ajkamel/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ajkamel/cover","description":" a social network centered around books","fork":false,"url":"https://api.github.com/repos/ajkamel/cover","forks_url":"https://api.github.com/repos/ajkamel/cover/forks","keys_url":"https://api.github.com/repos/ajkamel/cover/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ajkamel/cover/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ajkamel/cover/teams","hooks_url":"https://api.github.com/repos/ajkamel/cover/hooks","issue_events_url":"https://api.github.com/repos/ajkamel/cover/issues/events{/number}","events_url":"https://api.github.com/repos/ajkamel/cover/events","assignees_url":"https://api.github.com/repos/ajkamel/cover/assignees{/user}","branches_url":"https://api.github.com/repos/ajkamel/cover/branches{/branch}","tags_url":"https://api.github.com/repos/ajkamel/cover/tags","blobs_url":"https://api.github.com/repos/ajkamel/cover/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ajkamel/cover/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ajkamel/cover/git/refs{/sha}","trees_url":"https://api.github.com/repos/ajkamel/cover/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ajkamel/cover/statuses/{sha}","languages_url":"https://api.github.com/repos/ajkamel/cover/languages","stargazers_url":"https://api.github.com/repos/ajkamel/cover/stargazers","contributors_url":"https://api.github.com/repos/ajkamel/cover/contributors","subscribers_url":"https://api.github.com/repos/ajkamel/cover/subscribers","subscription_url":"https://api.github.com/repos/ajkamel/cover/subscription","commits_url":"https://api.github.com/repos/ajkamel/cover/commits{/sha}","git_commits_url":"https://api.github.com/repos/ajkamel/cover/git/commits{/sha}","comments_url":"https://api.github.com/repos/ajkamel/cover/comments{/number}","issue_comment_url":"https://api.github.com/repos/ajkamel/cover/issues/comments{/number}","contents_url":"https://api.github.com/repos/ajkamel/cover/contents/{+path}","compare_url":"https://api.github.com/repos/ajkamel/cover/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ajkamel/cover/merges","archive_url":"https://api.github.com/repos/ajkamel/cover/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ajkamel/cover/downloads","issues_url":"https://api.github.com/repos/ajkamel/cover/issues{/number}","pulls_url":"https://api.github.com/repos/ajkamel/cover/pulls{/number}","milestones_url":"https://api.github.com/repos/ajkamel/cover/milestones{/number}","notifications_url":"https://api.github.com/repos/ajkamel/cover/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ajkamel/cover/labels{/name}","releases_url":"https://api.github.com/repos/ajkamel/cover/releases{/id}","created_at":"2015-10-26T16:00:04Z","updated_at":"2015-10-31T13:51:00Z","pushed_at":"2015-11-02T20:05:28Z","git_url":"git://github.com/ajkamel/cover.git","ssh_url":"git@github.com:ajkamel/cover.git","clone_url":"https://github.com/ajkamel/cover.git","svn_url":"https://github.com/ajkamel/cover","homepage":null,"size":216,"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":3,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ajkamel/cover/pulls/3"},"html":{"href":"https://github.com/ajkamel/cover/pull/3"},"issue":{"href":"https://api.github.com/repos/ajkamel/cover/issues/3"},"comments":{"href":"https://api.github.com/repos/ajkamel/cover/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/ajkamel/cover/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/ajkamel/cover/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ajkamel/cover/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/ajkamel/cover/statuses/2909390953e94433a127ccdd7339ecf96b01be24"}}}}