{"action":"created","comment":{"url":"https://api.github.com/repos/YaleSTC/reservations/pulls/comments/48211568","id":48211568,"diff_hunk":"@@ -54,6 +54,51 @@\n       end\n     end\n   end\n+  describe 'POST submit_cart_updates_form on item' do\n+    before(:each) do\n+      @equipment_model = FactoryGirl.create(:equipment_model)\n+      put :add_to_cart, id: @equipment_model.id\n+    end\n+    it 'should adjust item quantity' do\n+      # check if cart contains an item\n+      expect session[:cart].items","path":"spec/controllers/catalog_controller_spec.rb","position":11,"original_position":11,"commit_id":"980407f6b2c3757f5ca99c48d2ef4f425424cfad","original_commit_id":"980407f6b2c3757f5ca99c48d2ef4f425424cfad","user":{"login":"orenyk","id":901808,"avatar_url":"https://avatars.githubusercontent.com/u/901808?v=3","gravatar_id":"","url":"https://api.github.com/users/orenyk","html_url":"https://github.com/orenyk","followers_url":"https://api.github.com/users/orenyk/followers","following_url":"https://api.github.com/users/orenyk/following{/other_user}","gists_url":"https://api.github.com/users/orenyk/gists{/gist_id}","starred_url":"https://api.github.com/users/orenyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orenyk/subscriptions","organizations_url":"https://api.github.com/users/orenyk/orgs","repos_url":"https://api.github.com/users/orenyk/repos","events_url":"https://api.github.com/users/orenyk/events{/privacy}","received_events_url":"https://api.github.com/users/orenyk/received_events","type":"User","site_admin":false},"body":"I think you're missing the actual expectation here (e.g. `expect(session[:cart].items).not_to be_empty` or something like that)","created_at":"2015-12-22T01:01:13Z","updated_at":"2015-12-22T01:01:13Z","html_url":"https://github.com/YaleSTC/reservations/pull/1221#discussion_r48211568","pull_request_url":"https://api.github.com/repos/YaleSTC/reservations/pulls/1221","_links":{"self":{"href":"https://api.github.com/repos/YaleSTC/reservations/pulls/comments/48211568"},"html":{"href":"https://github.com/YaleSTC/reservations/pull/1221#discussion_r48211568"},"pull_request":{"href":"https://api.github.com/repos/YaleSTC/reservations/pulls/1221"}}},"pull_request":{"url":"https://api.github.com/repos/YaleSTC/reservations/pulls/1221","id":32695101,"html_url":"https://github.com/YaleSTC/reservations/pull/1221","diff_url":"https://github.com/YaleSTC/reservations/pull/1221.diff","patch_url":"https://github.com/YaleSTC/reservations/pull/1221.patch","issue_url":"https://api.github.com/repos/YaleSTC/reservations/issues/1221","number":1221,"state":"open","locked":false,"title":"[237] change cart reservation","user":{"login":"AlanLiu96","id":7689776,"avatar_url":"https://avatars.githubusercontent.com/u/7689776?v=3","gravatar_id":"","url":"https://api.github.com/users/AlanLiu96","html_url":"https://github.com/AlanLiu96","followers_url":"https://api.github.com/users/AlanLiu96/followers","following_url":"https://api.github.com/users/AlanLiu96/following{/other_user}","gists_url":"https://api.github.com/users/AlanLiu96/gists{/gist_id}","starred_url":"https://api.github.com/users/AlanLiu96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlanLiu96/subscriptions","organizations_url":"https://api.github.com/users/AlanLiu96/orgs","repos_url":"https://api.github.com/users/AlanLiu96/repos","events_url":"https://api.github.com/users/AlanLiu96/events{/privacy}","received_events_url":"https://api.github.com/users/AlanLiu96/received_events","type":"User","site_admin":false},"body":"Resolves #237. Creates a button-toggled form on the new_reservation/new_request page that allows the user to edit the reservation. ","created_at":"2015-04-06T17:45:38Z","updated_at":"2015-12-22T01:01:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"20efa74757def1fd5e15498d80ad245711888414","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/YaleSTC/reservations/pulls/1221/commits","review_comments_url":"https://api.github.com/repos/YaleSTC/reservations/pulls/1221/comments","review_comment_url":"https://api.github.com/repos/YaleSTC/reservations/pulls/comments{/number}","comments_url":"https://api.github.com/repos/YaleSTC/reservations/issues/1221/comments","statuses_url":"https://api.github.com/repos/YaleSTC/reservations/statuses/980407f6b2c3757f5ca99c48d2ef4f425424cfad","head":{"label":"YaleSTC:237_change_cart_reservation","ref":"237_change_cart_reservation","sha":"980407f6b2c3757f5ca99c48d2ef4f425424cfad","user":{"login":"YaleSTC","id":106094,"avatar_url":"https://avatars.githubusercontent.com/u/106094?v=3","gravatar_id":"","url":"https://api.github.com/users/YaleSTC","html_url":"https://github.com/YaleSTC","followers_url":"https://api.github.com/users/YaleSTC/followers","following_url":"https://api.github.com/users/YaleSTC/following{/other_user}","gists_url":"https://api.github.com/users/YaleSTC/gists{/gist_id}","starred_url":"https://api.github.com/users/YaleSTC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YaleSTC/subscriptions","organizations_url":"https://api.github.com/users/YaleSTC/orgs","repos_url":"https://api.github.com/users/YaleSTC/repos","events_url":"https://api.github.com/users/YaleSTC/events{/privacy}","received_events_url":"https://api.github.com/users/YaleSTC/received_events","type":"Organization","site_admin":false},"repo":{"id":345280,"name":"reservations","full_name":"YaleSTC/reservations","owner":{"login":"YaleSTC","id":106094,"avatar_url":"https://avatars.githubusercontent.com/u/106094?v=3","gravatar_id":"","url":"https://api.github.com/users/YaleSTC","html_url":"https://github.com/YaleSTC","followers_url":"https://api.github.com/users/YaleSTC/followers","following_url":"https://api.github.com/users/YaleSTC/following{/other_user}","gists_url":"https://api.github.com/users/YaleSTC/gists{/gist_id}","starred_url":"https://api.github.com/users/YaleSTC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YaleSTC/subscriptions","organizations_url":"https://api.github.com/users/YaleSTC/orgs","repos_url":"https://api.github.com/users/YaleSTC/repos","events_url":"https://api.github.com/users/YaleSTC/events{/privacy}","received_events_url":"https://api.github.com/users/YaleSTC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/YaleSTC/reservations","description":"Manage equipment loans & reservations. Who can borrow what, for how long?","fork":false,"url":"https://api.github.com/repos/YaleSTC/reservations","forks_url":"https://api.github.com/repos/YaleSTC/reservations/forks","keys_url":"https://api.github.com/repos/YaleSTC/reservations/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YaleSTC/reservations/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YaleSTC/reservations/teams","hooks_url":"https://api.github.com/repos/YaleSTC/reservations/hooks","issue_events_url":"https://api.github.com/repos/YaleSTC/reservations/issues/events{/number}","events_url":"https://api.github.com/repos/YaleSTC/reservations/events","assignees_url":"https://api.github.com/repos/YaleSTC/reservations/assignees{/user}","branches_url":"https://api.github.com/repos/YaleSTC/reservations/branches{/branch}","tags_url":"https://api.github.com/repos/YaleSTC/reservations/tags","blobs_url":"https://api.github.com/repos/YaleSTC/reservations/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YaleSTC/reservations/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YaleSTC/reservations/git/refs{/sha}","trees_url":"https://api.github.com/repos/YaleSTC/reservations/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YaleSTC/reservations/statuses/{sha}","languages_url":"https://api.github.com/repos/YaleSTC/reservations/languages","stargazers_url":"https://api.github.com/repos/YaleSTC/reservations/stargazers","contributors_url":"https://api.github.com/repos/YaleSTC/reservations/contributors","subscribers_url":"https://api.github.com/repos/YaleSTC/reservations/subscribers","subscription_url":"https://api.github.com/repos/YaleSTC/reservations/subscription","commits_url":"https://api.github.com/repos/YaleSTC/reservations/commits{/sha}","git_commits_url":"https://api.github.com/repos/YaleSTC/reservations/git/commits{/sha}","comments_url":"https://api.github.com/repos/YaleSTC/reservations/comments{/number}","issue_comment_url":"https://api.github.com/repos/YaleSTC/reservations/issues/comments{/number}","contents_url":"https://api.github.com/repos/YaleSTC/reservations/contents/{+path}","compare_url":"https://api.github.com/repos/YaleSTC/reservations/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YaleSTC/reservations/merges","archive_url":"https://api.github.com/repos/YaleSTC/reservations/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YaleSTC/reservations/downloads","issues_url":"https://api.github.com/repos/YaleSTC/reservations/issues{/number}","pulls_url":"https://api.github.com/repos/YaleSTC/reservations/pulls{/number}","milestones_url":"https://api.github.com/repos/YaleSTC/reservations/milestones{/number}","notifications_url":"https://api.github.com/repos/YaleSTC/reservations/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YaleSTC/reservations/labels{/name}","releases_url":"https://api.github.com/repos/YaleSTC/reservations/releases{/id}","created_at":"2009-10-21T21:08:00Z","updated_at":"2015-11-28T09:10:15Z","pushed_at":"2015-12-22T00:47:47Z","git_url":"git://github.com/YaleSTC/reservations.git","ssh_url":"git@github.com:YaleSTC/reservations.git","clone_url":"https://github.com/YaleSTC/reservations.git","svn_url":"https://github.com/YaleSTC/reservations","homepage":"yalestc.github.io/reservations","size":52815,"stargazers_count":59,"watchers_count":59,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":28,"mirror_url":null,"open_issues_count":144,"forks":28,"open_issues":144,"watchers":59,"default_branch":"master"}},"base":{"label":"YaleSTC:master","ref":"master","sha":"ed229c3c5c80233ff90c86578db1248b737b644a","user":{"login":"YaleSTC","id":106094,"avatar_url":"https://avatars.githubusercontent.com/u/106094?v=3","gravatar_id":"","url":"https://api.github.com/users/YaleSTC","html_url":"https://github.com/YaleSTC","followers_url":"https://api.github.com/users/YaleSTC/followers","following_url":"https://api.github.com/users/YaleSTC/following{/other_user}","gists_url":"https://api.github.com/users/YaleSTC/gists{/gist_id}","starred_url":"https://api.github.com/users/YaleSTC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YaleSTC/subscriptions","organizations_url":"https://api.github.com/users/YaleSTC/orgs","repos_url":"https://api.github.com/users/YaleSTC/repos","events_url":"https://api.github.com/users/YaleSTC/events{/privacy}","received_events_url":"https://api.github.com/users/YaleSTC/received_events","type":"Organization","site_admin":false},"repo":{"id":345280,"name":"reservations","full_name":"YaleSTC/reservations","owner":{"login":"YaleSTC","id":106094,"avatar_url":"https://avatars.githubusercontent.com/u/106094?v=3","gravatar_id":"","url":"https://api.github.com/users/YaleSTC","html_url":"https://github.com/YaleSTC","followers_url":"https://api.github.com/users/YaleSTC/followers","following_url":"https://api.github.com/users/YaleSTC/following{/other_user}","gists_url":"https://api.github.com/users/YaleSTC/gists{/gist_id}","starred_url":"https://api.github.com/users/YaleSTC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YaleSTC/subscriptions","organizations_url":"https://api.github.com/users/YaleSTC/orgs","repos_url":"https://api.github.com/users/YaleSTC/repos","events_url":"https://api.github.com/users/YaleSTC/events{/privacy}","received_events_url":"https://api.github.com/users/YaleSTC/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/YaleSTC/reservations","description":"Manage equipment loans & reservations. Who can borrow what, for how long?","fork":false,"url":"https://api.github.com/repos/YaleSTC/reservations","forks_url":"https://api.github.com/repos/YaleSTC/reservations/forks","keys_url":"https://api.github.com/repos/YaleSTC/reservations/keys{/key_id}","collaborators_url":"https://api.github.com/repos/YaleSTC/reservations/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/YaleSTC/reservations/teams","hooks_url":"https://api.github.com/repos/YaleSTC/reservations/hooks","issue_events_url":"https://api.github.com/repos/YaleSTC/reservations/issues/events{/number}","events_url":"https://api.github.com/repos/YaleSTC/reservations/events","assignees_url":"https://api.github.com/repos/YaleSTC/reservations/assignees{/user}","branches_url":"https://api.github.com/repos/YaleSTC/reservations/branches{/branch}","tags_url":"https://api.github.com/repos/YaleSTC/reservations/tags","blobs_url":"https://api.github.com/repos/YaleSTC/reservations/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/YaleSTC/reservations/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/YaleSTC/reservations/git/refs{/sha}","trees_url":"https://api.github.com/repos/YaleSTC/reservations/git/trees{/sha}","statuses_url":"https://api.github.com/repos/YaleSTC/reservations/statuses/{sha}","languages_url":"https://api.github.com/repos/YaleSTC/reservations/languages","stargazers_url":"https://api.github.com/repos/YaleSTC/reservations/stargazers","contributors_url":"https://api.github.com/repos/YaleSTC/reservations/contributors","subscribers_url":"https://api.github.com/repos/YaleSTC/reservations/subscribers","subscription_url":"https://api.github.com/repos/YaleSTC/reservations/subscription","commits_url":"https://api.github.com/repos/YaleSTC/reservations/commits{/sha}","git_commits_url":"https://api.github.com/repos/YaleSTC/reservations/git/commits{/sha}","comments_url":"https://api.github.com/repos/YaleSTC/reservations/comments{/number}","issue_comment_url":"https://api.github.com/repos/YaleSTC/reservations/issues/comments{/number}","contents_url":"https://api.github.com/repos/YaleSTC/reservations/contents/{+path}","compare_url":"https://api.github.com/repos/YaleSTC/reservations/compare/{base}...{head}","merges_url":"https://api.github.com/repos/YaleSTC/reservations/merges","archive_url":"https://api.github.com/repos/YaleSTC/reservations/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/YaleSTC/reservations/downloads","issues_url":"https://api.github.com/repos/YaleSTC/reservations/issues{/number}","pulls_url":"https://api.github.com/repos/YaleSTC/reservations/pulls{/number}","milestones_url":"https://api.github.com/repos/YaleSTC/reservations/milestones{/number}","notifications_url":"https://api.github.com/repos/YaleSTC/reservations/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/YaleSTC/reservations/labels{/name}","releases_url":"https://api.github.com/repos/YaleSTC/reservations/releases{/id}","created_at":"2009-10-21T21:08:00Z","updated_at":"2015-11-28T09:10:15Z","pushed_at":"2015-12-22T00:47:47Z","git_url":"git://github.com/YaleSTC/reservations.git","ssh_url":"git@github.com:YaleSTC/reservations.git","clone_url":"https://github.com/YaleSTC/reservations.git","svn_url":"https://github.com/YaleSTC/reservations","homepage":"yalestc.github.io/reservations","size":52815,"stargazers_count":59,"watchers_count":59,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":28,"mirror_url":null,"open_issues_count":144,"forks":28,"open_issues":144,"watchers":59,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/YaleSTC/reservations/pulls/1221"},"html":{"href":"https://github.com/YaleSTC/reservations/pull/1221"},"issue":{"href":"https://api.github.com/repos/YaleSTC/reservations/issues/1221"},"comments":{"href":"https://api.github.com/repos/YaleSTC/reservations/issues/1221/comments"},"review_comments":{"href":"https://api.github.com/repos/YaleSTC/reservations/pulls/1221/comments"},"review_comment":{"href":"https://api.github.com/repos/YaleSTC/reservations/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/YaleSTC/reservations/pulls/1221/commits"},"statuses":{"href":"https://api.github.com/repos/YaleSTC/reservations/statuses/980407f6b2c3757f5ca99c48d2ef4f425424cfad"}}}}