{"action":"created","comment":{"url":"https://api.github.com/repos/Tranducthang28011996/sample_app/pulls/comments/131590169","pull_request_review_id":54582897,"id":131590169,"diff_hunk":"@@ -1,5 +1,31 @@\n-require 'rails_helper'\n-\n+require \"rails_helper\"\n RSpec.describe User, type: :model do\n-  pending \"add some examples to (or delete) #{__FILE__}\"\n+  describe \"has a valid factory\" do\n+    before do\n+      @sample_user = FactoryGirl.build :user\n+    end\n+    it \"factory valid\" do\n+      expect(@sample_user).to be_valid\n+    end\n+  end\n+\n+  describe \"validations\" do\n+    before do\n+      @sample_user = FactoryGirl.build :user\n+    end\n+\n+    it { should validate_length_of(:name).is_at_most(50)}","path":"spec/models/user_spec.rb","position":20,"original_position":20,"commit_id":"b2e2c9c620fb894711e3e7e8f63a0fc72c71529d","original_commit_id":"b2e2c9c620fb894711e3e7e8f63a0fc72c71529d","user":{"login":"huongnguyenmta","id":18224922,"avatar_url":"https://avatars3.githubusercontent.com/u/18224922?v=4","gravatar_id":"","url":"https://api.github.com/users/huongnguyenmta","html_url":"https://github.com/huongnguyenmta","followers_url":"https://api.github.com/users/huongnguyenmta/followers","following_url":"https://api.github.com/users/huongnguyenmta/following{/other_user}","gists_url":"https://api.github.com/users/huongnguyenmta/gists{/gist_id}","starred_url":"https://api.github.com/users/huongnguyenmta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huongnguyenmta/subscriptions","organizations_url":"https://api.github.com/users/huongnguyenmta/orgs","repos_url":"https://api.github.com/users/huongnguyenmta/repos","events_url":"https://api.github.com/users/huongnguyenmta/events{/privacy}","received_events_url":"https://api.github.com/users/huongnguyenmta/received_events","type":"User","site_admin":false},"body":"- Thừa khoảng trắng: `{should...`\r\n- Tương tự fix các lỗi tương tự bên dưới","created_at":"2017-08-07T07:44:58Z","updated_at":"2017-08-07T07:49:07Z","html_url":"https://github.com/Tranducthang28011996/sample_app/pull/5#discussion_r131590169","pull_request_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/Tranducthang28011996/sample_app/pulls/comments/131590169"},"html":{"href":"https://github.com/Tranducthang28011996/sample_app/pull/5#discussion_r131590169"},"pull_request":{"href":"https://api.github.com/repos/Tranducthang28011996/sample_app/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/Tranducthang28011996/sample_app/pulls/5","id":134002928,"html_url":"https://github.com/Tranducthang28011996/sample_app/pull/5","diff_url":"https://github.com/Tranducthang28011996/sample_app/pull/5.diff","patch_url":"https://github.com/Tranducthang28011996/sample_app/pull/5.patch","issue_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/issues/5","number":5,"state":"open","locked":false,"title":"rspec model and resquest","user":{"login":"Tranducthang28011996","id":15943131,"avatar_url":"https://avatars2.githubusercontent.com/u/15943131?v=4","gravatar_id":"","url":"https://api.github.com/users/Tranducthang28011996","html_url":"https://github.com/Tranducthang28011996","followers_url":"https://api.github.com/users/Tranducthang28011996/followers","following_url":"https://api.github.com/users/Tranducthang28011996/following{/other_user}","gists_url":"https://api.github.com/users/Tranducthang28011996/gists{/gist_id}","starred_url":"https://api.github.com/users/Tranducthang28011996/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tranducthang28011996/subscriptions","organizations_url":"https://api.github.com/users/Tranducthang28011996/orgs","repos_url":"https://api.github.com/users/Tranducthang28011996/repos","events_url":"https://api.github.com/users/Tranducthang28011996/events{/privacy}","received_events_url":"https://api.github.com/users/Tranducthang28011996/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-08-03T17:46:17Z","updated_at":"2017-08-07T07:49:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"15bb12be01abf439c99e9ff37cd4de1b5f26f81d","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/pulls/5/commits","review_comments_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/pulls/5/comments","review_comment_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/issues/5/comments","statuses_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/statuses/b2e2c9c620fb894711e3e7e8f63a0fc72c71529d","head":{"label":"Tranducthang28011996:spec_model_and_resquest","ref":"spec_model_and_resquest","sha":"b2e2c9c620fb894711e3e7e8f63a0fc72c71529d","user":{"login":"Tranducthang28011996","id":15943131,"avatar_url":"https://avatars2.githubusercontent.com/u/15943131?v=4","gravatar_id":"","url":"https://api.github.com/users/Tranducthang28011996","html_url":"https://github.com/Tranducthang28011996","followers_url":"https://api.github.com/users/Tranducthang28011996/followers","following_url":"https://api.github.com/users/Tranducthang28011996/following{/other_user}","gists_url":"https://api.github.com/users/Tranducthang28011996/gists{/gist_id}","starred_url":"https://api.github.com/users/Tranducthang28011996/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tranducthang28011996/subscriptions","organizations_url":"https://api.github.com/users/Tranducthang28011996/orgs","repos_url":"https://api.github.com/users/Tranducthang28011996/repos","events_url":"https://api.github.com/users/Tranducthang28011996/events{/privacy}","received_events_url":"https://api.github.com/users/Tranducthang28011996/received_events","type":"User","site_admin":false},"repo":{"id":99064116,"name":"sample_app","full_name":"Tranducthang28011996/sample_app","owner":{"login":"Tranducthang28011996","id":15943131,"avatar_url":"https://avatars2.githubusercontent.com/u/15943131?v=4","gravatar_id":"","url":"https://api.github.com/users/Tranducthang28011996","html_url":"https://github.com/Tranducthang28011996","followers_url":"https://api.github.com/users/Tranducthang28011996/followers","following_url":"https://api.github.com/users/Tranducthang28011996/following{/other_user}","gists_url":"https://api.github.com/users/Tranducthang28011996/gists{/gist_id}","starred_url":"https://api.github.com/users/Tranducthang28011996/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tranducthang28011996/subscriptions","organizations_url":"https://api.github.com/users/Tranducthang28011996/orgs","repos_url":"https://api.github.com/users/Tranducthang28011996/repos","events_url":"https://api.github.com/users/Tranducthang28011996/events{/privacy}","received_events_url":"https://api.github.com/users/Tranducthang28011996/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Tranducthang28011996/sample_app","description":null,"fork":false,"url":"https://api.github.com/repos/Tranducthang28011996/sample_app","forks_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/forks","keys_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/teams","hooks_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/hooks","issue_events_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/events","assignees_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/tags","blobs_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/languages","stargazers_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/stargazers","contributors_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/contributors","subscribers_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/subscribers","subscription_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/subscription","commits_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/merges","archive_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/downloads","issues_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/deployments","created_at":"2017-08-02T02:39:04Z","updated_at":"2017-08-02T02:39:04Z","pushed_at":"2017-08-07T07:29:24Z","git_url":"git://github.com/Tranducthang28011996/sample_app.git","ssh_url":"git@github.com:Tranducthang28011996/sample_app.git","clone_url":"https://github.com/Tranducthang28011996/sample_app.git","svn_url":"https://github.com/Tranducthang28011996/sample_app","homepage":null,"size":51,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"Tranducthang28011996:develop","ref":"develop","sha":"f6094161c74c91d8dd38222f549a3fbf1b5da365","user":{"login":"Tranducthang28011996","id":15943131,"avatar_url":"https://avatars2.githubusercontent.com/u/15943131?v=4","gravatar_id":"","url":"https://api.github.com/users/Tranducthang28011996","html_url":"https://github.com/Tranducthang28011996","followers_url":"https://api.github.com/users/Tranducthang28011996/followers","following_url":"https://api.github.com/users/Tranducthang28011996/following{/other_user}","gists_url":"https://api.github.com/users/Tranducthang28011996/gists{/gist_id}","starred_url":"https://api.github.com/users/Tranducthang28011996/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tranducthang28011996/subscriptions","organizations_url":"https://api.github.com/users/Tranducthang28011996/orgs","repos_url":"https://api.github.com/users/Tranducthang28011996/repos","events_url":"https://api.github.com/users/Tranducthang28011996/events{/privacy}","received_events_url":"https://api.github.com/users/Tranducthang28011996/received_events","type":"User","site_admin":false},"repo":{"id":99064116,"name":"sample_app","full_name":"Tranducthang28011996/sample_app","owner":{"login":"Tranducthang28011996","id":15943131,"avatar_url":"https://avatars2.githubusercontent.com/u/15943131?v=4","gravatar_id":"","url":"https://api.github.com/users/Tranducthang28011996","html_url":"https://github.com/Tranducthang28011996","followers_url":"https://api.github.com/users/Tranducthang28011996/followers","following_url":"https://api.github.com/users/Tranducthang28011996/following{/other_user}","gists_url":"https://api.github.com/users/Tranducthang28011996/gists{/gist_id}","starred_url":"https://api.github.com/users/Tranducthang28011996/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tranducthang28011996/subscriptions","organizations_url":"https://api.github.com/users/Tranducthang28011996/orgs","repos_url":"https://api.github.com/users/Tranducthang28011996/repos","events_url":"https://api.github.com/users/Tranducthang28011996/events{/privacy}","received_events_url":"https://api.github.com/users/Tranducthang28011996/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Tranducthang28011996/sample_app","description":null,"fork":false,"url":"https://api.github.com/repos/Tranducthang28011996/sample_app","forks_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/forks","keys_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/teams","hooks_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/hooks","issue_events_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/issues/events{/number}","events_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/events","assignees_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/assignees{/user}","branches_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/branches{/branch}","tags_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/tags","blobs_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/statuses/{sha}","languages_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/languages","stargazers_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/stargazers","contributors_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/contributors","subscribers_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/subscribers","subscription_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/subscription","commits_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/contents/{+path}","compare_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/merges","archive_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/downloads","issues_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/issues{/number}","pulls_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/pulls{/number}","milestones_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/milestones{/number}","notifications_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/labels{/name}","releases_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/releases{/id}","deployments_url":"https://api.github.com/repos/Tranducthang28011996/sample_app/deployments","created_at":"2017-08-02T02:39:04Z","updated_at":"2017-08-02T02:39:04Z","pushed_at":"2017-08-07T07:29:24Z","git_url":"git://github.com/Tranducthang28011996/sample_app.git","ssh_url":"git@github.com:Tranducthang28011996/sample_app.git","clone_url":"https://github.com/Tranducthang28011996/sample_app.git","svn_url":"https://github.com/Tranducthang28011996/sample_app","homepage":null,"size":51,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Tranducthang28011996/sample_app/pulls/5"},"html":{"href":"https://github.com/Tranducthang28011996/sample_app/pull/5"},"issue":{"href":"https://api.github.com/repos/Tranducthang28011996/sample_app/issues/5"},"comments":{"href":"https://api.github.com/repos/Tranducthang28011996/sample_app/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/Tranducthang28011996/sample_app/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/Tranducthang28011996/sample_app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Tranducthang28011996/sample_app/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/Tranducthang28011996/sample_app/statuses/b2e2c9c620fb894711e3e7e8f63a0fc72c71529d"}}}}
{"actor":{"display_login":"huongnguyenmta"}}