{"action":"created","comment":{"url":"https://api.github.com/repos/mskubenich/swan_rc3/pulls/comments/28309339","id":28309339,"diff_hunk":"@@ -24,4 +24,13 @@\n \n     expect(article.valid?).to eq(true)\n   end\n+\n+  it \"should belongs to author\" do\n+    author = create :user\n+    articles = create :articles\n+    articles.author = author\n+    articles.save\n+\n+    expect(articles.author.id).to eq(author.id)\n+  end","path":"spec/models/article_spec.rb","position":12,"original_position":12,"commit_id":"adfed3bd017492b63cd78f690add85b3363e2db3","original_commit_id":"adfed3bd017492b63cd78f690add85b3363e2db3","user":{"login":"mskubenich","id":2027106,"avatar_url":"https://avatars.githubusercontent.com/u/2027106?v=3","gravatar_id":"","url":"https://api.github.com/users/mskubenich","html_url":"https://github.com/mskubenich","followers_url":"https://api.github.com/users/mskubenich/followers","following_url":"https://api.github.com/users/mskubenich/following{/other_user}","gists_url":"https://api.github.com/users/mskubenich/gists{/gist_id}","starred_url":"https://api.github.com/users/mskubenich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mskubenich/subscriptions","organizations_url":"https://api.github.com/users/mskubenich/orgs","repos_url":"https://api.github.com/users/mskubenich/repos","events_url":"https://api.github.com/users/mskubenich/events{/privacy}","received_events_url":"https://api.github.com/users/mskubenich/received_events","type":"User","site_admin":false},"body":"Ти хоть це перевіряв ???\r\nЦе не буде працювати поки в таблиці articles нема поля author_id","created_at":"2015-04-14T08:42:05Z","updated_at":"2015-04-14T08:42:05Z","html_url":"https://github.com/mskubenich/swan_rc3/pull/61#discussion_r28309339","pull_request_url":"https://api.github.com/repos/mskubenich/swan_rc3/pulls/61","_links":{"self":{"href":"https://api.github.com/repos/mskubenich/swan_rc3/pulls/comments/28309339"},"html":{"href":"https://github.com/mskubenich/swan_rc3/pull/61#discussion_r28309339"},"pull_request":{"href":"https://api.github.com/repos/mskubenich/swan_rc3/pulls/61"}}},"pull_request":{"url":"https://api.github.com/repos/mskubenich/swan_rc3/pulls/61","id":32858548,"html_url":"https://github.com/mskubenich/swan_rc3/pull/61","diff_url":"https://github.com/mskubenich/swan_rc3/pull/61.diff","patch_url":"https://github.com/mskubenich/swan_rc3/pull/61.patch","issue_url":"https://api.github.com/repos/mskubenich/swan_rc3/issues/61","number":61,"state":"open","locked":false,"title":"relationships user with articles","user":{"login":"Macrovarius","id":11319836,"avatar_url":"https://avatars.githubusercontent.com/u/11319836?v=3","gravatar_id":"","url":"https://api.github.com/users/Macrovarius","html_url":"https://github.com/Macrovarius","followers_url":"https://api.github.com/users/Macrovarius/followers","following_url":"https://api.github.com/users/Macrovarius/following{/other_user}","gists_url":"https://api.github.com/users/Macrovarius/gists{/gist_id}","starred_url":"https://api.github.com/users/Macrovarius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Macrovarius/subscriptions","organizations_url":"https://api.github.com/users/Macrovarius/orgs","repos_url":"https://api.github.com/users/Macrovarius/repos","events_url":"https://api.github.com/users/Macrovarius/events{/privacy}","received_events_url":"https://api.github.com/users/Macrovarius/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-08T13:16:36Z","updated_at":"2015-04-14T08:42:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4a362c1882cf1dabad1b2fa2ec0da123c49f5304","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mskubenich/swan_rc3/pulls/61/commits","review_comments_url":"https://api.github.com/repos/mskubenich/swan_rc3/pulls/61/comments","review_comment_url":"https://api.github.com/repos/mskubenich/swan_rc3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mskubenich/swan_rc3/issues/61/comments","statuses_url":"https://api.github.com/repos/mskubenich/swan_rc3/statuses/adfed3bd017492b63cd78f690add85b3363e2db3","head":{"label":"mskubenich:feature/user_articles","ref":"feature/user_articles","sha":"adfed3bd017492b63cd78f690add85b3363e2db3","user":{"login":"mskubenich","id":2027106,"avatar_url":"https://avatars.githubusercontent.com/u/2027106?v=3","gravatar_id":"","url":"https://api.github.com/users/mskubenich","html_url":"https://github.com/mskubenich","followers_url":"https://api.github.com/users/mskubenich/followers","following_url":"https://api.github.com/users/mskubenich/following{/other_user}","gists_url":"https://api.github.com/users/mskubenich/gists{/gist_id}","starred_url":"https://api.github.com/users/mskubenich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mskubenich/subscriptions","organizations_url":"https://api.github.com/users/mskubenich/orgs","repos_url":"https://api.github.com/users/mskubenich/repos","events_url":"https://api.github.com/users/mskubenich/events{/privacy}","received_events_url":"https://api.github.com/users/mskubenich/received_events","type":"User","site_admin":false},"repo":{"id":31660680,"name":"swan_rc3","full_name":"mskubenich/swan_rc3","owner":{"login":"mskubenich","id":2027106,"avatar_url":"https://avatars.githubusercontent.com/u/2027106?v=3","gravatar_id":"","url":"https://api.github.com/users/mskubenich","html_url":"https://github.com/mskubenich","followers_url":"https://api.github.com/users/mskubenich/followers","following_url":"https://api.github.com/users/mskubenich/following{/other_user}","gists_url":"https://api.github.com/users/mskubenich/gists{/gist_id}","starred_url":"https://api.github.com/users/mskubenich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mskubenich/subscriptions","organizations_url":"https://api.github.com/users/mskubenich/orgs","repos_url":"https://api.github.com/users/mskubenich/repos","events_url":"https://api.github.com/users/mskubenich/events{/privacy}","received_events_url":"https://api.github.com/users/mskubenich/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mskubenich/swan_rc3","description":"SWAN Ruby Courses 3","fork":false,"url":"https://api.github.com/repos/mskubenich/swan_rc3","forks_url":"https://api.github.com/repos/mskubenich/swan_rc3/forks","keys_url":"https://api.github.com/repos/mskubenich/swan_rc3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mskubenich/swan_rc3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mskubenich/swan_rc3/teams","hooks_url":"https://api.github.com/repos/mskubenich/swan_rc3/hooks","issue_events_url":"https://api.github.com/repos/mskubenich/swan_rc3/issues/events{/number}","events_url":"https://api.github.com/repos/mskubenich/swan_rc3/events","assignees_url":"https://api.github.com/repos/mskubenich/swan_rc3/assignees{/user}","branches_url":"https://api.github.com/repos/mskubenich/swan_rc3/branches{/branch}","tags_url":"https://api.github.com/repos/mskubenich/swan_rc3/tags","blobs_url":"https://api.github.com/repos/mskubenich/swan_rc3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mskubenich/swan_rc3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mskubenich/swan_rc3/git/refs{/sha}","trees_url":"https://api.github.com/repos/mskubenich/swan_rc3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mskubenich/swan_rc3/statuses/{sha}","languages_url":"https://api.github.com/repos/mskubenich/swan_rc3/languages","stargazers_url":"https://api.github.com/repos/mskubenich/swan_rc3/stargazers","contributors_url":"https://api.github.com/repos/mskubenich/swan_rc3/contributors","subscribers_url":"https://api.github.com/repos/mskubenich/swan_rc3/subscribers","subscription_url":"https://api.github.com/repos/mskubenich/swan_rc3/subscription","commits_url":"https://api.github.com/repos/mskubenich/swan_rc3/commits{/sha}","git_commits_url":"https://api.github.com/repos/mskubenich/swan_rc3/git/commits{/sha}","comments_url":"https://api.github.com/repos/mskubenich/swan_rc3/comments{/number}","issue_comment_url":"https://api.github.com/repos/mskubenich/swan_rc3/issues/comments{/number}","contents_url":"https://api.github.com/repos/mskubenich/swan_rc3/contents/{+path}","compare_url":"https://api.github.com/repos/mskubenich/swan_rc3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mskubenich/swan_rc3/merges","archive_url":"https://api.github.com/repos/mskubenich/swan_rc3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mskubenich/swan_rc3/downloads","issues_url":"https://api.github.com/repos/mskubenich/swan_rc3/issues{/number}","pulls_url":"https://api.github.com/repos/mskubenich/swan_rc3/pulls{/number}","milestones_url":"https://api.github.com/repos/mskubenich/swan_rc3/milestones{/number}","notifications_url":"https://api.github.com/repos/mskubenich/swan_rc3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mskubenich/swan_rc3/labels{/name}","releases_url":"https://api.github.com/repos/mskubenich/swan_rc3/releases{/id}","created_at":"2015-03-04T14:21:48Z","updated_at":"2015-04-09T17:19:02Z","pushed_at":"2015-04-13T16:29:41Z","git_url":"git://github.com/mskubenich/swan_rc3.git","ssh_url":"git@github.com:mskubenich/swan_rc3.git","clone_url":"https://github.com/mskubenich/swan_rc3.git","svn_url":"https://github.com/mskubenich/swan_rc3","homepage":null,"size":8180,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":5,"default_branch":"master"}},"base":{"label":"mskubenich:master","ref":"master","sha":"c45318af4f0b3aa46a244e673c07c64310dffb5d","user":{"login":"mskubenich","id":2027106,"avatar_url":"https://avatars.githubusercontent.com/u/2027106?v=3","gravatar_id":"","url":"https://api.github.com/users/mskubenich","html_url":"https://github.com/mskubenich","followers_url":"https://api.github.com/users/mskubenich/followers","following_url":"https://api.github.com/users/mskubenich/following{/other_user}","gists_url":"https://api.github.com/users/mskubenich/gists{/gist_id}","starred_url":"https://api.github.com/users/mskubenich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mskubenich/subscriptions","organizations_url":"https://api.github.com/users/mskubenich/orgs","repos_url":"https://api.github.com/users/mskubenich/repos","events_url":"https://api.github.com/users/mskubenich/events{/privacy}","received_events_url":"https://api.github.com/users/mskubenich/received_events","type":"User","site_admin":false},"repo":{"id":31660680,"name":"swan_rc3","full_name":"mskubenich/swan_rc3","owner":{"login":"mskubenich","id":2027106,"avatar_url":"https://avatars.githubusercontent.com/u/2027106?v=3","gravatar_id":"","url":"https://api.github.com/users/mskubenich","html_url":"https://github.com/mskubenich","followers_url":"https://api.github.com/users/mskubenich/followers","following_url":"https://api.github.com/users/mskubenich/following{/other_user}","gists_url":"https://api.github.com/users/mskubenich/gists{/gist_id}","starred_url":"https://api.github.com/users/mskubenich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mskubenich/subscriptions","organizations_url":"https://api.github.com/users/mskubenich/orgs","repos_url":"https://api.github.com/users/mskubenich/repos","events_url":"https://api.github.com/users/mskubenich/events{/privacy}","received_events_url":"https://api.github.com/users/mskubenich/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mskubenich/swan_rc3","description":"SWAN Ruby Courses 3","fork":false,"url":"https://api.github.com/repos/mskubenich/swan_rc3","forks_url":"https://api.github.com/repos/mskubenich/swan_rc3/forks","keys_url":"https://api.github.com/repos/mskubenich/swan_rc3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mskubenich/swan_rc3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mskubenich/swan_rc3/teams","hooks_url":"https://api.github.com/repos/mskubenich/swan_rc3/hooks","issue_events_url":"https://api.github.com/repos/mskubenich/swan_rc3/issues/events{/number}","events_url":"https://api.github.com/repos/mskubenich/swan_rc3/events","assignees_url":"https://api.github.com/repos/mskubenich/swan_rc3/assignees{/user}","branches_url":"https://api.github.com/repos/mskubenich/swan_rc3/branches{/branch}","tags_url":"https://api.github.com/repos/mskubenich/swan_rc3/tags","blobs_url":"https://api.github.com/repos/mskubenich/swan_rc3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mskubenich/swan_rc3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mskubenich/swan_rc3/git/refs{/sha}","trees_url":"https://api.github.com/repos/mskubenich/swan_rc3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mskubenich/swan_rc3/statuses/{sha}","languages_url":"https://api.github.com/repos/mskubenich/swan_rc3/languages","stargazers_url":"https://api.github.com/repos/mskubenich/swan_rc3/stargazers","contributors_url":"https://api.github.com/repos/mskubenich/swan_rc3/contributors","subscribers_url":"https://api.github.com/repos/mskubenich/swan_rc3/subscribers","subscription_url":"https://api.github.com/repos/mskubenich/swan_rc3/subscription","commits_url":"https://api.github.com/repos/mskubenich/swan_rc3/commits{/sha}","git_commits_url":"https://api.github.com/repos/mskubenich/swan_rc3/git/commits{/sha}","comments_url":"https://api.github.com/repos/mskubenich/swan_rc3/comments{/number}","issue_comment_url":"https://api.github.com/repos/mskubenich/swan_rc3/issues/comments{/number}","contents_url":"https://api.github.com/repos/mskubenich/swan_rc3/contents/{+path}","compare_url":"https://api.github.com/repos/mskubenich/swan_rc3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mskubenich/swan_rc3/merges","archive_url":"https://api.github.com/repos/mskubenich/swan_rc3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mskubenich/swan_rc3/downloads","issues_url":"https://api.github.com/repos/mskubenich/swan_rc3/issues{/number}","pulls_url":"https://api.github.com/repos/mskubenich/swan_rc3/pulls{/number}","milestones_url":"https://api.github.com/repos/mskubenich/swan_rc3/milestones{/number}","notifications_url":"https://api.github.com/repos/mskubenich/swan_rc3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mskubenich/swan_rc3/labels{/name}","releases_url":"https://api.github.com/repos/mskubenich/swan_rc3/releases{/id}","created_at":"2015-03-04T14:21:48Z","updated_at":"2015-04-09T17:19:02Z","pushed_at":"2015-04-13T16:29:41Z","git_url":"git://github.com/mskubenich/swan_rc3.git","ssh_url":"git@github.com:mskubenich/swan_rc3.git","clone_url":"https://github.com/mskubenich/swan_rc3.git","svn_url":"https://github.com/mskubenich/swan_rc3","homepage":null,"size":8180,"stargazers_count":5,"watchers_count":5,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":10,"forks":0,"open_issues":10,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mskubenich/swan_rc3/pulls/61"},"html":{"href":"https://github.com/mskubenich/swan_rc3/pull/61"},"issue":{"href":"https://api.github.com/repos/mskubenich/swan_rc3/issues/61"},"comments":{"href":"https://api.github.com/repos/mskubenich/swan_rc3/issues/61/comments"},"review_comments":{"href":"https://api.github.com/repos/mskubenich/swan_rc3/pulls/61/comments"},"review_comment":{"href":"https://api.github.com/repos/mskubenich/swan_rc3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mskubenich/swan_rc3/pulls/61/commits"},"statuses":{"href":"https://api.github.com/repos/mskubenich/swan_rc3/statuses/adfed3bd017492b63cd78f690add85b3363e2db3"}}}}