{"action":"created","comment":{"url":"https://api.github.com/repos/Ada-C8/grocery-store/pulls/comments/135948309","pull_request_review_id":59419374,"id":135948309,"diff_hunk":"@@ -11,42 +12,53 @@\n # we effectively get all that testing for free! Here we'll\n # only test things that are different.\n \n-xdescribe \"OnlineOrder\" do\n+describe \"OnlineOrder\" do\n   describe \"#initialize\" do\n     it \"Is a kind of Order\" do\n       # Check that an OnlineOrder is in fact a kind of Order\n-\n-      # Instatiate your OnlineOrder here\n-      # online_order =\n-      # online_order.must_be_kind_of Grocery::Order\n+      #Instatiate your OnlineOrder here\n+      online_order = Grocery::OnlineOrder.new(1, {}, 123)\n+      online_order.must_be_kind_of Grocery::Order\n     end\n \n     it \"Can access Customer object\" do\n       # TODO: Your test code here!\n+      online_order = Grocery::OnlineOrder.new(1, {}, 234)\n+      (online_order.customer_id).wont_be_nil\n     end\n \n     it \"Can access the online order status\" do\n       # TODO: Your test code here!\n+      online_order = Grocery::OnlineOrder.new(1, {}, 23)\n+      (online_order.fulfillment_status).wont_be_nil\n     end\n   end\n \n   describe \"#total\" do\n     it \"Adds a shipping fee\" do\n       # TODO: Your test code here!\n+      online_order = Grocery::OnlineOrder.new(1, {\"bulk spaghetti\" => 10}, 23)\n+      (online_order.total).must_equal 20.75\n     end\n \n     it \"Doesn't add a shipping fee if there are no products\" do\n       # TODO: Your test code here!\n+      online_order = Grocery::OnlineOrder.new(1, {}, 23)\n+      (online_order.total).must_equal 0\n     end\n   end\n \n   describe \"#add_product\" do\n     it \"Does not permit action for processing, shipped or completed statuses\" do\n       # TODO: Your test code here!\n+      online_order = Grocery::OnlineOrder.new(1, {\"pigs feet\" => 3.90}, 23, \"completed\")\n+      proc{online_order.add_product(\"jell-o\", 0.99)}.must_raise ArgumentError\n     end\n \n     it \"Permits action for pending and paid satuses\" do\n       # TODO: Your test code here!\n+      online_order = Grocery::OnlineOrder.new(1, {\"pigs feet\" => 3.90}, 23, \"pending\")\n+      online_order.add_product(\"jell-o\", 0.99).must_equal true","path":"specs/online_order_spec.rb","position":63,"original_position":63,"commit_id":"3702bd8443879f97d21dc5ca7185ed99729faa34","original_commit_id":"3702bd8443879f97d21dc5ca7185ed99729faa34","user":{"login":"droberts-ada","id":21064499,"avatar_url":"https://avatars1.githubusercontent.com/u/21064499?v=4","gravatar_id":"","url":"https://api.github.com/users/droberts-ada","html_url":"https://github.com/droberts-ada","followers_url":"https://api.github.com/users/droberts-ada/followers","following_url":"https://api.github.com/users/droberts-ada/following{/other_user}","gists_url":"https://api.github.com/users/droberts-ada/gists{/gist_id}","starred_url":"https://api.github.com/users/droberts-ada/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/droberts-ada/subscriptions","organizations_url":"https://api.github.com/users/droberts-ada/orgs","repos_url":"https://api.github.com/users/droberts-ada/repos","events_url":"https://api.github.com/users/droberts-ada/events{/privacy}","received_events_url":"https://api.github.com/users/droberts-ada/received_events","type":"User","site_admin":false},"body":"You should check the paid status here as well, since that's what the test's name advertises.","created_at":"2017-08-30T00:56:05Z","updated_at":"2017-08-30T00:57:14Z","html_url":"https://github.com/Ada-C8/grocery-store/pull/33#discussion_r135948309","pull_request_url":"https://api.github.com/repos/Ada-C8/grocery-store/pulls/33","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Ada-C8/grocery-store/pulls/comments/135948309"},"html":{"href":"https://github.com/Ada-C8/grocery-store/pull/33#discussion_r135948309"},"pull_request":{"href":"https://api.github.com/repos/Ada-C8/grocery-store/pulls/33"}}},"pull_request":{"url":"https://api.github.com/repos/Ada-C8/grocery-store/pulls/33","id":137977619,"html_url":"https://github.com/Ada-C8/grocery-store/pull/33","diff_url":"https://github.com/Ada-C8/grocery-store/pull/33.diff","patch_url":"https://github.com/Ada-C8/grocery-store/pull/33.patch","issue_url":"https://api.github.com/repos/Ada-C8/grocery-store/issues/33","number":33,"state":"open","locked":false,"title":"<Pipes>-<Roxanne Agerone>-<Grocery-Store>","user":{"login":"oxenran","id":15066931,"avatar_url":"https://avatars1.githubusercontent.com/u/15066931?v=4","gravatar_id":"","url":"https://api.github.com/users/oxenran","html_url":"https://github.com/oxenran","followers_url":"https://api.github.com/users/oxenran/followers","following_url":"https://api.github.com/users/oxenran/following{/other_user}","gists_url":"https://api.github.com/users/oxenran/gists{/gist_id}","starred_url":"https://api.github.com/users/oxenran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oxenran/subscriptions","organizations_url":"https://api.github.com/users/oxenran/orgs","repos_url":"https://api.github.com/users/oxenran/repos","events_url":"https://api.github.com/users/oxenran/events{/privacy}","received_events_url":"https://api.github.com/users/oxenran/received_events","type":"User","site_admin":false},"body":"# Grocery Store\r\nCongratulations! You're submitting your assignment.\r\n\r\n## Comprehension Questions\r\n\r\n|  Question \t|   Response\t|\r\n|---\t|---\t|\r\n|   Why is it useful to put classes inside modules? \t| Classes can inherit from other classes as well as have their own methods.  \t|\r\n|   What is accomplished with `raise ArgumentError`? \t|  ArgumentErrors are a way of letting the user know the source of faulty input. \t|\r\n|   Why do you think we made the `.all` & `.find` methods class methods?  Why not instance methods?\t| These methods are used across classes.  As instance methods, they would only be available once.  |\r\n|   Why does it make sense to use inheritance for the online order?  | Online order \"is a\" type of order.  It shares all of the parameters and methods with a few extra things. |\r\n|   Did the presence of automated tests change the way you thought about the problem? How? | I had to write the code in a more organized way.  The tests were the edges of the box that I needed to fill.  In other words, the tests gave me specific guidelines to follow in order to get the desired result. |\r\n","created_at":"2017-08-28T15:48:20Z","updated_at":"2017-08-30T00:57:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"86b3d6177090dc860e08fc8ca35b69c9e23051e2","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Ada-C8/grocery-store/pulls/33/commits","review_comments_url":"https://api.github.com/repos/Ada-C8/grocery-store/pulls/33/comments","review_comment_url":"https://api.github.com/repos/Ada-C8/grocery-store/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Ada-C8/grocery-store/issues/33/comments","statuses_url":"https://api.github.com/repos/Ada-C8/grocery-store/statuses/3702bd8443879f97d21dc5ca7185ed99729faa34","head":{"label":"oxenran:master","ref":"master","sha":"3702bd8443879f97d21dc5ca7185ed99729faa34","user":{"login":"oxenran","id":15066931,"avatar_url":"https://avatars1.githubusercontent.com/u/15066931?v=4","gravatar_id":"","url":"https://api.github.com/users/oxenran","html_url":"https://github.com/oxenran","followers_url":"https://api.github.com/users/oxenran/followers","following_url":"https://api.github.com/users/oxenran/following{/other_user}","gists_url":"https://api.github.com/users/oxenran/gists{/gist_id}","starred_url":"https://api.github.com/users/oxenran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oxenran/subscriptions","organizations_url":"https://api.github.com/users/oxenran/orgs","repos_url":"https://api.github.com/users/oxenran/repos","events_url":"https://api.github.com/users/oxenran/events{/privacy}","received_events_url":"https://api.github.com/users/oxenran/received_events","type":"User","site_admin":false},"repo":{"id":101098635,"name":"grocery-store","full_name":"oxenran/grocery-store","owner":{"login":"oxenran","id":15066931,"avatar_url":"https://avatars1.githubusercontent.com/u/15066931?v=4","gravatar_id":"","url":"https://api.github.com/users/oxenran","html_url":"https://github.com/oxenran","followers_url":"https://api.github.com/users/oxenran/followers","following_url":"https://api.github.com/users/oxenran/following{/other_user}","gists_url":"https://api.github.com/users/oxenran/gists{/gist_id}","starred_url":"https://api.github.com/users/oxenran/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oxenran/subscriptions","organizations_url":"https://api.github.com/users/oxenran/orgs","repos_url":"https://api.github.com/users/oxenran/repos","events_url":"https://api.github.com/users/oxenran/events{/privacy}","received_events_url":"https://api.github.com/users/oxenran/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/oxenran/grocery-store","description":null,"fork":true,"url":"https://api.github.com/repos/oxenran/grocery-store","forks_url":"https://api.github.com/repos/oxenran/grocery-store/forks","keys_url":"https://api.github.com/repos/oxenran/grocery-store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oxenran/grocery-store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oxenran/grocery-store/teams","hooks_url":"https://api.github.com/repos/oxenran/grocery-store/hooks","issue_events_url":"https://api.github.com/repos/oxenran/grocery-store/issues/events{/number}","events_url":"https://api.github.com/repos/oxenran/grocery-store/events","assignees_url":"https://api.github.com/repos/oxenran/grocery-store/assignees{/user}","branches_url":"https://api.github.com/repos/oxenran/grocery-store/branches{/branch}","tags_url":"https://api.github.com/repos/oxenran/grocery-store/tags","blobs_url":"https://api.github.com/repos/oxenran/grocery-store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oxenran/grocery-store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oxenran/grocery-store/git/refs{/sha}","trees_url":"https://api.github.com/repos/oxenran/grocery-store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oxenran/grocery-store/statuses/{sha}","languages_url":"https://api.github.com/repos/oxenran/grocery-store/languages","stargazers_url":"https://api.github.com/repos/oxenran/grocery-store/stargazers","contributors_url":"https://api.github.com/repos/oxenran/grocery-store/contributors","subscribers_url":"https://api.github.com/repos/oxenran/grocery-store/subscribers","subscription_url":"https://api.github.com/repos/oxenran/grocery-store/subscription","commits_url":"https://api.github.com/repos/oxenran/grocery-store/commits{/sha}","git_commits_url":"https://api.github.com/repos/oxenran/grocery-store/git/commits{/sha}","comments_url":"https://api.github.com/repos/oxenran/grocery-store/comments{/number}","issue_comment_url":"https://api.github.com/repos/oxenran/grocery-store/issues/comments{/number}","contents_url":"https://api.github.com/repos/oxenran/grocery-store/contents/{+path}","compare_url":"https://api.github.com/repos/oxenran/grocery-store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oxenran/grocery-store/merges","archive_url":"https://api.github.com/repos/oxenran/grocery-store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oxenran/grocery-store/downloads","issues_url":"https://api.github.com/repos/oxenran/grocery-store/issues{/number}","pulls_url":"https://api.github.com/repos/oxenran/grocery-store/pulls{/number}","milestones_url":"https://api.github.com/repos/oxenran/grocery-store/milestones{/number}","notifications_url":"https://api.github.com/repos/oxenran/grocery-store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oxenran/grocery-store/labels{/name}","releases_url":"https://api.github.com/repos/oxenran/grocery-store/releases{/id}","deployments_url":"https://api.github.com/repos/oxenran/grocery-store/deployments","created_at":"2017-08-22T19:13:42Z","updated_at":"2017-08-22T19:13:43Z","pushed_at":"2017-08-28T15:41:40Z","git_url":"git://github.com/oxenran/grocery-store.git","ssh_url":"git@github.com:oxenran/grocery-store.git","clone_url":"https://github.com/oxenran/grocery-store.git","svn_url":"https://github.com/oxenran/grocery-store","homepage":null,"size":38,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Ada-C8:master","ref":"master","sha":"1abd0576a2ee570011324deedea01d9dbe15e126","user":{"login":"Ada-C8","id":29872956,"avatar_url":"https://avatars2.githubusercontent.com/u/29872956?v=4","gravatar_id":"","url":"https://api.github.com/users/Ada-C8","html_url":"https://github.com/Ada-C8","followers_url":"https://api.github.com/users/Ada-C8/followers","following_url":"https://api.github.com/users/Ada-C8/following{/other_user}","gists_url":"https://api.github.com/users/Ada-C8/gists{/gist_id}","starred_url":"https://api.github.com/users/Ada-C8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ada-C8/subscriptions","organizations_url":"https://api.github.com/users/Ada-C8/orgs","repos_url":"https://api.github.com/users/Ada-C8/repos","events_url":"https://api.github.com/users/Ada-C8/events{/privacy}","received_events_url":"https://api.github.com/users/Ada-C8/received_events","type":"Organization","site_admin":false},"repo":{"id":100752849,"name":"grocery-store","full_name":"Ada-C8/grocery-store","owner":{"login":"Ada-C8","id":29872956,"avatar_url":"https://avatars2.githubusercontent.com/u/29872956?v=4","gravatar_id":"","url":"https://api.github.com/users/Ada-C8","html_url":"https://github.com/Ada-C8","followers_url":"https://api.github.com/users/Ada-C8/followers","following_url":"https://api.github.com/users/Ada-C8/following{/other_user}","gists_url":"https://api.github.com/users/Ada-C8/gists{/gist_id}","starred_url":"https://api.github.com/users/Ada-C8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ada-C8/subscriptions","organizations_url":"https://api.github.com/users/Ada-C8/orgs","repos_url":"https://api.github.com/users/Ada-C8/repos","events_url":"https://api.github.com/users/Ada-C8/events{/privacy}","received_events_url":"https://api.github.com/users/Ada-C8/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Ada-C8/grocery-store","description":null,"fork":true,"url":"https://api.github.com/repos/Ada-C8/grocery-store","forks_url":"https://api.github.com/repos/Ada-C8/grocery-store/forks","keys_url":"https://api.github.com/repos/Ada-C8/grocery-store/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ada-C8/grocery-store/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ada-C8/grocery-store/teams","hooks_url":"https://api.github.com/repos/Ada-C8/grocery-store/hooks","issue_events_url":"https://api.github.com/repos/Ada-C8/grocery-store/issues/events{/number}","events_url":"https://api.github.com/repos/Ada-C8/grocery-store/events","assignees_url":"https://api.github.com/repos/Ada-C8/grocery-store/assignees{/user}","branches_url":"https://api.github.com/repos/Ada-C8/grocery-store/branches{/branch}","tags_url":"https://api.github.com/repos/Ada-C8/grocery-store/tags","blobs_url":"https://api.github.com/repos/Ada-C8/grocery-store/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ada-C8/grocery-store/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ada-C8/grocery-store/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ada-C8/grocery-store/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ada-C8/grocery-store/statuses/{sha}","languages_url":"https://api.github.com/repos/Ada-C8/grocery-store/languages","stargazers_url":"https://api.github.com/repos/Ada-C8/grocery-store/stargazers","contributors_url":"https://api.github.com/repos/Ada-C8/grocery-store/contributors","subscribers_url":"https://api.github.com/repos/Ada-C8/grocery-store/subscribers","subscription_url":"https://api.github.com/repos/Ada-C8/grocery-store/subscription","commits_url":"https://api.github.com/repos/Ada-C8/grocery-store/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ada-C8/grocery-store/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ada-C8/grocery-store/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ada-C8/grocery-store/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ada-C8/grocery-store/contents/{+path}","compare_url":"https://api.github.com/repos/Ada-C8/grocery-store/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ada-C8/grocery-store/merges","archive_url":"https://api.github.com/repos/Ada-C8/grocery-store/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ada-C8/grocery-store/downloads","issues_url":"https://api.github.com/repos/Ada-C8/grocery-store/issues{/number}","pulls_url":"https://api.github.com/repos/Ada-C8/grocery-store/pulls{/number}","milestones_url":"https://api.github.com/repos/Ada-C8/grocery-store/milestones{/number}","notifications_url":"https://api.github.com/repos/Ada-C8/grocery-store/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ada-C8/grocery-store/labels{/name}","releases_url":"https://api.github.com/repos/Ada-C8/grocery-store/releases{/id}","deployments_url":"https://api.github.com/repos/Ada-C8/grocery-store/deployments","created_at":"2017-08-18T21:53:06Z","updated_at":"2017-08-18T21:53:08Z","pushed_at":"2017-08-29T16:40:02Z","git_url":"git://github.com/Ada-C8/grocery-store.git","ssh_url":"git@github.com:Ada-C8/grocery-store.git","clone_url":"https://github.com/Ada-C8/grocery-store.git","svn_url":"https://github.com/Ada-C8/grocery-store","homepage":null,"size":31,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":48,"mirror_url":null,"open_issues_count":46,"forks":48,"open_issues":46,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Ada-C8/grocery-store/pulls/33"},"html":{"href":"https://github.com/Ada-C8/grocery-store/pull/33"},"issue":{"href":"https://api.github.com/repos/Ada-C8/grocery-store/issues/33"},"comments":{"href":"https://api.github.com/repos/Ada-C8/grocery-store/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/Ada-C8/grocery-store/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/Ada-C8/grocery-store/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Ada-C8/grocery-store/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/Ada-C8/grocery-store/statuses/3702bd8443879f97d21dc5ca7185ed99729faa34"}},"author_association":"NONE"}}
{"actor":{"display_login":"droberts-ada"}}