{"action":"created","issue":{"url":"https://api.github.com/repos/e-harman/depot/issues/7","repository_url":"https://api.github.com/repos/e-harman/depot","labels_url":"https://api.github.com/repos/e-harman/depot/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/e-harman/depot/issues/7/comments","events_url":"https://api.github.com/repos/e-harman/depot/issues/7/events","html_url":"https://github.com/e-harman/depot/pull/7","id":191755681,"number":7,"title":"Chapter13","user":{"login":"e-harman","id":13619098,"avatar_url":"https://avatars.githubusercontent.com/u/13619098?v=3","gravatar_id":"","url":"https://api.github.com/users/e-harman","html_url":"https://github.com/e-harman","followers_url":"https://api.github.com/users/e-harman/followers","following_url":"https://api.github.com/users/e-harman/following{/other_user}","gists_url":"https://api.github.com/users/e-harman/gists{/gist_id}","starred_url":"https://api.github.com/users/e-harman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/e-harman/subscriptions","organizations_url":"https://api.github.com/users/e-harman/orgs","repos_url":"https://api.github.com/users/e-harman/repos","events_url":"https://api.github.com/users/e-harman/events{/privacy}","received_events_url":"https://api.github.com/users/e-harman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"andrewnisbet74","id":4536020,"avatar_url":"https://avatars.githubusercontent.com/u/4536020?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewnisbet74","html_url":"https://github.com/andrewnisbet74","followers_url":"https://api.github.com/users/andrewnisbet74/followers","following_url":"https://api.github.com/users/andrewnisbet74/following{/other_user}","gists_url":"https://api.github.com/users/andrewnisbet74/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewnisbet74/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewnisbet74/subscriptions","organizations_url":"https://api.github.com/users/andrewnisbet74/orgs","repos_url":"https://api.github.com/users/andrewnisbet74/repos","events_url":"https://api.github.com/users/andrewnisbet74/events{/privacy}","received_events_url":"https://api.github.com/users/andrewnisbet74/received_events","type":"User","site_admin":false},"assignees":[{"login":"andrewnisbet74","id":4536020,"avatar_url":"https://avatars.githubusercontent.com/u/4536020?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewnisbet74","html_url":"https://github.com/andrewnisbet74","followers_url":"https://api.github.com/users/andrewnisbet74/followers","following_url":"https://api.github.com/users/andrewnisbet74/following{/other_user}","gists_url":"https://api.github.com/users/andrewnisbet74/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewnisbet74/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewnisbet74/subscriptions","organizations_url":"https://api.github.com/users/andrewnisbet74/orgs","repos_url":"https://api.github.com/users/andrewnisbet74/repos","events_url":"https://api.github.com/users/andrewnisbet74/events{/privacy}","received_events_url":"https://api.github.com/users/andrewnisbet74/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2016-11-25T19:15:52Z","updated_at":"2016-11-27T08:22:03Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/e-harman/depot/pulls/7","html_url":"https://github.com/e-harman/depot/pull/7","diff_url":"https://github.com/e-harman/depot/pull/7.diff","patch_url":"https://github.com/e-harman/depot/pull/7.patch"},"body":"OK, I actually got chapter13 done 3 days ago, but I can't get this one assertion to work in the test/controllers/integration/user_stories_test.rb:\r\nhttps://github.com/e-harman/depot/blob/chapter13/test/integration/user_stories_test.rb#L34\r\nI think this verifies that all line_items have been removed from the cart when the order is made. \r\nI have tried commenting it out and the rest of the tests run fine, so I think the general flow of the app is correct. \r\nI think if the order is saved then Cart.destroy is called: \r\nhttps://github.com/e-harman/depot/blob/chapter13/app/controllers/orders_controller.rb#L38\r\nand I think that when Cart.destroy is called that line_items should be destoryed:\r\nhttps://github.com/e-harman/depot/blob/chapter13/app/models/cart.rb#L2\r\nI've tried adding various debug statements trace where I think things are going and am not sure why that assert is not coming up 0 for the line_items. "},"comment":{"url":"https://api.github.com/repos/e-harman/depot/issues/comments/263108354","html_url":"https://github.com/e-harman/depot/pull/7#issuecomment-263108354","issue_url":"https://api.github.com/repos/e-harman/depot/issues/7","id":263108354,"user":{"login":"andrewnisbet74","id":4536020,"avatar_url":"https://avatars.githubusercontent.com/u/4536020?v=3","gravatar_id":"","url":"https://api.github.com/users/andrewnisbet74","html_url":"https://github.com/andrewnisbet74","followers_url":"https://api.github.com/users/andrewnisbet74/followers","following_url":"https://api.github.com/users/andrewnisbet74/following{/other_user}","gists_url":"https://api.github.com/users/andrewnisbet74/gists{/gist_id}","starred_url":"https://api.github.com/users/andrewnisbet74/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andrewnisbet74/subscriptions","organizations_url":"https://api.github.com/users/andrewnisbet74/orgs","repos_url":"https://api.github.com/users/andrewnisbet74/repos","events_url":"https://api.github.com/users/andrewnisbet74/events{/privacy}","received_events_url":"https://api.github.com/users/andrewnisbet74/received_events","type":"User","site_admin":false},"created_at":"2016-11-27T08:22:03Z","updated_at":"2016-11-27T08:22:03Z","body":"@e-harman  I will have a look at this, and give you some feedback tomorrow. "}}
{"actor":{"display_login":"andrewnisbet74"}}