{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/fdf_12/pulls/comments/90591488","pull_request_review_id":11110676,"id":90591488,"diff_hunk":"@@ -1,5 +1,67 @@\n require \"rails_helper\"\n \n RSpec.describe Shop, type: :model do\n-  pending \"add some examples to (or delete) #{__FILE__}\"\n+  subject {FactoryGirl.create(:shop)}\n+\n+  context \"associations\" do\n+    it {is_expected.to belong_to :owner}\n+    it {is_expected.to have_many :users}\n+    it {is_expected.to have_many :reviews}\n+    it {is_expected.to have_many :comments}\n+    it {is_expected.to have_many :shop_managers}\n+    it {is_expected.to have_many :orders}\n+    it {is_expected.to have_many :order_products}\n+    it {is_expected.to have_many :tags}\n+    it {is_expected.to have_many :events}\n+  end\n+\n+  describe \"validates\" do","path":"spec/models/shop_spec.rb","position":19,"original_position":19,"commit_id":"264d958c8d9e09fea64d9275fd837de5a0c6052f","original_commit_id":"264d958c8d9e09fea64d9275fd837de5a0c6052f","user":{"login":"nvtanh","id":5591946,"avatar_url":"https://avatars.githubusercontent.com/u/5591946?v=3","gravatar_id":"","url":"https://api.github.com/users/nvtanh","html_url":"https://github.com/nvtanh","followers_url":"https://api.github.com/users/nvtanh/followers","following_url":"https://api.github.com/users/nvtanh/following{/other_user}","gists_url":"https://api.github.com/users/nvtanh/gists{/gist_id}","starred_url":"https://api.github.com/users/nvtanh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nvtanh/subscriptions","organizations_url":"https://api.github.com/users/nvtanh/orgs","repos_url":"https://api.github.com/users/nvtanh/repos","events_url":"https://api.github.com/users/nvtanh/events{/privacy}","received_events_url":"https://api.github.com/users/nvtanh/received_events","type":"User","site_admin":false},"body":"phân biệt describe, context, it ? trường hợp nào nên dùng cái nào hơn ? ","created_at":"2016-12-02T06:11:26Z","updated_at":"2016-12-02T06:11:36Z","html_url":"https://github.com/framgia/fdf_12/pull/143#discussion_r90591488","pull_request_url":"https://api.github.com/repos/framgia/fdf_12/pulls/143","_links":{"self":{"href":"https://api.github.com/repos/framgia/fdf_12/pulls/comments/90591488"},"html":{"href":"https://github.com/framgia/fdf_12/pull/143#discussion_r90591488"},"pull_request":{"href":"https://api.github.com/repos/framgia/fdf_12/pulls/143"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/fdf_12/pulls/143","id":96057681,"html_url":"https://github.com/framgia/fdf_12/pull/143","diff_url":"https://github.com/framgia/fdf_12/pull/143.diff","patch_url":"https://github.com/framgia/fdf_12/pull/143.patch","issue_url":"https://api.github.com/repos/framgia/fdf_12/issues/143","number":143,"state":"open","locked":false,"title":"test model shop","user":{"login":"phantien133","id":22651625,"avatar_url":"https://avatars.githubusercontent.com/u/22651625?v=3","gravatar_id":"","url":"https://api.github.com/users/phantien133","html_url":"https://github.com/phantien133","followers_url":"https://api.github.com/users/phantien133/followers","following_url":"https://api.github.com/users/phantien133/following{/other_user}","gists_url":"https://api.github.com/users/phantien133/gists{/gist_id}","starred_url":"https://api.github.com/users/phantien133/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phantien133/subscriptions","organizations_url":"https://api.github.com/users/phantien133/orgs","repos_url":"https://api.github.com/users/phantien133/repos","events_url":"https://api.github.com/users/phantien133/events{/privacy}","received_events_url":"https://api.github.com/users/phantien133/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-01T10:00:49Z","updated_at":"2016-12-02T06:11:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9288f4c0b024dc389e9f1183e4ae9521e2c9f27e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/fdf_12/pulls/143/commits","review_comments_url":"https://api.github.com/repos/framgia/fdf_12/pulls/143/comments","review_comment_url":"https://api.github.com/repos/framgia/fdf_12/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/fdf_12/issues/143/comments","statuses_url":"https://api.github.com/repos/framgia/fdf_12/statuses/264d958c8d9e09fea64d9275fd837de5a0c6052f","head":{"label":"phantien133:test-model-shop","ref":"test-model-shop","sha":"264d958c8d9e09fea64d9275fd837de5a0c6052f","user":{"login":"phantien133","id":22651625,"avatar_url":"https://avatars.githubusercontent.com/u/22651625?v=3","gravatar_id":"","url":"https://api.github.com/users/phantien133","html_url":"https://github.com/phantien133","followers_url":"https://api.github.com/users/phantien133/followers","following_url":"https://api.github.com/users/phantien133/following{/other_user}","gists_url":"https://api.github.com/users/phantien133/gists{/gist_id}","starred_url":"https://api.github.com/users/phantien133/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phantien133/subscriptions","organizations_url":"https://api.github.com/users/phantien133/orgs","repos_url":"https://api.github.com/users/phantien133/repos","events_url":"https://api.github.com/users/phantien133/events{/privacy}","received_events_url":"https://api.github.com/users/phantien133/received_events","type":"User","site_admin":false},"repo":{"id":75173792,"name":"fdf_12","full_name":"phantien133/fdf_12","owner":{"login":"phantien133","id":22651625,"avatar_url":"https://avatars.githubusercontent.com/u/22651625?v=3","gravatar_id":"","url":"https://api.github.com/users/phantien133","html_url":"https://github.com/phantien133","followers_url":"https://api.github.com/users/phantien133/followers","following_url":"https://api.github.com/users/phantien133/following{/other_user}","gists_url":"https://api.github.com/users/phantien133/gists{/gist_id}","starred_url":"https://api.github.com/users/phantien133/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phantien133/subscriptions","organizations_url":"https://api.github.com/users/phantien133/orgs","repos_url":"https://api.github.com/users/phantien133/repos","events_url":"https://api.github.com/users/phantien133/events{/privacy}","received_events_url":"https://api.github.com/users/phantien133/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/phantien133/fdf_12","description":"[DN] Food & Drink Ordering Web app. Production project after finishing the training.","fork":true,"url":"https://api.github.com/repos/phantien133/fdf_12","forks_url":"https://api.github.com/repos/phantien133/fdf_12/forks","keys_url":"https://api.github.com/repos/phantien133/fdf_12/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phantien133/fdf_12/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phantien133/fdf_12/teams","hooks_url":"https://api.github.com/repos/phantien133/fdf_12/hooks","issue_events_url":"https://api.github.com/repos/phantien133/fdf_12/issues/events{/number}","events_url":"https://api.github.com/repos/phantien133/fdf_12/events","assignees_url":"https://api.github.com/repos/phantien133/fdf_12/assignees{/user}","branches_url":"https://api.github.com/repos/phantien133/fdf_12/branches{/branch}","tags_url":"https://api.github.com/repos/phantien133/fdf_12/tags","blobs_url":"https://api.github.com/repos/phantien133/fdf_12/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phantien133/fdf_12/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phantien133/fdf_12/git/refs{/sha}","trees_url":"https://api.github.com/repos/phantien133/fdf_12/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phantien133/fdf_12/statuses/{sha}","languages_url":"https://api.github.com/repos/phantien133/fdf_12/languages","stargazers_url":"https://api.github.com/repos/phantien133/fdf_12/stargazers","contributors_url":"https://api.github.com/repos/phantien133/fdf_12/contributors","subscribers_url":"https://api.github.com/repos/phantien133/fdf_12/subscribers","subscription_url":"https://api.github.com/repos/phantien133/fdf_12/subscription","commits_url":"https://api.github.com/repos/phantien133/fdf_12/commits{/sha}","git_commits_url":"https://api.github.com/repos/phantien133/fdf_12/git/commits{/sha}","comments_url":"https://api.github.com/repos/phantien133/fdf_12/comments{/number}","issue_comment_url":"https://api.github.com/repos/phantien133/fdf_12/issues/comments{/number}","contents_url":"https://api.github.com/repos/phantien133/fdf_12/contents/{+path}","compare_url":"https://api.github.com/repos/phantien133/fdf_12/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phantien133/fdf_12/merges","archive_url":"https://api.github.com/repos/phantien133/fdf_12/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phantien133/fdf_12/downloads","issues_url":"https://api.github.com/repos/phantien133/fdf_12/issues{/number}","pulls_url":"https://api.github.com/repos/phantien133/fdf_12/pulls{/number}","milestones_url":"https://api.github.com/repos/phantien133/fdf_12/milestones{/number}","notifications_url":"https://api.github.com/repos/phantien133/fdf_12/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phantien133/fdf_12/labels{/name}","releases_url":"https://api.github.com/repos/phantien133/fdf_12/releases{/id}","deployments_url":"https://api.github.com/repos/phantien133/fdf_12/deployments","created_at":"2016-11-30T09:53:35Z","updated_at":"2016-09-13T08:32:53Z","pushed_at":"2016-12-02T05:39:44Z","git_url":"git://github.com/phantien133/fdf_12.git","ssh_url":"git@github.com:phantien133/fdf_12.git","clone_url":"https://github.com/phantien133/fdf_12.git","svn_url":"https://github.com/phantien133/fdf_12","homepage":null,"size":13384,"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":"5be07bc8ae1540aab63ec8396501a10d5151f1ef","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":68090103,"name":"fdf_12","full_name":"framgia/fdf_12","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_12","description":"[DN] Food & Drink Ordering Web app. Production project after finishing the training.","fork":false,"url":"https://api.github.com/repos/framgia/fdf_12","forks_url":"https://api.github.com/repos/framgia/fdf_12/forks","keys_url":"https://api.github.com/repos/framgia/fdf_12/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/fdf_12/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/fdf_12/teams","hooks_url":"https://api.github.com/repos/framgia/fdf_12/hooks","issue_events_url":"https://api.github.com/repos/framgia/fdf_12/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/fdf_12/events","assignees_url":"https://api.github.com/repos/framgia/fdf_12/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/fdf_12/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/fdf_12/tags","blobs_url":"https://api.github.com/repos/framgia/fdf_12/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/fdf_12/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/fdf_12/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/fdf_12/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/fdf_12/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/fdf_12/languages","stargazers_url":"https://api.github.com/repos/framgia/fdf_12/stargazers","contributors_url":"https://api.github.com/repos/framgia/fdf_12/contributors","subscribers_url":"https://api.github.com/repos/framgia/fdf_12/subscribers","subscription_url":"https://api.github.com/repos/framgia/fdf_12/subscription","commits_url":"https://api.github.com/repos/framgia/fdf_12/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/fdf_12/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/fdf_12/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/fdf_12/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/fdf_12/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/fdf_12/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/fdf_12/merges","archive_url":"https://api.github.com/repos/framgia/fdf_12/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/fdf_12/downloads","issues_url":"https://api.github.com/repos/framgia/fdf_12/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/fdf_12/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/fdf_12/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/fdf_12/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/fdf_12/labels{/name}","releases_url":"https://api.github.com/repos/framgia/fdf_12/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/fdf_12/deployments","created_at":"2016-09-13T08:32:53Z","updated_at":"2016-09-13T08:32:53Z","pushed_at":"2016-12-02T06:10:43Z","git_url":"git://github.com/framgia/fdf_12.git","ssh_url":"git@github.com:framgia/fdf_12.git","clone_url":"https://github.com/framgia/fdf_12.git","svn_url":"https://github.com/framgia/fdf_12","homepage":null,"size":13444,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":6,"forks":16,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/fdf_12/pulls/143"},"html":{"href":"https://github.com/framgia/fdf_12/pull/143"},"issue":{"href":"https://api.github.com/repos/framgia/fdf_12/issues/143"},"comments":{"href":"https://api.github.com/repos/framgia/fdf_12/issues/143/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/fdf_12/pulls/143/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/fdf_12/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/fdf_12/pulls/143/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/fdf_12/statuses/264d958c8d9e09fea64d9275fd837de5a0c6052f"}}}}
{"actor":{"display_login":"nvtanh"}}