{"action":"created","comment":{"url":"https://api.github.com/repos/programmertoni/myfilx/pulls/comments/40212568","id":40212568,"diff_hunk":"@@ -58,4 +58,35 @@\n \n   end\n \n+  describe '#rating=(new_rating)' do\n+\n+    let(:user)  { Fabricate(:user) }\n+    let(:video) { Fabricate(:video) }\n+\n+    it 'changes rating for the review if the review is present' do\n+      review     = Fabricate(:review, video_id: video.id, user_id: user.id,","path":"spec/models/queue_item_spec.rb","position":38,"original_position":38,"commit_id":"8d883e4ea588141d8dff39e35ddc012d190be73a","original_commit_id":"8d883e4ea588141d8dff39e35ddc012d190be73a","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":"You don't have to set ids exactly - its ok to pass objects to associated methods - `video: video, user: user` for instance.","created_at":"2015-09-23T14:52:25Z","updated_at":"2015-09-23T14:52:25Z","html_url":"https://github.com/programmertoni/myfilx/pull/5#discussion_r40212568","pull_request_url":"https://api.github.com/repos/programmertoni/myfilx/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/programmertoni/myfilx/pulls/comments/40212568"},"html":{"href":"https://github.com/programmertoni/myfilx/pull/5#discussion_r40212568"},"pull_request":{"href":"https://api.github.com/repos/programmertoni/myfilx/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/programmertoni/myfilx/pulls/5","id":45748033,"html_url":"https://github.com/programmertoni/myfilx/pull/5","diff_url":"https://github.com/programmertoni/myfilx/pull/5.diff","patch_url":"https://github.com/programmertoni/myfilx/pull/5.patch","issue_url":"https://api.github.com/repos/programmertoni/myfilx/issues/5","number":5,"state":"open","locked":false,"title":"Mod4","user":{"login":"programmertoni","id":11177270,"avatar_url":"https://avatars.githubusercontent.com/u/11177270?v=3","gravatar_id":"","url":"https://api.github.com/users/programmertoni","html_url":"https://github.com/programmertoni","followers_url":"https://api.github.com/users/programmertoni/followers","following_url":"https://api.github.com/users/programmertoni/following{/other_user}","gists_url":"https://api.github.com/users/programmertoni/gists{/gist_id}","starred_url":"https://api.github.com/users/programmertoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/programmertoni/subscriptions","organizations_url":"https://api.github.com/users/programmertoni/orgs","repos_url":"https://api.github.com/users/programmertoni/repos","events_url":"https://api.github.com/users/programmertoni/events{/privacy}","received_events_url":"https://api.github.com/users/programmertoni/received_events","type":"User","site_admin":false},"body":"Features QueueItem:\r\n- setting positions\r\n- normalizing positions\r\n- creating and updating ratings for the queue item videos","created_at":"2015-09-23T06:48:48Z","updated_at":"2015-09-23T14:52:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8856535ec677e039cfdd90e7abfd02a8a6175d2c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/programmertoni/myfilx/pulls/5/commits","review_comments_url":"https://api.github.com/repos/programmertoni/myfilx/pulls/5/comments","review_comment_url":"https://api.github.com/repos/programmertoni/myfilx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/programmertoni/myfilx/issues/5/comments","statuses_url":"https://api.github.com/repos/programmertoni/myfilx/statuses/8d883e4ea588141d8dff39e35ddc012d190be73a","head":{"label":"programmertoni:mod4","ref":"mod4","sha":"8d883e4ea588141d8dff39e35ddc012d190be73a","user":{"login":"programmertoni","id":11177270,"avatar_url":"https://avatars.githubusercontent.com/u/11177270?v=3","gravatar_id":"","url":"https://api.github.com/users/programmertoni","html_url":"https://github.com/programmertoni","followers_url":"https://api.github.com/users/programmertoni/followers","following_url":"https://api.github.com/users/programmertoni/following{/other_user}","gists_url":"https://api.github.com/users/programmertoni/gists{/gist_id}","starred_url":"https://api.github.com/users/programmertoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/programmertoni/subscriptions","organizations_url":"https://api.github.com/users/programmertoni/orgs","repos_url":"https://api.github.com/users/programmertoni/repos","events_url":"https://api.github.com/users/programmertoni/events{/privacy}","received_events_url":"https://api.github.com/users/programmertoni/received_events","type":"User","site_admin":false},"repo":{"id":40005032,"name":"myfilx","full_name":"programmertoni/myfilx","owner":{"login":"programmertoni","id":11177270,"avatar_url":"https://avatars.githubusercontent.com/u/11177270?v=3","gravatar_id":"","url":"https://api.github.com/users/programmertoni","html_url":"https://github.com/programmertoni","followers_url":"https://api.github.com/users/programmertoni/followers","following_url":"https://api.github.com/users/programmertoni/following{/other_user}","gists_url":"https://api.github.com/users/programmertoni/gists{/gist_id}","starred_url":"https://api.github.com/users/programmertoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/programmertoni/subscriptions","organizations_url":"https://api.github.com/users/programmertoni/orgs","repos_url":"https://api.github.com/users/programmertoni/repos","events_url":"https://api.github.com/users/programmertoni/events{/privacy}","received_events_url":"https://api.github.com/users/programmertoni/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/programmertoni/myfilx","description":"","fork":false,"url":"https://api.github.com/repos/programmertoni/myfilx","forks_url":"https://api.github.com/repos/programmertoni/myfilx/forks","keys_url":"https://api.github.com/repos/programmertoni/myfilx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/programmertoni/myfilx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/programmertoni/myfilx/teams","hooks_url":"https://api.github.com/repos/programmertoni/myfilx/hooks","issue_events_url":"https://api.github.com/repos/programmertoni/myfilx/issues/events{/number}","events_url":"https://api.github.com/repos/programmertoni/myfilx/events","assignees_url":"https://api.github.com/repos/programmertoni/myfilx/assignees{/user}","branches_url":"https://api.github.com/repos/programmertoni/myfilx/branches{/branch}","tags_url":"https://api.github.com/repos/programmertoni/myfilx/tags","blobs_url":"https://api.github.com/repos/programmertoni/myfilx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/programmertoni/myfilx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/programmertoni/myfilx/git/refs{/sha}","trees_url":"https://api.github.com/repos/programmertoni/myfilx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/programmertoni/myfilx/statuses/{sha}","languages_url":"https://api.github.com/repos/programmertoni/myfilx/languages","stargazers_url":"https://api.github.com/repos/programmertoni/myfilx/stargazers","contributors_url":"https://api.github.com/repos/programmertoni/myfilx/contributors","subscribers_url":"https://api.github.com/repos/programmertoni/myfilx/subscribers","subscription_url":"https://api.github.com/repos/programmertoni/myfilx/subscription","commits_url":"https://api.github.com/repos/programmertoni/myfilx/commits{/sha}","git_commits_url":"https://api.github.com/repos/programmertoni/myfilx/git/commits{/sha}","comments_url":"https://api.github.com/repos/programmertoni/myfilx/comments{/number}","issue_comment_url":"https://api.github.com/repos/programmertoni/myfilx/issues/comments{/number}","contents_url":"https://api.github.com/repos/programmertoni/myfilx/contents/{+path}","compare_url":"https://api.github.com/repos/programmertoni/myfilx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/programmertoni/myfilx/merges","archive_url":"https://api.github.com/repos/programmertoni/myfilx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/programmertoni/myfilx/downloads","issues_url":"https://api.github.com/repos/programmertoni/myfilx/issues{/number}","pulls_url":"https://api.github.com/repos/programmertoni/myfilx/pulls{/number}","milestones_url":"https://api.github.com/repos/programmertoni/myfilx/milestones{/number}","notifications_url":"https://api.github.com/repos/programmertoni/myfilx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/programmertoni/myfilx/labels{/name}","releases_url":"https://api.github.com/repos/programmertoni/myfilx/releases{/id}","created_at":"2015-07-31T12:48:26Z","updated_at":"2015-09-08T06:59:12Z","pushed_at":"2015-09-23T06:48:48Z","git_url":"git://github.com/programmertoni/myfilx.git","ssh_url":"git@github.com:programmertoni/myfilx.git","clone_url":"https://github.com/programmertoni/myfilx.git","svn_url":"https://github.com/programmertoni/myfilx","homepage":null,"size":468,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"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":"programmertoni:master","ref":"master","sha":"cd10efc35769b855ade3314ad96daa45cb909d4d","user":{"login":"programmertoni","id":11177270,"avatar_url":"https://avatars.githubusercontent.com/u/11177270?v=3","gravatar_id":"","url":"https://api.github.com/users/programmertoni","html_url":"https://github.com/programmertoni","followers_url":"https://api.github.com/users/programmertoni/followers","following_url":"https://api.github.com/users/programmertoni/following{/other_user}","gists_url":"https://api.github.com/users/programmertoni/gists{/gist_id}","starred_url":"https://api.github.com/users/programmertoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/programmertoni/subscriptions","organizations_url":"https://api.github.com/users/programmertoni/orgs","repos_url":"https://api.github.com/users/programmertoni/repos","events_url":"https://api.github.com/users/programmertoni/events{/privacy}","received_events_url":"https://api.github.com/users/programmertoni/received_events","type":"User","site_admin":false},"repo":{"id":40005032,"name":"myfilx","full_name":"programmertoni/myfilx","owner":{"login":"programmertoni","id":11177270,"avatar_url":"https://avatars.githubusercontent.com/u/11177270?v=3","gravatar_id":"","url":"https://api.github.com/users/programmertoni","html_url":"https://github.com/programmertoni","followers_url":"https://api.github.com/users/programmertoni/followers","following_url":"https://api.github.com/users/programmertoni/following{/other_user}","gists_url":"https://api.github.com/users/programmertoni/gists{/gist_id}","starred_url":"https://api.github.com/users/programmertoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/programmertoni/subscriptions","organizations_url":"https://api.github.com/users/programmertoni/orgs","repos_url":"https://api.github.com/users/programmertoni/repos","events_url":"https://api.github.com/users/programmertoni/events{/privacy}","received_events_url":"https://api.github.com/users/programmertoni/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/programmertoni/myfilx","description":"","fork":false,"url":"https://api.github.com/repos/programmertoni/myfilx","forks_url":"https://api.github.com/repos/programmertoni/myfilx/forks","keys_url":"https://api.github.com/repos/programmertoni/myfilx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/programmertoni/myfilx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/programmertoni/myfilx/teams","hooks_url":"https://api.github.com/repos/programmertoni/myfilx/hooks","issue_events_url":"https://api.github.com/repos/programmertoni/myfilx/issues/events{/number}","events_url":"https://api.github.com/repos/programmertoni/myfilx/events","assignees_url":"https://api.github.com/repos/programmertoni/myfilx/assignees{/user}","branches_url":"https://api.github.com/repos/programmertoni/myfilx/branches{/branch}","tags_url":"https://api.github.com/repos/programmertoni/myfilx/tags","blobs_url":"https://api.github.com/repos/programmertoni/myfilx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/programmertoni/myfilx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/programmertoni/myfilx/git/refs{/sha}","trees_url":"https://api.github.com/repos/programmertoni/myfilx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/programmertoni/myfilx/statuses/{sha}","languages_url":"https://api.github.com/repos/programmertoni/myfilx/languages","stargazers_url":"https://api.github.com/repos/programmertoni/myfilx/stargazers","contributors_url":"https://api.github.com/repos/programmertoni/myfilx/contributors","subscribers_url":"https://api.github.com/repos/programmertoni/myfilx/subscribers","subscription_url":"https://api.github.com/repos/programmertoni/myfilx/subscription","commits_url":"https://api.github.com/repos/programmertoni/myfilx/commits{/sha}","git_commits_url":"https://api.github.com/repos/programmertoni/myfilx/git/commits{/sha}","comments_url":"https://api.github.com/repos/programmertoni/myfilx/comments{/number}","issue_comment_url":"https://api.github.com/repos/programmertoni/myfilx/issues/comments{/number}","contents_url":"https://api.github.com/repos/programmertoni/myfilx/contents/{+path}","compare_url":"https://api.github.com/repos/programmertoni/myfilx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/programmertoni/myfilx/merges","archive_url":"https://api.github.com/repos/programmertoni/myfilx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/programmertoni/myfilx/downloads","issues_url":"https://api.github.com/repos/programmertoni/myfilx/issues{/number}","pulls_url":"https://api.github.com/repos/programmertoni/myfilx/pulls{/number}","milestones_url":"https://api.github.com/repos/programmertoni/myfilx/milestones{/number}","notifications_url":"https://api.github.com/repos/programmertoni/myfilx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/programmertoni/myfilx/labels{/name}","releases_url":"https://api.github.com/repos/programmertoni/myfilx/releases{/id}","created_at":"2015-07-31T12:48:26Z","updated_at":"2015-09-08T06:59:12Z","pushed_at":"2015-09-23T06:48:48Z","git_url":"git://github.com/programmertoni/myfilx.git","ssh_url":"git@github.com:programmertoni/myfilx.git","clone_url":"https://github.com/programmertoni/myfilx.git","svn_url":"https://github.com/programmertoni/myfilx","homepage":null,"size":468,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"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/programmertoni/myfilx/pulls/5"},"html":{"href":"https://github.com/programmertoni/myfilx/pull/5"},"issue":{"href":"https://api.github.com/repos/programmertoni/myfilx/issues/5"},"comments":{"href":"https://api.github.com/repos/programmertoni/myfilx/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/programmertoni/myfilx/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/programmertoni/myfilx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/programmertoni/myfilx/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/programmertoni/myfilx/statuses/8d883e4ea588141d8dff39e35ddc012d190be73a"}}}}