{"action":"created","comment":{"url":"https://api.github.com/repos/wolox-training/adl-rails/pulls/comments/218449524","pull_request_review_id":156388816,"id":218449524,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxODQ0OTUyNA==","diff_hunk":"@@ -0,0 +1,92 @@\n+require 'rails_helper'\n+\n+describe Book, type: :model do\n+  subject(:book) { described_class.new(gender: gender, author: author, image: image, title: title, editor: editor, year: year) }\n+\n+  let(:gender) { Faker::Book.genre }\n+  let(:author) { Faker::Book.author }\n+  let(:image) { 'ImagenFalsa123.gif' }\n+  let(:title) { Faker::Book.title }\n+  let(:editor) { Faker::Book.publisher }\n+  let(:year) { '2006' }\n+\n+  it do\n+    is_expected.to be_valid\n+  end\n+\n+  describe '#Create' do\n+    context 'when the user is created' do\n+      it 'also creates its random gender' do\n+        expect(book.gender).to be_present\n+      end\n+\n+      it 'also creates its random author' do\n+        expect(book.author).to be_present\n+      end\n+\n+      it 'also creates its image' do\n+        expect(book.image).to be_present\n+      end\n+\n+      it 'also creates its random title' do\n+        expect(book.title).to be_present\n+      end\n+\n+      it 'also creates its random editor' do\n+        expect(book.editor).to be_present\n+      end\n+\n+      it 'also creates its year, 2006' do\n+        expect(book.year).to be_present\n+      end\n+    end\n+\n+    context 'When author is nil' do","path":"spec/models/book_spec.rb","position":44,"original_position":44,"commit_id":"e16777e2665d90d7b5088c11c018551a35987726","original_commit_id":"e16777e2665d90d7b5088c11c018551a35987726","user":{"login":"nicozar95","id":11698687,"node_id":"MDQ6VXNlcjExNjk4Njg3","avatar_url":"https://avatars1.githubusercontent.com/u/11698687?v=4","gravatar_id":"","url":"https://api.github.com/users/nicozar95","html_url":"https://github.com/nicozar95","followers_url":"https://api.github.com/users/nicozar95/followers","following_url":"https://api.github.com/users/nicozar95/following{/other_user}","gists_url":"https://api.github.com/users/nicozar95/gists{/gist_id}","starred_url":"https://api.github.com/users/nicozar95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicozar95/subscriptions","organizations_url":"https://api.github.com/users/nicozar95/orgs","repos_url":"https://api.github.com/users/nicozar95/repos","events_url":"https://api.github.com/users/nicozar95/events{/privacy}","received_events_url":"https://api.github.com/users/nicozar95/received_events","type":"User","site_admin":false},"body":"Dont capitalize the description on a context","created_at":"2018-09-18T14:13:08Z","updated_at":"2018-09-18T14:13:08Z","html_url":"https://github.com/wolox-training/adl-rails/pull/8#discussion_r218449524","pull_request_url":"https://api.github.com/repos/wolox-training/adl-rails/pulls/8","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/wolox-training/adl-rails/pulls/comments/218449524"},"html":{"href":"https://github.com/wolox-training/adl-rails/pull/8#discussion_r218449524"},"pull_request":{"href":"https://api.github.com/repos/wolox-training/adl-rails/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/wolox-training/adl-rails/pulls/8","id":216314452,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE2MzE0NDUy","html_url":"https://github.com/wolox-training/adl-rails/pull/8","diff_url":"https://github.com/wolox-training/adl-rails/pull/8.diff","patch_url":"https://github.com/wolox-training/adl-rails/pull/8.patch","issue_url":"https://api.github.com/repos/wolox-training/adl-rails/issues/8","number":8,"state":"open","locked":false,"title":"Rspec tests for book model","user":{"login":"alanlamaswolox","id":42941051,"node_id":"MDQ6VXNlcjQyOTQxMDUx","avatar_url":"https://avatars1.githubusercontent.com/u/42941051?v=4","gravatar_id":"","url":"https://api.github.com/users/alanlamaswolox","html_url":"https://github.com/alanlamaswolox","followers_url":"https://api.github.com/users/alanlamaswolox/followers","following_url":"https://api.github.com/users/alanlamaswolox/following{/other_user}","gists_url":"https://api.github.com/users/alanlamaswolox/gists{/gist_id}","starred_url":"https://api.github.com/users/alanlamaswolox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanlamaswolox/subscriptions","organizations_url":"https://api.github.com/users/alanlamaswolox/orgs","repos_url":"https://api.github.com/users/alanlamaswolox/repos","events_url":"https://api.github.com/users/alanlamaswolox/events{/privacy}","received_events_url":"https://api.github.com/users/alanlamaswolox/received_events","type":"User","site_admin":false},"body":"## Summary\r\nI installed the rspec gem and the test for the book model\r\n\r\n## Trello\r\nhttps://trello.com/c/6l4YgSIH/22-12-crear-tests-para-el-modelo-de-book","created_at":"2018-09-18T13:47:56Z","updated_at":"2018-09-18T14:13:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"30cbab8e5f3386bf7fa689e4f49cfc9b4efdcde3","assignee":{"login":"nicozar95","id":11698687,"node_id":"MDQ6VXNlcjExNjk4Njg3","avatar_url":"https://avatars1.githubusercontent.com/u/11698687?v=4","gravatar_id":"","url":"https://api.github.com/users/nicozar95","html_url":"https://github.com/nicozar95","followers_url":"https://api.github.com/users/nicozar95/followers","following_url":"https://api.github.com/users/nicozar95/following{/other_user}","gists_url":"https://api.github.com/users/nicozar95/gists{/gist_id}","starred_url":"https://api.github.com/users/nicozar95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicozar95/subscriptions","organizations_url":"https://api.github.com/users/nicozar95/orgs","repos_url":"https://api.github.com/users/nicozar95/repos","events_url":"https://api.github.com/users/nicozar95/events{/privacy}","received_events_url":"https://api.github.com/users/nicozar95/received_events","type":"User","site_admin":false},"assignees":[{"login":"nicozar95","id":11698687,"node_id":"MDQ6VXNlcjExNjk4Njg3","avatar_url":"https://avatars1.githubusercontent.com/u/11698687?v=4","gravatar_id":"","url":"https://api.github.com/users/nicozar95","html_url":"https://github.com/nicozar95","followers_url":"https://api.github.com/users/nicozar95/followers","following_url":"https://api.github.com/users/nicozar95/following{/other_user}","gists_url":"https://api.github.com/users/nicozar95/gists{/gist_id}","starred_url":"https://api.github.com/users/nicozar95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicozar95/subscriptions","organizations_url":"https://api.github.com/users/nicozar95/orgs","repos_url":"https://api.github.com/users/nicozar95/repos","events_url":"https://api.github.com/users/nicozar95/events{/privacy}","received_events_url":"https://api.github.com/users/nicozar95/received_events","type":"User","site_admin":false},{"login":"fedeest","id":17027853,"node_id":"MDQ6VXNlcjE3MDI3ODUz","avatar_url":"https://avatars3.githubusercontent.com/u/17027853?v=4","gravatar_id":"","url":"https://api.github.com/users/fedeest","html_url":"https://github.com/fedeest","followers_url":"https://api.github.com/users/fedeest/followers","following_url":"https://api.github.com/users/fedeest/following{/other_user}","gists_url":"https://api.github.com/users/fedeest/gists{/gist_id}","starred_url":"https://api.github.com/users/fedeest/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fedeest/subscriptions","organizations_url":"https://api.github.com/users/fedeest/orgs","repos_url":"https://api.github.com/users/fedeest/repos","events_url":"https://api.github.com/users/fedeest/events{/privacy}","received_events_url":"https://api.github.com/users/fedeest/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/wolox-training/adl-rails/pulls/8/commits","review_comments_url":"https://api.github.com/repos/wolox-training/adl-rails/pulls/8/comments","review_comment_url":"https://api.github.com/repos/wolox-training/adl-rails/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wolox-training/adl-rails/issues/8/comments","statuses_url":"https://api.github.com/repos/wolox-training/adl-rails/statuses/e16777e2665d90d7b5088c11c018551a35987726","head":{"label":"wolox-training:rspec-book-model","ref":"rspec-book-model","sha":"e16777e2665d90d7b5088c11c018551a35987726","user":{"login":"wolox-training","id":14113351,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTEzMzUx","avatar_url":"https://avatars1.githubusercontent.com/u/14113351?v=4","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"repo":{"id":147213434,"node_id":"MDEwOlJlcG9zaXRvcnkxNDcyMTM0MzQ=","name":"adl-rails","full_name":"wolox-training/adl-rails","private":false,"owner":{"login":"wolox-training","id":14113351,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTEzMzUx","avatar_url":"https://avatars1.githubusercontent.com/u/14113351?v=4","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/wolox-training/adl-rails","description":null,"fork":false,"url":"https://api.github.com/repos/wolox-training/adl-rails","forks_url":"https://api.github.com/repos/wolox-training/adl-rails/forks","keys_url":"https://api.github.com/repos/wolox-training/adl-rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wolox-training/adl-rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wolox-training/adl-rails/teams","hooks_url":"https://api.github.com/repos/wolox-training/adl-rails/hooks","issue_events_url":"https://api.github.com/repos/wolox-training/adl-rails/issues/events{/number}","events_url":"https://api.github.com/repos/wolox-training/adl-rails/events","assignees_url":"https://api.github.com/repos/wolox-training/adl-rails/assignees{/user}","branches_url":"https://api.github.com/repos/wolox-training/adl-rails/branches{/branch}","tags_url":"https://api.github.com/repos/wolox-training/adl-rails/tags","blobs_url":"https://api.github.com/repos/wolox-training/adl-rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wolox-training/adl-rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wolox-training/adl-rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/wolox-training/adl-rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wolox-training/adl-rails/statuses/{sha}","languages_url":"https://api.github.com/repos/wolox-training/adl-rails/languages","stargazers_url":"https://api.github.com/repos/wolox-training/adl-rails/stargazers","contributors_url":"https://api.github.com/repos/wolox-training/adl-rails/contributors","subscribers_url":"https://api.github.com/repos/wolox-training/adl-rails/subscribers","subscription_url":"https://api.github.com/repos/wolox-training/adl-rails/subscription","commits_url":"https://api.github.com/repos/wolox-training/adl-rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/wolox-training/adl-rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/wolox-training/adl-rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/wolox-training/adl-rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/wolox-training/adl-rails/contents/{+path}","compare_url":"https://api.github.com/repos/wolox-training/adl-rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wolox-training/adl-rails/merges","archive_url":"https://api.github.com/repos/wolox-training/adl-rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wolox-training/adl-rails/downloads","issues_url":"https://api.github.com/repos/wolox-training/adl-rails/issues{/number}","pulls_url":"https://api.github.com/repos/wolox-training/adl-rails/pulls{/number}","milestones_url":"https://api.github.com/repos/wolox-training/adl-rails/milestones{/number}","notifications_url":"https://api.github.com/repos/wolox-training/adl-rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wolox-training/adl-rails/labels{/name}","releases_url":"https://api.github.com/repos/wolox-training/adl-rails/releases{/id}","deployments_url":"https://api.github.com/repos/wolox-training/adl-rails/deployments","created_at":"2018-09-03T14:06:41Z","updated_at":"2018-09-14T17:46:38Z","pushed_at":"2018-09-18T13:47:57Z","git_url":"git://github.com/wolox-training/adl-rails.git","ssh_url":"git@github.com:wolox-training/adl-rails.git","clone_url":"https://github.com/wolox-training/adl-rails.git","svn_url":"https://github.com/wolox-training/adl-rails","homepage":"","size":65,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"wolox-training:master","ref":"master","sha":"9ecc99de335d45445fe1e4bed5ca4bf38c741526","user":{"login":"wolox-training","id":14113351,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTEzMzUx","avatar_url":"https://avatars1.githubusercontent.com/u/14113351?v=4","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"repo":{"id":147213434,"node_id":"MDEwOlJlcG9zaXRvcnkxNDcyMTM0MzQ=","name":"adl-rails","full_name":"wolox-training/adl-rails","private":false,"owner":{"login":"wolox-training","id":14113351,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE0MTEzMzUx","avatar_url":"https://avatars1.githubusercontent.com/u/14113351?v=4","gravatar_id":"","url":"https://api.github.com/users/wolox-training","html_url":"https://github.com/wolox-training","followers_url":"https://api.github.com/users/wolox-training/followers","following_url":"https://api.github.com/users/wolox-training/following{/other_user}","gists_url":"https://api.github.com/users/wolox-training/gists{/gist_id}","starred_url":"https://api.github.com/users/wolox-training/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wolox-training/subscriptions","organizations_url":"https://api.github.com/users/wolox-training/orgs","repos_url":"https://api.github.com/users/wolox-training/repos","events_url":"https://api.github.com/users/wolox-training/events{/privacy}","received_events_url":"https://api.github.com/users/wolox-training/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/wolox-training/adl-rails","description":null,"fork":false,"url":"https://api.github.com/repos/wolox-training/adl-rails","forks_url":"https://api.github.com/repos/wolox-training/adl-rails/forks","keys_url":"https://api.github.com/repos/wolox-training/adl-rails/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wolox-training/adl-rails/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wolox-training/adl-rails/teams","hooks_url":"https://api.github.com/repos/wolox-training/adl-rails/hooks","issue_events_url":"https://api.github.com/repos/wolox-training/adl-rails/issues/events{/number}","events_url":"https://api.github.com/repos/wolox-training/adl-rails/events","assignees_url":"https://api.github.com/repos/wolox-training/adl-rails/assignees{/user}","branches_url":"https://api.github.com/repos/wolox-training/adl-rails/branches{/branch}","tags_url":"https://api.github.com/repos/wolox-training/adl-rails/tags","blobs_url":"https://api.github.com/repos/wolox-training/adl-rails/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wolox-training/adl-rails/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wolox-training/adl-rails/git/refs{/sha}","trees_url":"https://api.github.com/repos/wolox-training/adl-rails/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wolox-training/adl-rails/statuses/{sha}","languages_url":"https://api.github.com/repos/wolox-training/adl-rails/languages","stargazers_url":"https://api.github.com/repos/wolox-training/adl-rails/stargazers","contributors_url":"https://api.github.com/repos/wolox-training/adl-rails/contributors","subscribers_url":"https://api.github.com/repos/wolox-training/adl-rails/subscribers","subscription_url":"https://api.github.com/repos/wolox-training/adl-rails/subscription","commits_url":"https://api.github.com/repos/wolox-training/adl-rails/commits{/sha}","git_commits_url":"https://api.github.com/repos/wolox-training/adl-rails/git/commits{/sha}","comments_url":"https://api.github.com/repos/wolox-training/adl-rails/comments{/number}","issue_comment_url":"https://api.github.com/repos/wolox-training/adl-rails/issues/comments{/number}","contents_url":"https://api.github.com/repos/wolox-training/adl-rails/contents/{+path}","compare_url":"https://api.github.com/repos/wolox-training/adl-rails/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wolox-training/adl-rails/merges","archive_url":"https://api.github.com/repos/wolox-training/adl-rails/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wolox-training/adl-rails/downloads","issues_url":"https://api.github.com/repos/wolox-training/adl-rails/issues{/number}","pulls_url":"https://api.github.com/repos/wolox-training/adl-rails/pulls{/number}","milestones_url":"https://api.github.com/repos/wolox-training/adl-rails/milestones{/number}","notifications_url":"https://api.github.com/repos/wolox-training/adl-rails/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wolox-training/adl-rails/labels{/name}","releases_url":"https://api.github.com/repos/wolox-training/adl-rails/releases{/id}","deployments_url":"https://api.github.com/repos/wolox-training/adl-rails/deployments","created_at":"2018-09-03T14:06:41Z","updated_at":"2018-09-14T17:46:38Z","pushed_at":"2018-09-18T13:47:57Z","git_url":"git://github.com/wolox-training/adl-rails.git","ssh_url":"git@github.com:wolox-training/adl-rails.git","clone_url":"https://github.com/wolox-training/adl-rails.git","svn_url":"https://github.com/wolox-training/adl-rails","homepage":"","size":65,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wolox-training/adl-rails/pulls/8"},"html":{"href":"https://github.com/wolox-training/adl-rails/pull/8"},"issue":{"href":"https://api.github.com/repos/wolox-training/adl-rails/issues/8"},"comments":{"href":"https://api.github.com/repos/wolox-training/adl-rails/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/wolox-training/adl-rails/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/wolox-training/adl-rails/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wolox-training/adl-rails/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/wolox-training/adl-rails/statuses/e16777e2665d90d7b5088c11c018551a35987726"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"nicozar95"}}