{"action":"created","comment":{"url":"https://api.github.com/repos/vincedevendra/myflix/pulls/comments/36907095","id":36907095,"diff_hunk":"@@ -1,410 +1,333 @@\n require 'spec_helper'\n \n describe QueueItemsController do\n-  let(:pete) { Fabricate(:user) }\n+  before do \n+    set_current_user \n+    request.env['HTTP_REFERER'] = \"from_whence_I_came\"\n+  end\n \n   describe \"GET index\" do\n-\n-    context \"when a user is signed in\" do\n-      let(:q1) { Fabricate(:queue_item, user: pete, position: 1) }\n-      let(:q2) { Fabricate(:queue_item, user: pete, position: 2) }\n-            \n-      before { session[:current_user_id] = pete.id }\n-      \n-      it \"sets @queue_items to those that belong to current user\" do\n-        get :index\n-        expect(assigns(:queue_items)).to match_array([q1, q2])\n-      end\n+    let(:q1) { Fabricate(:queue_item, user: current_user, position: 1) }\n+    let(:q2) { Fabricate(:queue_item, user: current_user, position: 2) }\n+    \n+    it \"sets @queue_items to those that belong to current user\" do\n+      get :index\n+      expect(assigns(:queue_items)).to match_array([q1, q2])\n     end\n-      \n-    context \"When no user is signed in\" do\n-      it \"redirects to welcome_path\" do\n-        get :index\n-        expect(response).to redirect_to welcome_path\n-      end\n+\n+    it_behaves_like \"no_current_user_redirect\" do      \n+      let(:action) { get :index }\n     end\n   end\n \n   describe \"POST create\" do\n     let(:video) { Fabricate(:video) }\n \n-    context \"when a user is signed in\" do\n-      before do\n-        session[:current_user_id] = pete.id\n-        request.env['HTTP_REFERER'] = \"from_whence_I_came\"\n+    context \"when the video is not yet in the user's queue\" do\n+        \n+      it \"creates an instance of QueueItem\" do\n+        post :create, video_id: video.id\n+        expect(QueueItem.count).to eq(1)\n       end\n-      \n-      context \"when the video is not yet in the user's queue\" do\n-        before do\n-          session[:current_user_id] = pete.id\n-          request.env['HTTP_REFERER'] = \"from_whence_I_came\"\n-        end\n-          \n-        it \"creates an instance of QueueItem\" do\n-          post :create, video_id: video.id\n-          expect(QueueItem.count).to eq(1)\n-        end\n \n-        it \"associates new queue item with current user\" do\n-          post :create, video_id: video.id\n-          expect(QueueItem.first.user).to eq(pete)\n-        end\n+      it \"associates new queue item with current user\" do\n+        post :create, video_id: video.id\n+        expect(QueueItem.first.user).to eq(current_user)\n+      end\n \n-        it \"associates new queue item with video\" do\n-          post :create, video_id: video.id\n-          expect(QueueItem.first.video).to eq(video)\n-        end\n+      it \"associates new queue item with video\" do\n+        post :create, video_id: video.id\n+        expect(QueueItem.first.video).to eq(video)\n+      end\n \n-        it \"assigns the new QueueItem one greater than the highest position of existing queue items\" do\n-          Fabricate(:queue_item, position: 1, user: pete)\n-          post :create, video_id: video.id\n-          expect(QueueItem.last.position).to eq(2)\n-        end\n+      it \"assigns the new QueueItem one greater than the highest position of existing queue items\" do\n+        Fabricate(:queue_item, position: 1, user: current_user)\n+        post :create, video_id: video.id\n+        expect(QueueItem.last.position).to eq(2)\n+      end\n \n-        it \"sets flash[:success]\" do\n-          post :create, video_id: video.id\n-          expect(flash[:success]).to be_present\n-        end\n+      it \"sets flash[:success]\" do\n+        post :create, video_id: video.id\n+        expect(flash[:success]).to be_present\n+      end\n \n-        it \"redirects back to the previous page\" do\n-          post :create, video_id: video.id\n-          expect(response).to redirect_to \"from_whence_I_came\"\n-        end\n+      it \"redirects back to the previous page\" do\n+        post :create, video_id: video.id\n+        expect(response).to redirect_to \"from_whence_I_came\"\n       end\n+    end\n \n-      context \"when the video is already in the user's queue\" do\n-        before do \n-          Fabricate(:queue_item, position: 1, user: pete, video: video)\n-          post :create, video_id: video.id\n-        end\n+    context \"when the video is already in the user's queue\" do\n+      before do \n+        Fabricate(:queue_item, position: 1, user: current_user, video: video)\n+        post :create, video_id: video.id\n+      end\n \n-        it \"doesn't save the queue item\" do\n-          expect(QueueItem.count).to eq(1)\n-        end\n+      it \"doesn't save the queue item\" do\n+        expect(QueueItem.count).to eq(1)\n+      end\n \n-        it \"redirects back to the previous page\" do\n-          expect(response).to redirect_to \"from_whence_I_came\"\n-        end\n+      it \"redirects back to the previous page\" do\n+        expect(response).to redirect_to \"from_whence_I_came\"\n       end\n     end\n \n-    context \"when no user is signed in\" do\n-      it \"redirects_to welcome_path\" do\n-        post :create, video_id: video.id\n-        expect(response).to redirect_to(welcome_path)\n-      end\n+    it_behaves_like \"no_current_user_redirect\" do\n+      let(:action) { post :create, video_id: video.id }\n     end\n   end\n \n   describe \"DELETE destroy\" do\n-    let(:james) { Fabricate(:user) }\n-    let (:video1) { Fabricate(:video) }\n-    let (:video2) { Fabricate(:video) }\n-    let!(:q1) { Fabricate(:queue_item, position: 1, user: pete, video: video1) }\n-    let!(:q2) { Fabricate(:queue_item, position: 1, user: james, video: video2) }\n-    let!(:q3) { Fabricate(:queue_item, position: 2, user: james, video: Fabricate(:video)) }\n-\n-    context \"when a user is signed in\" do\n-      before do\n-        session[:current_user_id] = james.id\n-        request.env['HTTP_REFERER'] = \"from_whence_I_came\"\n-        delete :destroy, id: q2.id\n-      end\n-\n-      context \"when current user owns the queue item\" do\n-        it \"deletes a queue item\" do\n-          expect(QueueItem.count).to eq(2)\n-        end\n+    context \"when current user owns the queue item\" do\n+      let!(:q1) { Fabricate(:queue_item, position: 1, user: current_user) }\n+      let!(:q2) { Fabricate(:queue_item, position: 2, user: current_user) }\n+      let!(:q3) { Fabricate(:queue_item, position: 3, user: current_user) }\n \n-        it \"flashes info message\" do\n-          expect(flash[:info]).to be_present\n-        end\n-\n-        it \"reduces the position of all items deleted item was in front of by one\" do\n-          expect(q3.reload.position).to eq(1)\n-        end\n+      before { delete :destroy, id: q2.id }\n \n-        it \"redirects :back\" do\n-          expect(response).to redirect_to \"from_whence_I_came\"\n-        end\n+      it \"deletes a queue item\" do\n+        expect(QueueItem.count).to eq(2)\n       end\n \n-      context \"when current user does not own queue item\" do\n-        before { delete :destroy, id: q1.id }\n+      it \"flashes info message\" do\n+        expect(flash[:info]).to be_present\n+      end\n \n-        it \"deletes a queue item only if the current user owns it\" do\n-          expect(:q1).to be_truthy\n-        end\n+      it \"reduces the position of all items deleted item was in front of by one\" do\n+        expect(q3.reload.position).to eq(2)\n+      end\n \n-        it \"flashes a danger message if no video is deleted\" do\n-          expect(flash[:danger]).to be_present\n-        end\n+      it \"redirects :back\" do\n+        expect(response).to redirect_to \"from_whence_I_came\"\n       end\n     end\n \n-    context \"when no user is signed in\" do\n-      before { delete :destroy, id: q2.id }\n+    context \"when current user does not own queue item\" do\n+      let!(:q1) { Fabricate(:queue_item) }\n+      let!(:q2) { Fabricate(:queue_item, position: 1, user: current_user) }\n+      let!(:q3) { Fabricate(:queue_item, position: 2, user: current_user) }\n+    \n+      before { delete :destroy, id: q1.id }\n \n-      it \"doesn't delete any queue items\" do\n-        expect(QueueItem.count).to eq(3)\n+      it \"deletes a queue item only if the current user owns it\" do\n+        expect(:q1).to be_truthy\n       end\n \n-      it \"redirect_to welcome_path\" do\n-        expect(response).to redirect_to welcome_path\n+      it \"flashes a danger message if no video is deleted\" do\n+        expect(flash[:danger]).to be_present\n       end\n     end\n+\n+    it_behaves_like \"no_current_user_redirect\" do\n+      let(:q2) { Fabricate(:queue_item) }\n+      let(:action) { delete :destroy, id: q2.id }\n+    end\n   end\n \n   describe \"POST update\" do\n-    \n-    context \"when a user is signed in\" do\n-      before { session[:current_user_id] = pete.id }\n-      \n-      context \"when position changes pass validations\" do\n-\n-        context \"when the user does not own one of the queue items.\" do\n-          let(:qi_1) { Fabricate(:queue_item, position: 1) }\n+    context \"when position changes pass validations\" do\n \n-          before do \n-            post :update, queue_items: { \"#{qi_1.id}\" => { position: 2, user_rating: 2 } }\n-          end                                      \n+      context \"when the user does not own one of the queue items.\" do\n+        let(:qi_1) { Fabricate(:queue_item, position: 1) }\n \n-          it \"should not change that item\" do\n-            expect(qi_1.reload.position).to eq(1)\n-          end\n+        before { post :update, queue_items: { \"#{qi_1.id}\" => { position: 2, user_rating: 2 } } }                                      \n \n-          it \"should redirect to queue path\" do\n-            expect(response).to redirect_to queue_path\n-          end\n+        it \"should not change that item\" do\n+          expect(qi_1.reload.position).to eq(1)\n         end\n \n-        context \"when positions are in the proper order\" do\n-          let(:qi_1) { Fabricate(:queue_item, position: 1, user: pete) }\n-          let(:qi_2) { Fabricate(:queue_item, position: 2, user: pete) }\n-\n-          before do \n-            post :update, queue_items: { \"#{qi_1.id}\" => { position: 2, user_rating: 2 }, \n-                                         \"#{qi_2.id}\" => { position: 1, user_rating: 2 } \n-                                        }\n-          end\n-\n-          it \"updates position numbers for all affected queue items\" do\n-            expect(qi_1.reload.position).to eq(2)\n-            expect(qi_2.reload.position).to eq(1)\n-          end\n+        it \"should redirect to queue path\" do\n+          expect(response).to redirect_to queue_path\n+        end\n+      end\n \n-          it \"redirects back\" do\n-            expect(response).to redirect_to queue_path\n-          end\n+      context \"when positions are in the proper order\" do\n+        let(:qi_1) { Fabricate(:queue_item, position: 1, user: current_user) }\n+        let(:qi_2) { Fabricate(:queue_item, position: 2, user: current_user) }\n \n-          it \"sets info message\" do\n-            expect(flash[:info]).to be_present\n-          end\n+        before do \n+          post :update, queue_items: { \"#{qi_1.id}\" => { position: 2, user_rating: 2 }, \n+                                       \"#{qi_2.id}\" => { position: 1, user_rating: 2 } \n+                                      }\n         end\n \n-        context \"when positions are not set in order\" do\n-          let(:qi_1) { Fabricate(:queue_item, position: 1, user: pete) }\n-          let(:qi_2) { Fabricate(:queue_item, position: 2, user: pete) }\n-          let(:qi_3) { Fabricate(:queue_item, position: 3, user: pete) }\n-\n-          before do   \n-            post :update, queue_items: { \"#{qi_1.id}\" => { position: 6, user_rating: 2 }, \n-                                         \"#{qi_2.id}\" => { position: 3, user_rating: 2 },\n-                                         \"#{qi_3.id}\" => { position: 2, user_rating: 2 }\n-                                       }\n-          end\n-\n-          it \"normalizes position numbers\" do                              \n-            expect(qi_1.reload.position).to eq(3)\n-            expect(qi_2.reload.position).to eq(2)\n-          end\n-\n-          it \"sets an info message\" do\n-            expect(flash[:info]).to be_present\n-          end\n-\n-          it \"redirects back\" do\n-            expect(response).to redirect_to queue_path\n-          end\n+        it \"updates position numbers for all affected queue items\" do\n+          expect(qi_1.reload.position).to eq(2)\n+          expect(qi_2.reload.position).to eq(1)\n         end\n \n-        context \"when two positions are set to the same number\" do\n-          let(:qi_1) { Fabricate(:queue_item, position: 1, user: pete) }\n-          let(:qi_2) { Fabricate(:queue_item, position: 2, user: pete) }\n-\n-          before do \n-            post :update, queue_items: { \"#{qi_1.id}\" => { position: 1, user_rating: 2 }, \n-                                         \"#{qi_2.id}\" => { position: 1, user_rating: 2 } \n-                                        }\n-          end\n+        it \"redirects back\" do\n+          expect(response).to redirect_to queue_path\n+        end\n \n-          it \"doesn't change any position numbers\" do\n-            expect(qi_1.position).to eq(1)\n-            expect(qi_2.position).to eq(2)\n-          end\n+        it \"sets info message\" do\n+          expect(flash[:info]).to be_present\n+        end\n+      end\n \n-          it \"sets a danger message\" do\n-            expect(flash[:danger]).to be_present\n-          end\n+      context \"when positions are not set in order\" do\n+        let(:qi_1) { Fabricate(:queue_item, position: 1, user: current_user) }\n+        let(:qi_2) { Fabricate(:queue_item, position: 2, user: current_user) }\n+        let(:qi_3) { Fabricate(:queue_item, position: 3, user: current_user) }\n \n-          it \"redirects back\" do\n-            expect(response).to redirect_to queue_path\n-          end\n+        before do   \n+          post :update, queue_items: { \"#{qi_1.id}\" => { position: 6, user_rating: 2 }, \n+                                       \"#{qi_2.id}\" => { position: 3, user_rating: 2 },\n+                                       \"#{qi_3.id}\" => { position: 2, user_rating: 2 }\n+                                     }\n         end\n \n-        context \"when validations fail\" do \n-\n-          context \"when a position contains a non-digit character\" do\n-            let(:qi_1) { Fabricate(:queue_item, position: 1, user: pete) }\n-            let(:qi_2) { Fabricate(:queue_item, position: 2, user: pete) }\n-\n-            before do\n-              post :update, queue_items: { \"#{qi_1.id}\" => { position: \"1123a\", user_rating: 2 }, \n-                                           \"#{qi_2.id}\" => { position: 1.5, user_rating: 2 } \n-                                          }\n-            end\n-\n-            it \"does not update any queue items\" do\n-              expect(qi_1.reload.position).to eq(1)\n-              expect(qi_2.reload.position).to eq(2)\n-            end\n-\n-            it \"sets a danger message\" do\n-              expect(flash[:danger]).to be_present\n-            end\n-\n-            it \"redirects back\" do\n-              expect(response).to redirect_to queue_path\n-            end\n-          end\n-\n-          context \"when a position is set to a negative number\" do\n-            let(:qi_1) { Fabricate(:queue_item, position: 1, user: pete) }\n-            let(:qi_2) { Fabricate(:queue_item, position: 2, user: pete) }\n-\n-            before do   \n-              post :update, queue_items: { \"#{qi_1.id}\" => { position: 1, user_rating: 2 }, \n-                                           \"#{qi_2.id}\" => { position: -1, user_rating: 2 } \n-                                          }\n-            end\n-\n-            it \"does not update any queue items\" do                              \n-              expect(qi_1.reload.position).to eq(1)\n-              expect(qi_2.reload.position).to eq(2)\n-            end\n-\n-            it \"sets a danger message\" do\n-              expect(flash[:danger]).to be_present\n-            end\n-\n-            it \"redirects back\" do\n-              expect(response).to redirect_to queue_path\n-            end\n-          end\n+        it \"normalizes position numbers\" do                              \n+          expect(qi_1.reload.position).to eq(3)\n+          expect(qi_2.reload.position).to eq(2)\n         end\n-      end\n-    \n-      context \"when user changes video rating and validations pass\" do\n-          let(:video1) { Fabricate(:video) }\n-          let(:video2) { Fabricate(:video) }\n-          let!(:qi_1) { Fabricate(:queue_item, position: 1, user: pete, video: video1) }\n-          let!(:qi_2) { Fabricate(:queue_item, position: 2, user: pete) }\n-          let!(:review1) { Fabricate(:review, user: pete, rating: 1, video: video1) }\n-\n-        it \"updates the reviews if it already exists\" do\n-          post :update, queue_items: { \"#{qi_1.id}\" => { position: 1, user_rating: 4 } }\n-          expect(qi_1.reload.user_rating).to eq(4)\n+\n+        it \"sets an info message\" do\n+          expect(flash[:info]).to be_present\n         end\n \n-        it \"creates a review if it does not exist\" do\n-          post :update, queue_items: { \"#{qi_2.id}\" => { position: 1, user_rating: 4 } }\n-          expect(qi_2.reload.user_rating).to eq(4)\n+        it \"redirects back\" do\n+          expect(response).to redirect_to queue_path\n         end\n       end\n \n-      context \"when no rating exists and none is selected\" do\n-        let(:qi_1) { Fabricate(:queue_item, position: 1, user: pete) }\n-        let(:qi_2) { Fabricate(:queue_item, position: 2, user: pete) }\n+      context \"when two positions are set to the same number\" do\n+        let(:qi_1) { Fabricate(:queue_item, position: 1, user: current_user) }\n+        let(:qi_2) { Fabricate(:queue_item, position: 2, user: current_user) }\n \n-        before do\n-          post :update, queue_items: { \"#{qi_1.id}\" => { position: 2, user_rating: \"\" },\n-                                       \"#{qi_2.id}\" => { position: 1, user_rating: \"\" }\n+        before do \n+          post :update, queue_items: { \"#{qi_1.id}\" => { position: 1, user_rating: 2 }, \n+                                       \"#{qi_2.id}\" => { position: 1, user_rating: 2 } \n                                       }\n         end\n \n-        it \"does not create a review\" do\n-          expect(qi_1.reload.user_review).to be_falsy\n+        it \"doesn't change any position numbers\" do\n+          expect(qi_1.position).to eq(1)\n+          expect(qi_2.position).to eq(2)\n         end\n \n-        it \"still updates the position number\" do\n-          expect(qi_1.reload.position).to eq(2)\n+        it \"sets a danger message\" do\n+          expect(flash[:danger]).to be_present\n+        end\n+\n+        it \"redirects back\" do\n+          expect(response).to redirect_to queue_path","path":"spec/controllers/queue_items_controller_spec.rb","position":480,"original_position":480,"commit_id":"5e35bb37549189b8704f17db91df81e560bcd8a4","original_commit_id":"5e35bb37549189b8704f17db91df81e560bcd8a4","user":{"login":"brandoncc","id":543973,"avatar_url":"https://avatars.githubusercontent.com/u/543973?v=3","gravatar_id":"","url":"https://api.github.com/users/brandoncc","html_url":"https://github.com/brandoncc","followers_url":"https://api.github.com/users/brandoncc/followers","following_url":"https://api.github.com/users/brandoncc/following{/other_user}","gists_url":"https://api.github.com/users/brandoncc/gists{/gist_id}","starred_url":"https://api.github.com/users/brandoncc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brandoncc/subscriptions","organizations_url":"https://api.github.com/users/brandoncc/orgs","repos_url":"https://api.github.com/users/brandoncc/repos","events_url":"https://api.github.com/users/brandoncc/events{/privacy}","received_events_url":"https://api.github.com/users/brandoncc/received_events","type":"User","site_admin":false},"body":"This one either.","created_at":"2015-08-12T20:07:52Z","updated_at":"2015-08-12T20:07:52Z","html_url":"https://github.com/vincedevendra/myflix/pull/5#discussion_r36907095","pull_request_url":"https://api.github.com/repos/vincedevendra/myflix/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/vincedevendra/myflix/pulls/comments/36907095"},"html":{"href":"https://github.com/vincedevendra/myflix/pull/5#discussion_r36907095"},"pull_request":{"href":"https://api.github.com/repos/vincedevendra/myflix/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/vincedevendra/myflix/pulls/5","id":42249204,"html_url":"https://github.com/vincedevendra/myflix/pull/5","diff_url":"https://github.com/vincedevendra/myflix/pull/5.diff","patch_url":"https://github.com/vincedevendra/myflix/pull/5.patch","issue_url":"https://api.github.com/repos/vincedevendra/myflix/issues/5","number":5,"state":"open","locked":false,"title":"Week 3 Part 2","user":{"login":"vincedevendra","id":12373198,"avatar_url":"https://avatars.githubusercontent.com/u/12373198?v=3","gravatar_id":"","url":"https://api.github.com/users/vincedevendra","html_url":"https://github.com/vincedevendra","followers_url":"https://api.github.com/users/vincedevendra/followers","following_url":"https://api.github.com/users/vincedevendra/following{/other_user}","gists_url":"https://api.github.com/users/vincedevendra/gists{/gist_id}","starred_url":"https://api.github.com/users/vincedevendra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincedevendra/subscriptions","organizations_url":"https://api.github.com/users/vincedevendra/orgs","repos_url":"https://api.github.com/users/vincedevendra/repos","events_url":"https://api.github.com/users/vincedevendra/events{/privacy}","received_events_url":"https://api.github.com/users/vincedevendra/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-08-12T14:56:58Z","updated_at":"2015-08-12T20:07:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b45f07858d6f866d9e62a4f23d3a71f2dd7ff551","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/vincedevendra/myflix/pulls/5/commits","review_comments_url":"https://api.github.com/repos/vincedevendra/myflix/pulls/5/comments","review_comment_url":"https://api.github.com/repos/vincedevendra/myflix/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vincedevendra/myflix/issues/5/comments","statuses_url":"https://api.github.com/repos/vincedevendra/myflix/statuses/5e35bb37549189b8704f17db91df81e560bcd8a4","head":{"label":"vincedevendra:week_3_2","ref":"week_3_2","sha":"5e35bb37549189b8704f17db91df81e560bcd8a4","user":{"login":"vincedevendra","id":12373198,"avatar_url":"https://avatars.githubusercontent.com/u/12373198?v=3","gravatar_id":"","url":"https://api.github.com/users/vincedevendra","html_url":"https://github.com/vincedevendra","followers_url":"https://api.github.com/users/vincedevendra/followers","following_url":"https://api.github.com/users/vincedevendra/following{/other_user}","gists_url":"https://api.github.com/users/vincedevendra/gists{/gist_id}","starred_url":"https://api.github.com/users/vincedevendra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincedevendra/subscriptions","organizations_url":"https://api.github.com/users/vincedevendra/orgs","repos_url":"https://api.github.com/users/vincedevendra/repos","events_url":"https://api.github.com/users/vincedevendra/events{/privacy}","received_events_url":"https://api.github.com/users/vincedevendra/received_events","type":"User","site_admin":false},"repo":{"id":39867365,"name":"myflix","full_name":"vincedevendra/myflix","owner":{"login":"vincedevendra","id":12373198,"avatar_url":"https://avatars.githubusercontent.com/u/12373198?v=3","gravatar_id":"","url":"https://api.github.com/users/vincedevendra","html_url":"https://github.com/vincedevendra","followers_url":"https://api.github.com/users/vincedevendra/followers","following_url":"https://api.github.com/users/vincedevendra/following{/other_user}","gists_url":"https://api.github.com/users/vincedevendra/gists{/gist_id}","starred_url":"https://api.github.com/users/vincedevendra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincedevendra/subscriptions","organizations_url":"https://api.github.com/users/vincedevendra/orgs","repos_url":"https://api.github.com/users/vincedevendra/repos","events_url":"https://api.github.com/users/vincedevendra/events{/privacy}","received_events_url":"https://api.github.com/users/vincedevendra/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vincedevendra/myflix","description":"","fork":false,"url":"https://api.github.com/repos/vincedevendra/myflix","forks_url":"https://api.github.com/repos/vincedevendra/myflix/forks","keys_url":"https://api.github.com/repos/vincedevendra/myflix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vincedevendra/myflix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vincedevendra/myflix/teams","hooks_url":"https://api.github.com/repos/vincedevendra/myflix/hooks","issue_events_url":"https://api.github.com/repos/vincedevendra/myflix/issues/events{/number}","events_url":"https://api.github.com/repos/vincedevendra/myflix/events","assignees_url":"https://api.github.com/repos/vincedevendra/myflix/assignees{/user}","branches_url":"https://api.github.com/repos/vincedevendra/myflix/branches{/branch}","tags_url":"https://api.github.com/repos/vincedevendra/myflix/tags","blobs_url":"https://api.github.com/repos/vincedevendra/myflix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vincedevendra/myflix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vincedevendra/myflix/git/refs{/sha}","trees_url":"https://api.github.com/repos/vincedevendra/myflix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vincedevendra/myflix/statuses/{sha}","languages_url":"https://api.github.com/repos/vincedevendra/myflix/languages","stargazers_url":"https://api.github.com/repos/vincedevendra/myflix/stargazers","contributors_url":"https://api.github.com/repos/vincedevendra/myflix/contributors","subscribers_url":"https://api.github.com/repos/vincedevendra/myflix/subscribers","subscription_url":"https://api.github.com/repos/vincedevendra/myflix/subscription","commits_url":"https://api.github.com/repos/vincedevendra/myflix/commits{/sha}","git_commits_url":"https://api.github.com/repos/vincedevendra/myflix/git/commits{/sha}","comments_url":"https://api.github.com/repos/vincedevendra/myflix/comments{/number}","issue_comment_url":"https://api.github.com/repos/vincedevendra/myflix/issues/comments{/number}","contents_url":"https://api.github.com/repos/vincedevendra/myflix/contents/{+path}","compare_url":"https://api.github.com/repos/vincedevendra/myflix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vincedevendra/myflix/merges","archive_url":"https://api.github.com/repos/vincedevendra/myflix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vincedevendra/myflix/downloads","issues_url":"https://api.github.com/repos/vincedevendra/myflix/issues{/number}","pulls_url":"https://api.github.com/repos/vincedevendra/myflix/pulls{/number}","milestones_url":"https://api.github.com/repos/vincedevendra/myflix/milestones{/number}","notifications_url":"https://api.github.com/repos/vincedevendra/myflix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vincedevendra/myflix/labels{/name}","releases_url":"https://api.github.com/repos/vincedevendra/myflix/releases{/id}","created_at":"2015-07-29T01:53:33Z","updated_at":"2015-08-03T21:23:23Z","pushed_at":"2015-08-12T14:56:59Z","git_url":"git://github.com/vincedevendra/myflix.git","ssh_url":"git@github.com:vincedevendra/myflix.git","clone_url":"https://github.com/vincedevendra/myflix.git","svn_url":"https://github.com/vincedevendra/myflix","homepage":null,"size":440,"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":"vincedevendra:master","ref":"master","sha":"a3d95c5ff259fb113020290d74c8be7ba96c73de","user":{"login":"vincedevendra","id":12373198,"avatar_url":"https://avatars.githubusercontent.com/u/12373198?v=3","gravatar_id":"","url":"https://api.github.com/users/vincedevendra","html_url":"https://github.com/vincedevendra","followers_url":"https://api.github.com/users/vincedevendra/followers","following_url":"https://api.github.com/users/vincedevendra/following{/other_user}","gists_url":"https://api.github.com/users/vincedevendra/gists{/gist_id}","starred_url":"https://api.github.com/users/vincedevendra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincedevendra/subscriptions","organizations_url":"https://api.github.com/users/vincedevendra/orgs","repos_url":"https://api.github.com/users/vincedevendra/repos","events_url":"https://api.github.com/users/vincedevendra/events{/privacy}","received_events_url":"https://api.github.com/users/vincedevendra/received_events","type":"User","site_admin":false},"repo":{"id":39867365,"name":"myflix","full_name":"vincedevendra/myflix","owner":{"login":"vincedevendra","id":12373198,"avatar_url":"https://avatars.githubusercontent.com/u/12373198?v=3","gravatar_id":"","url":"https://api.github.com/users/vincedevendra","html_url":"https://github.com/vincedevendra","followers_url":"https://api.github.com/users/vincedevendra/followers","following_url":"https://api.github.com/users/vincedevendra/following{/other_user}","gists_url":"https://api.github.com/users/vincedevendra/gists{/gist_id}","starred_url":"https://api.github.com/users/vincedevendra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vincedevendra/subscriptions","organizations_url":"https://api.github.com/users/vincedevendra/orgs","repos_url":"https://api.github.com/users/vincedevendra/repos","events_url":"https://api.github.com/users/vincedevendra/events{/privacy}","received_events_url":"https://api.github.com/users/vincedevendra/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vincedevendra/myflix","description":"","fork":false,"url":"https://api.github.com/repos/vincedevendra/myflix","forks_url":"https://api.github.com/repos/vincedevendra/myflix/forks","keys_url":"https://api.github.com/repos/vincedevendra/myflix/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vincedevendra/myflix/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vincedevendra/myflix/teams","hooks_url":"https://api.github.com/repos/vincedevendra/myflix/hooks","issue_events_url":"https://api.github.com/repos/vincedevendra/myflix/issues/events{/number}","events_url":"https://api.github.com/repos/vincedevendra/myflix/events","assignees_url":"https://api.github.com/repos/vincedevendra/myflix/assignees{/user}","branches_url":"https://api.github.com/repos/vincedevendra/myflix/branches{/branch}","tags_url":"https://api.github.com/repos/vincedevendra/myflix/tags","blobs_url":"https://api.github.com/repos/vincedevendra/myflix/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vincedevendra/myflix/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vincedevendra/myflix/git/refs{/sha}","trees_url":"https://api.github.com/repos/vincedevendra/myflix/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vincedevendra/myflix/statuses/{sha}","languages_url":"https://api.github.com/repos/vincedevendra/myflix/languages","stargazers_url":"https://api.github.com/repos/vincedevendra/myflix/stargazers","contributors_url":"https://api.github.com/repos/vincedevendra/myflix/contributors","subscribers_url":"https://api.github.com/repos/vincedevendra/myflix/subscribers","subscription_url":"https://api.github.com/repos/vincedevendra/myflix/subscription","commits_url":"https://api.github.com/repos/vincedevendra/myflix/commits{/sha}","git_commits_url":"https://api.github.com/repos/vincedevendra/myflix/git/commits{/sha}","comments_url":"https://api.github.com/repos/vincedevendra/myflix/comments{/number}","issue_comment_url":"https://api.github.com/repos/vincedevendra/myflix/issues/comments{/number}","contents_url":"https://api.github.com/repos/vincedevendra/myflix/contents/{+path}","compare_url":"https://api.github.com/repos/vincedevendra/myflix/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vincedevendra/myflix/merges","archive_url":"https://api.github.com/repos/vincedevendra/myflix/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vincedevendra/myflix/downloads","issues_url":"https://api.github.com/repos/vincedevendra/myflix/issues{/number}","pulls_url":"https://api.github.com/repos/vincedevendra/myflix/pulls{/number}","milestones_url":"https://api.github.com/repos/vincedevendra/myflix/milestones{/number}","notifications_url":"https://api.github.com/repos/vincedevendra/myflix/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vincedevendra/myflix/labels{/name}","releases_url":"https://api.github.com/repos/vincedevendra/myflix/releases{/id}","created_at":"2015-07-29T01:53:33Z","updated_at":"2015-08-03T21:23:23Z","pushed_at":"2015-08-12T14:56:59Z","git_url":"git://github.com/vincedevendra/myflix.git","ssh_url":"git@github.com:vincedevendra/myflix.git","clone_url":"https://github.com/vincedevendra/myflix.git","svn_url":"https://github.com/vincedevendra/myflix","homepage":null,"size":440,"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/vincedevendra/myflix/pulls/5"},"html":{"href":"https://github.com/vincedevendra/myflix/pull/5"},"issue":{"href":"https://api.github.com/repos/vincedevendra/myflix/issues/5"},"comments":{"href":"https://api.github.com/repos/vincedevendra/myflix/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/vincedevendra/myflix/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/vincedevendra/myflix/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vincedevendra/myflix/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/vincedevendra/myflix/statuses/5e35bb37549189b8704f17db91df81e560bcd8a4"}}}}