{"action":"created","comment":{"url":"https://api.github.com/repos/shachopin/myflix/pulls/comments/41850516","id":41850516,"diff_hunk":"@@ -0,0 +1,53 @@\n+require 'spec_helper'\n+\n+describe Video do\n+  it { should belong_to(:category)}\n+  it { should validate_presence_of(:title)}\n+  it { should validate_presence_of(:description)}\n+\n+  describe \"search_by_title\" do","path":"spec/models/video_spec.rb","position":null,"original_position":8,"commit_id":"7cf1689df1fb37053222c8531ec7c5570744f72b","original_commit_id":"c90ac3ad34260699e780ca77eb75423357efd52c","user":{"login":"tomtomecek","id":7385469,"avatar_url":"https://avatars.githubusercontent.com/u/7385469?v=3","gravatar_id":"","url":"https://api.github.com/users/tomtomecek","html_url":"https://github.com/tomtomecek","followers_url":"https://api.github.com/users/tomtomecek/followers","following_url":"https://api.github.com/users/tomtomecek/following{/other_user}","gists_url":"https://api.github.com/users/tomtomecek/gists{/gist_id}","starred_url":"https://api.github.com/users/tomtomecek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomtomecek/subscriptions","organizations_url":"https://api.github.com/users/tomtomecek/orgs","repos_url":"https://api.github.com/users/tomtomecek/repos","events_url":"https://api.github.com/users/tomtomecek/events{/privacy}","received_events_url":"https://api.github.com/users/tomtomecek/received_events","type":"User","site_admin":false},"body":"The issue is that I don't know what method is that - class or instance? `describe \"search_by_title\"` Its easier to annotate your methods and driving RSpecs style on describing. Prepending `.` would be a class method and `#` would be an instance method. Read in the link I mentioned.","created_at":"2015-10-13T10:29:49Z","updated_at":"2015-10-13T10:29:49Z","html_url":"https://github.com/shachopin/myflix/pull/2#discussion_r41850516","pull_request_url":"https://api.github.com/repos/shachopin/myflix/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/shachopin/myflix/pulls/comments/41850516"},"html":{"href":"https://github.com/shachopin/myflix/pull/2#discussion_r41850516"},"pull_request":{"href":"https://api.github.com/repos/shachopin/myflix/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/shachopin/myflix/pulls/2","id":47227758,"html_url":"https://github.com/shachopin/myflix/pull/2","diff_url":"https://github.com/shachopin/myflix/pull/2.diff","patch_url":"https://github.com/shachopin/myflix/pull/2.patch","issue_url":"https://api.github.com/repos/shachopin/myflix/issues/2","number":2,"state":"open","locked":false,"title":"Week1","user":{"login":"shachopin","id":808348,"avatar_url":"https://avatars.githubusercontent.com/u/808348?v=3","gravatar_id":"","url":"https://api.github.com/users/shachopin","html_url":"https://github.com/shachopin","followers_url":"https://api.github.com/users/shachopin/followers","following_url":"https://api.github.com/users/shachopin/following{/other_user}","gists_url":"https://api.github.com/users/shachopin/gists{/gist_id}","starred_url":"https://api.github.com/users/shachopin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shachopin/subscriptions","organizations_url":"https://api.github.com/users/shachopin/orgs","repos_url":"https://api.github.com/users/shachopin/repos","events_url":"https://api.github.com/users/shachopin/events{/privacy}","received_events_url":"https://api.github.com/users/shachopin/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-09T02:13:03Z","updated_at":"2015-10-13T10:29:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a1dd09c640397151c6023e3a033c7593231c1860","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/shachopin/myflix/pulls/2/commits","review_comments_url":"https://api.github.com/repos/shachopin/myflix/pulls/2/comments","review_comment_url":"https://api.github.com/repos/shachopin/myflix/pulls/comments{/number}","comments_url":"https://api.github.com/repos/shachopin/myflix/issues/2/comments","statuses_url":"https://api.github.com/repos/shachopin/myflix/statuses/7cf1689df1fb37053222c8531ec7c5570744f72b","head":{"label":"shachopin:week1","ref":"week1","sha":"7cf1689df1fb37053222c8531ec7c5570744f72b","user":{"login":"shachopin","id":808348,"avatar_url":"https://avatars.githubusercontent.com/u/808348?v=3","gravatar_id":"","url":"https://api.github.com/users/shachopin","html_url":"https://github.com/shachopin","followers_url":"https://api.github.com/users/shachopin/followers","following_url":"https://api.github.com/users/shachopin/following{/other_user}","gists_url":"https://api.github.com/users/shachopin/gists{/gist_id}","starred_url":"https://api.github.com/users/shachopin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shachopin/subscriptions","organizations_url":"https://api.github.com/users/shachopin/orgs","repos_url":"https://api.github.com/users/shachopin/repos","events_url":"https://api.github.com/users/shachopin/events{/privacy}","received_events_url":"https://api.github.com/users/shachopin/received_events","type":"User","site_admin":false},"repo":{"id":42912175,"name":"myflix","full_name":"shachopin/myflix","owner":{"login":"shachopin","id":808348,"avatar_url":"https://avatars.githubusercontent.com/u/808348?v=3","gravatar_id":"","url":"https://api.github.com/users/shachopin","html_url":"https://github.com/shachopin","followers_url":"https://api.github.com/users/shachopin/followers","following_url":"https://api.github.com/users/shachopin/following{/other_user}","gists_url":"https://api.github.com/users/shachopin/gists{/gist_id}","starred_url":"https://api.github.com/users/shachopin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shachopin/subscriptions","organizations_url":"https://api.github.com/users/shachopin/orgs","repos_url":"https://api.github.com/users/shachopin/repos","events_url":"https://api.github.com/users/shachopin/events{/privacy}","received_events_url":"https://api.github.com/users/shachopin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shachopin/myflix","description":"","fork":true,"url":"https://api.github.com/repos/shachopin/myflix","forks_url":"https://api.github.com/repos/shachopin/myflix/forks","keys_url":"https://api.github.com/repos/shachopin/myflix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shachopin/myflix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shachopin/myflix/teams","hooks_url":"https://api.github.com/repos/shachopin/myflix/hooks","issue_events_url":"https://api.github.com/repos/shachopin/myflix/issues/events{/number}","events_url":"https://api.github.com/repos/shachopin/myflix/events","assignees_url":"https://api.github.com/repos/shachopin/myflix/assignees{/user}","branches_url":"https://api.github.com/repos/shachopin/myflix/branches{/branch}","tags_url":"https://api.github.com/repos/shachopin/myflix/tags","blobs_url":"https://api.github.com/repos/shachopin/myflix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shachopin/myflix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shachopin/myflix/git/refs{/sha}","trees_url":"https://api.github.com/repos/shachopin/myflix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shachopin/myflix/statuses/{sha}","languages_url":"https://api.github.com/repos/shachopin/myflix/languages","stargazers_url":"https://api.github.com/repos/shachopin/myflix/stargazers","contributors_url":"https://api.github.com/repos/shachopin/myflix/contributors","subscribers_url":"https://api.github.com/repos/shachopin/myflix/subscribers","subscription_url":"https://api.github.com/repos/shachopin/myflix/subscription","commits_url":"https://api.github.com/repos/shachopin/myflix/commits{/sha}","git_commits_url":"https://api.github.com/repos/shachopin/myflix/git/commits{/sha}","comments_url":"https://api.github.com/repos/shachopin/myflix/comments{/number}","issue_comment_url":"https://api.github.com/repos/shachopin/myflix/issues/comments{/number}","contents_url":"https://api.github.com/repos/shachopin/myflix/contents/{+path}","compare_url":"https://api.github.com/repos/shachopin/myflix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shachopin/myflix/merges","archive_url":"https://api.github.com/repos/shachopin/myflix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shachopin/myflix/downloads","issues_url":"https://api.github.com/repos/shachopin/myflix/issues{/number}","pulls_url":"https://api.github.com/repos/shachopin/myflix/pulls{/number}","milestones_url":"https://api.github.com/repos/shachopin/myflix/milestones{/number}","notifications_url":"https://api.github.com/repos/shachopin/myflix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shachopin/myflix/labels{/name}","releases_url":"https://api.github.com/repos/shachopin/myflix/releases{/id}","created_at":"2015-09-22T04:53:34Z","updated_at":"2015-09-22T04:55:55Z","pushed_at":"2015-10-13T04:55:14Z","git_url":"git://github.com/shachopin/myflix.git","ssh_url":"git@github.com:shachopin/myflix.git","clone_url":"https://github.com/shachopin/myflix.git","svn_url":"https://github.com/shachopin/myflix","homepage":"","size":380,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"shachopin:master","ref":"master","sha":"406840c367cbc95a138c5cd5f2f26d34d92ef999","user":{"login":"shachopin","id":808348,"avatar_url":"https://avatars.githubusercontent.com/u/808348?v=3","gravatar_id":"","url":"https://api.github.com/users/shachopin","html_url":"https://github.com/shachopin","followers_url":"https://api.github.com/users/shachopin/followers","following_url":"https://api.github.com/users/shachopin/following{/other_user}","gists_url":"https://api.github.com/users/shachopin/gists{/gist_id}","starred_url":"https://api.github.com/users/shachopin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shachopin/subscriptions","organizations_url":"https://api.github.com/users/shachopin/orgs","repos_url":"https://api.github.com/users/shachopin/repos","events_url":"https://api.github.com/users/shachopin/events{/privacy}","received_events_url":"https://api.github.com/users/shachopin/received_events","type":"User","site_admin":false},"repo":{"id":42912175,"name":"myflix","full_name":"shachopin/myflix","owner":{"login":"shachopin","id":808348,"avatar_url":"https://avatars.githubusercontent.com/u/808348?v=3","gravatar_id":"","url":"https://api.github.com/users/shachopin","html_url":"https://github.com/shachopin","followers_url":"https://api.github.com/users/shachopin/followers","following_url":"https://api.github.com/users/shachopin/following{/other_user}","gists_url":"https://api.github.com/users/shachopin/gists{/gist_id}","starred_url":"https://api.github.com/users/shachopin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shachopin/subscriptions","organizations_url":"https://api.github.com/users/shachopin/orgs","repos_url":"https://api.github.com/users/shachopin/repos","events_url":"https://api.github.com/users/shachopin/events{/privacy}","received_events_url":"https://api.github.com/users/shachopin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shachopin/myflix","description":"","fork":true,"url":"https://api.github.com/repos/shachopin/myflix","forks_url":"https://api.github.com/repos/shachopin/myflix/forks","keys_url":"https://api.github.com/repos/shachopin/myflix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shachopin/myflix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shachopin/myflix/teams","hooks_url":"https://api.github.com/repos/shachopin/myflix/hooks","issue_events_url":"https://api.github.com/repos/shachopin/myflix/issues/events{/number}","events_url":"https://api.github.com/repos/shachopin/myflix/events","assignees_url":"https://api.github.com/repos/shachopin/myflix/assignees{/user}","branches_url":"https://api.github.com/repos/shachopin/myflix/branches{/branch}","tags_url":"https://api.github.com/repos/shachopin/myflix/tags","blobs_url":"https://api.github.com/repos/shachopin/myflix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shachopin/myflix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shachopin/myflix/git/refs{/sha}","trees_url":"https://api.github.com/repos/shachopin/myflix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shachopin/myflix/statuses/{sha}","languages_url":"https://api.github.com/repos/shachopin/myflix/languages","stargazers_url":"https://api.github.com/repos/shachopin/myflix/stargazers","contributors_url":"https://api.github.com/repos/shachopin/myflix/contributors","subscribers_url":"https://api.github.com/repos/shachopin/myflix/subscribers","subscription_url":"https://api.github.com/repos/shachopin/myflix/subscription","commits_url":"https://api.github.com/repos/shachopin/myflix/commits{/sha}","git_commits_url":"https://api.github.com/repos/shachopin/myflix/git/commits{/sha}","comments_url":"https://api.github.com/repos/shachopin/myflix/comments{/number}","issue_comment_url":"https://api.github.com/repos/shachopin/myflix/issues/comments{/number}","contents_url":"https://api.github.com/repos/shachopin/myflix/contents/{+path}","compare_url":"https://api.github.com/repos/shachopin/myflix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shachopin/myflix/merges","archive_url":"https://api.github.com/repos/shachopin/myflix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shachopin/myflix/downloads","issues_url":"https://api.github.com/repos/shachopin/myflix/issues{/number}","pulls_url":"https://api.github.com/repos/shachopin/myflix/pulls{/number}","milestones_url":"https://api.github.com/repos/shachopin/myflix/milestones{/number}","notifications_url":"https://api.github.com/repos/shachopin/myflix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shachopin/myflix/labels{/name}","releases_url":"https://api.github.com/repos/shachopin/myflix/releases{/id}","created_at":"2015-09-22T04:53:34Z","updated_at":"2015-09-22T04:55:55Z","pushed_at":"2015-10-13T04:55:14Z","git_url":"git://github.com/shachopin/myflix.git","ssh_url":"git@github.com:shachopin/myflix.git","clone_url":"https://github.com/shachopin/myflix.git","svn_url":"https://github.com/shachopin/myflix","homepage":"","size":380,"stargazers_count":0,"watchers_count":0,"language":"HTML","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/shachopin/myflix/pulls/2"},"html":{"href":"https://github.com/shachopin/myflix/pull/2"},"issue":{"href":"https://api.github.com/repos/shachopin/myflix/issues/2"},"comments":{"href":"https://api.github.com/repos/shachopin/myflix/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/shachopin/myflix/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/shachopin/myflix/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/shachopin/myflix/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/shachopin/myflix/statuses/7cf1689df1fb37053222c8531ec7c5570744f72b"}}}}