{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fdf_19/pulls/comments/85461871","pull_request_review_id":6177521,"id":85461871,"diff_hunk":"@@ -0,0 +1,22 @@\n+require \"rails_helper\"\n+\n+RSpec.describe Product, type: :model do\n+  context \"association\" do\n+    it {is_expected.to belong_to :category}\n+    it {is_expected.to have_many :comments}\n+    it {is_expected.to have_many :order_details}\n+    it {is_expected.to have_many :orders}\n+  end\n+\n+  describe \"validates\" do\n+    context \"create is valid\" do","path":"spec/models/product_spec.rb","position":12,"original_position":12,"commit_id":"c9494b984b4696f343576cfdc7162a20a17c280d","original_commit_id":"75de75baff5e1579d6a8cac99cf0e15a6776d995","user":{"login":"ledinhdoan","id":22004676,"avatar_url":"https://avatars.githubusercontent.com/u/22004676?v=3","gravatar_id":"","url":"https://api.github.com/users/ledinhdoan","html_url":"https://github.com/ledinhdoan","followers_url":"https://api.github.com/users/ledinhdoan/followers","following_url":"https://api.github.com/users/ledinhdoan/following{/other_user}","gists_url":"https://api.github.com/users/ledinhdoan/gists{/gist_id}","starred_url":"https://api.github.com/users/ledinhdoan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ledinhdoan/subscriptions","organizations_url":"https://api.github.com/users/ledinhdoan/orgs","repos_url":"https://api.github.com/users/ledinhdoan/repos","events_url":"https://api.github.com/users/ledinhdoan/events{/privacy}","received_events_url":"https://api.github.com/users/ledinhdoan/received_events","type":"User","site_admin":false},"body":"dạ anh","created_at":"2016-10-28T02:08:04Z","updated_at":"2016-10-28T02:08:04Z","html_url":"https://github.com/framgia/fdf_19/pull/21#discussion_r85461871","pull_request_url":"https://api.github.com/repos/framgia/fdf_19/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/framgia/fdf_19/pulls/comments/85461871"},"html":{"href":"https://github.com/framgia/fdf_19/pull/21#discussion_r85461871"},"pull_request":{"href":"https://api.github.com/repos/framgia/fdf_19/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fdf_19/pulls/21","id":91176102,"html_url":"https://github.com/framgia/fdf_19/pull/21","diff_url":"https://github.com/framgia/fdf_19/pull/21.diff","patch_url":"https://github.com/framgia/fdf_19/pull/21.patch","issue_url":"https://api.github.com/repos/framgia/fdf_19/issues/21","number":21,"state":"open","locked":false,"title":"Rspec_model","user":{"login":"ledinhdoan","id":22004676,"avatar_url":"https://avatars.githubusercontent.com/u/22004676?v=3","gravatar_id":"","url":"https://api.github.com/users/ledinhdoan","html_url":"https://github.com/ledinhdoan","followers_url":"https://api.github.com/users/ledinhdoan/followers","following_url":"https://api.github.com/users/ledinhdoan/following{/other_user}","gists_url":"https://api.github.com/users/ledinhdoan/gists{/gist_id}","starred_url":"https://api.github.com/users/ledinhdoan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ledinhdoan/subscriptions","organizations_url":"https://api.github.com/users/ledinhdoan/orgs","repos_url":"https://api.github.com/users/ledinhdoan/repos","events_url":"https://api.github.com/users/ledinhdoan/events{/privacy}","received_events_url":"https://api.github.com/users/ledinhdoan/received_events","type":"User","site_admin":false},"body":"![screenshot from 2016-10-27 17 57 23](https://cloud.githubusercontent.com/assets/22004676/19764781/0b76ba0c-9c6f-11e6-8fc6-9d02b01d8de1.png)\r\n![screenshot from 2016-10-27 17 57 54](https://cloud.githubusercontent.com/assets/22004676/19764782/0b774d14-9c6f-11e6-8f4d-88110540b715.png)\r\n![screenshot from 2016-10-27 17 58 07](https://cloud.githubusercontent.com/assets/22004676/19764783/0b7eabb8-9c6f-11e6-9aa4-6f765d376d6b.png)\r\n![screenshot from 2016-10-27 17 57 41](https://cloud.githubusercontent.com/assets/22004676/19764789/13d045b0-9c6f-11e6-8b6b-74e0fd57076e.png)\r\n","created_at":"2016-10-27T10:48:38Z","updated_at":"2016-10-28T02:08:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1851bc3b359d777c544326aa8f8a0751ea3ec50f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fdf_19/pulls/21/commits","review_comments_url":"https://api.github.com/repos/framgia/fdf_19/pulls/21/comments","review_comment_url":"https://api.github.com/repos/framgia/fdf_19/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fdf_19/issues/21/comments","statuses_url":"https://api.github.com/repos/framgia/fdf_19/statuses/c9494b984b4696f343576cfdc7162a20a17c280d","head":{"label":"ledinhdoan:Rspec_model","ref":"Rspec_model","sha":"c9494b984b4696f343576cfdc7162a20a17c280d","user":{"login":"ledinhdoan","id":22004676,"avatar_url":"https://avatars.githubusercontent.com/u/22004676?v=3","gravatar_id":"","url":"https://api.github.com/users/ledinhdoan","html_url":"https://github.com/ledinhdoan","followers_url":"https://api.github.com/users/ledinhdoan/followers","following_url":"https://api.github.com/users/ledinhdoan/following{/other_user}","gists_url":"https://api.github.com/users/ledinhdoan/gists{/gist_id}","starred_url":"https://api.github.com/users/ledinhdoan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ledinhdoan/subscriptions","organizations_url":"https://api.github.com/users/ledinhdoan/orgs","repos_url":"https://api.github.com/users/ledinhdoan/repos","events_url":"https://api.github.com/users/ledinhdoan/events{/privacy}","received_events_url":"https://api.github.com/users/ledinhdoan/received_events","type":"User","site_admin":false},"repo":{"id":71989978,"name":"fdf_19","full_name":"ledinhdoan/fdf_19","owner":{"login":"ledinhdoan","id":22004676,"avatar_url":"https://avatars.githubusercontent.com/u/22004676?v=3","gravatar_id":"","url":"https://api.github.com/users/ledinhdoan","html_url":"https://github.com/ledinhdoan","followers_url":"https://api.github.com/users/ledinhdoan/followers","following_url":"https://api.github.com/users/ledinhdoan/following{/other_user}","gists_url":"https://api.github.com/users/ledinhdoan/gists{/gist_id}","starred_url":"https://api.github.com/users/ledinhdoan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ledinhdoan/subscriptions","organizations_url":"https://api.github.com/users/ledinhdoan/orgs","repos_url":"https://api.github.com/users/ledinhdoan/repos","events_url":"https://api.github.com/users/ledinhdoan/events{/privacy}","received_events_url":"https://api.github.com/users/ledinhdoan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ledinhdoan/fdf_19","description":"Framgia DN Open Edu - Training Project","fork":true,"url":"https://api.github.com/repos/ledinhdoan/fdf_19","forks_url":"https://api.github.com/repos/ledinhdoan/fdf_19/forks","keys_url":"https://api.github.com/repos/ledinhdoan/fdf_19/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ledinhdoan/fdf_19/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ledinhdoan/fdf_19/teams","hooks_url":"https://api.github.com/repos/ledinhdoan/fdf_19/hooks","issue_events_url":"https://api.github.com/repos/ledinhdoan/fdf_19/issues/events{/number}","events_url":"https://api.github.com/repos/ledinhdoan/fdf_19/events","assignees_url":"https://api.github.com/repos/ledinhdoan/fdf_19/assignees{/user}","branches_url":"https://api.github.com/repos/ledinhdoan/fdf_19/branches{/branch}","tags_url":"https://api.github.com/repos/ledinhdoan/fdf_19/tags","blobs_url":"https://api.github.com/repos/ledinhdoan/fdf_19/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ledinhdoan/fdf_19/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ledinhdoan/fdf_19/git/refs{/sha}","trees_url":"https://api.github.com/repos/ledinhdoan/fdf_19/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ledinhdoan/fdf_19/statuses/{sha}","languages_url":"https://api.github.com/repos/ledinhdoan/fdf_19/languages","stargazers_url":"https://api.github.com/repos/ledinhdoan/fdf_19/stargazers","contributors_url":"https://api.github.com/repos/ledinhdoan/fdf_19/contributors","subscribers_url":"https://api.github.com/repos/ledinhdoan/fdf_19/subscribers","subscription_url":"https://api.github.com/repos/ledinhdoan/fdf_19/subscription","commits_url":"https://api.github.com/repos/ledinhdoan/fdf_19/commits{/sha}","git_commits_url":"https://api.github.com/repos/ledinhdoan/fdf_19/git/commits{/sha}","comments_url":"https://api.github.com/repos/ledinhdoan/fdf_19/comments{/number}","issue_comment_url":"https://api.github.com/repos/ledinhdoan/fdf_19/issues/comments{/number}","contents_url":"https://api.github.com/repos/ledinhdoan/fdf_19/contents/{+path}","compare_url":"https://api.github.com/repos/ledinhdoan/fdf_19/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ledinhdoan/fdf_19/merges","archive_url":"https://api.github.com/repos/ledinhdoan/fdf_19/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ledinhdoan/fdf_19/downloads","issues_url":"https://api.github.com/repos/ledinhdoan/fdf_19/issues{/number}","pulls_url":"https://api.github.com/repos/ledinhdoan/fdf_19/pulls{/number}","milestones_url":"https://api.github.com/repos/ledinhdoan/fdf_19/milestones{/number}","notifications_url":"https://api.github.com/repos/ledinhdoan/fdf_19/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ledinhdoan/fdf_19/labels{/name}","releases_url":"https://api.github.com/repos/ledinhdoan/fdf_19/releases{/id}","deployments_url":"https://api.github.com/repos/ledinhdoan/fdf_19/deployments","created_at":"2016-10-26T09:54:43Z","updated_at":"2016-10-18T06:45:59Z","pushed_at":"2016-10-28T01:55:04Z","git_url":"git://github.com/ledinhdoan/fdf_19.git","ssh_url":"git@github.com:ledinhdoan/fdf_19.git","clone_url":"https://github.com/ledinhdoan/fdf_19.git","svn_url":"https://github.com/ledinhdoan/fdf_19","homepage":null,"size":284,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"framgia:develop","ref":"develop","sha":"d960929f4aded542f2947c866e0f1861ea1e541c","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":71217277,"name":"fdf_19","full_name":"framgia/fdf_19","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/fdf_19","description":"Framgia DN Open Edu - Training Project","fork":false,"url":"https://api.github.com/repos/framgia/fdf_19","forks_url":"https://api.github.com/repos/framgia/fdf_19/forks","keys_url":"https://api.github.com/repos/framgia/fdf_19/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fdf_19/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fdf_19/teams","hooks_url":"https://api.github.com/repos/framgia/fdf_19/hooks","issue_events_url":"https://api.github.com/repos/framgia/fdf_19/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fdf_19/events","assignees_url":"https://api.github.com/repos/framgia/fdf_19/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fdf_19/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fdf_19/tags","blobs_url":"https://api.github.com/repos/framgia/fdf_19/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fdf_19/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fdf_19/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fdf_19/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fdf_19/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fdf_19/languages","stargazers_url":"https://api.github.com/repos/framgia/fdf_19/stargazers","contributors_url":"https://api.github.com/repos/framgia/fdf_19/contributors","subscribers_url":"https://api.github.com/repos/framgia/fdf_19/subscribers","subscription_url":"https://api.github.com/repos/framgia/fdf_19/subscription","commits_url":"https://api.github.com/repos/framgia/fdf_19/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fdf_19/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fdf_19/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fdf_19/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fdf_19/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fdf_19/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fdf_19/merges","archive_url":"https://api.github.com/repos/framgia/fdf_19/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fdf_19/downloads","issues_url":"https://api.github.com/repos/framgia/fdf_19/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fdf_19/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fdf_19/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fdf_19/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fdf_19/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fdf_19/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fdf_19/deployments","created_at":"2016-10-18T06:45:59Z","updated_at":"2016-10-18T06:45:59Z","pushed_at":"2016-10-28T01:55:04Z","git_url":"git://github.com/framgia/fdf_19.git","ssh_url":"git@github.com:framgia/fdf_19.git","clone_url":"https://github.com/framgia/fdf_19.git","svn_url":"https://github.com/framgia/fdf_19","homepage":null,"size":277,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":2,"forks":5,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fdf_19/pulls/21"},"html":{"href":"https://github.com/framgia/fdf_19/pull/21"},"issue":{"href":"https://api.github.com/repos/framgia/fdf_19/issues/21"},"comments":{"href":"https://api.github.com/repos/framgia/fdf_19/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fdf_19/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fdf_19/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fdf_19/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fdf_19/statuses/c9494b984b4696f343576cfdc7162a20a17c280d"}}}}
{"actor":{"display_login":"ledinhdoan"}}