{"action":"created","comment":{"url":"https://api.github.com/repos/MaryBork/black_thursday/pulls/comments/218658465","pull_request_review_id":156645404,"id":218658465,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxODY1ODQ2NQ==","diff_hunk":"@@ -128,9 +128,36 @@ def test_can_return_list_one_time_buyers\n     assert_equal 1, @sales_engine.invoices.find_all_by_customer_id(first_id).length\n   end\n \n-  def test_find_item\n+  def test_find_one_time_buyer_top_item\n     item = @sales_analyst.one_time_buyers_top_item\n     assert_equal 263396463, item.id\n   end\n \n+  def test_it_can_return_items_in_year\n+    assert_equal 2, @sales_analyst.items_bought_in_year(400, 2002).length\n+    assert_equal 263549742, @sales_analyst.items_bought_in_year(400, 2002).first.id\n+    assert_equal \"Necklace: V Tube\", @sales_analyst.items_bought_in_year(400, 2002).first.name\n+    assert_equal Item, @sales_analyst.items_bought_in_year(400, 2002).first.class\n+  end\n+\n+  def test_can_return_list_of_high_volume_items\n+    actual = @sales_analyst.highest_volume_items(200)\n+\n+    assert_equal 6, actual.length\n+    assert_equal 263420195, actual.first.id\n+    assert_equal 263448547, actual.last.id\n+    assert_instance_of Item, actual.first\n+  end\n+\n+  def test_can_return_customers_with_unpaid_invoices\n+    actual = @sales_analyst.customers_with_unpaid_invoices\n+    assert_equal 786, actual.length\n+    assert_equal 1, actual.first.id\n+    assert_equal 999, actual.last.id\n+  end\n+\n+  # def test_can_return_invoice_with_highest_dollar_amount\n+  #\n+  # end\n+","path":"test/sales_analyst_test.rb","position":36,"original_position":36,"commit_id":"18cf62f0cb2e1cf1305d5cec4f92868211e1426d","original_commit_id":"18cf62f0cb2e1cf1305d5cec4f92868211e1426d","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Layout/EmptyLinesAroundClassBody: Extra empty line detected at class body end.","created_at":"2018-09-19T03:31:15Z","updated_at":"2018-09-19T03:31:18Z","html_url":"https://github.com/MaryBork/black_thursday/pull/16#discussion_r218658465","pull_request_url":"https://api.github.com/repos/MaryBork/black_thursday/pulls/16","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/MaryBork/black_thursday/pulls/comments/218658465"},"html":{"href":"https://github.com/MaryBork/black_thursday/pull/16#discussion_r218658465"},"pull_request":{"href":"https://api.github.com/repos/MaryBork/black_thursday/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/MaryBork/black_thursday/pulls/16","id":216504148,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE2NTA0MTQ4","html_url":"https://github.com/MaryBork/black_thursday/pull/16","diff_url":"https://github.com/MaryBork/black_thursday/pull/16.diff","patch_url":"https://github.com/MaryBork/black_thursday/pull/16.patch","issue_url":"https://api.github.com/repos/MaryBork/black_thursday/issues/16","number":16,"state":"open","locked":false,"title":"It5 items per yr","user":{"login":"TimothyFell","id":39140759,"node_id":"MDQ6VXNlcjM5MTQwNzU5","avatar_url":"https://avatars3.githubusercontent.com/u/39140759?v=4","gravatar_id":"","url":"https://api.github.com/users/TimothyFell","html_url":"https://github.com/TimothyFell","followers_url":"https://api.github.com/users/TimothyFell/followers","following_url":"https://api.github.com/users/TimothyFell/following{/other_user}","gists_url":"https://api.github.com/users/TimothyFell/gists{/gist_id}","starred_url":"https://api.github.com/users/TimothyFell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TimothyFell/subscriptions","organizations_url":"https://api.github.com/users/TimothyFell/orgs","repos_url":"https://api.github.com/users/TimothyFell/repos","events_url":"https://api.github.com/users/TimothyFell/events{/privacy}","received_events_url":"https://api.github.com/users/TimothyFell/received_events","type":"User","site_admin":false},"body":"Added the methods we wrote on 9-18 using tdd","created_at":"2018-09-19T03:30:59Z","updated_at":"2018-09-19T03:31:18Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bf6eb3d7b9a945c491d97837b13f96d596f36cad","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/MaryBork/black_thursday/pulls/16/commits","review_comments_url":"https://api.github.com/repos/MaryBork/black_thursday/pulls/16/comments","review_comment_url":"https://api.github.com/repos/MaryBork/black_thursday/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MaryBork/black_thursday/issues/16/comments","statuses_url":"https://api.github.com/repos/MaryBork/black_thursday/statuses/18cf62f0cb2e1cf1305d5cec4f92868211e1426d","head":{"label":"MaryBork:it5_items_per_yr","ref":"it5_items_per_yr","sha":"18cf62f0cb2e1cf1305d5cec4f92868211e1426d","user":{"login":"MaryBork","id":38509894,"node_id":"MDQ6VXNlcjM4NTA5ODk0","avatar_url":"https://avatars1.githubusercontent.com/u/38509894?v=4","gravatar_id":"","url":"https://api.github.com/users/MaryBork","html_url":"https://github.com/MaryBork","followers_url":"https://api.github.com/users/MaryBork/followers","following_url":"https://api.github.com/users/MaryBork/following{/other_user}","gists_url":"https://api.github.com/users/MaryBork/gists{/gist_id}","starred_url":"https://api.github.com/users/MaryBork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaryBork/subscriptions","organizations_url":"https://api.github.com/users/MaryBork/orgs","repos_url":"https://api.github.com/users/MaryBork/repos","events_url":"https://api.github.com/users/MaryBork/events{/privacy}","received_events_url":"https://api.github.com/users/MaryBork/received_events","type":"User","site_admin":false},"repo":{"id":147857411,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc4NTc0MTE=","name":"black_thursday","full_name":"MaryBork/black_thursday","private":false,"owner":{"login":"MaryBork","id":38509894,"node_id":"MDQ6VXNlcjM4NTA5ODk0","avatar_url":"https://avatars1.githubusercontent.com/u/38509894?v=4","gravatar_id":"","url":"https://api.github.com/users/MaryBork","html_url":"https://github.com/MaryBork","followers_url":"https://api.github.com/users/MaryBork/followers","following_url":"https://api.github.com/users/MaryBork/following{/other_user}","gists_url":"https://api.github.com/users/MaryBork/gists{/gist_id}","starred_url":"https://api.github.com/users/MaryBork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaryBork/subscriptions","organizations_url":"https://api.github.com/users/MaryBork/orgs","repos_url":"https://api.github.com/users/MaryBork/repos","events_url":"https://api.github.com/users/MaryBork/events{/privacy}","received_events_url":"https://api.github.com/users/MaryBork/received_events","type":"User","site_admin":false},"html_url":"https://github.com/MaryBork/black_thursday","description":null,"fork":true,"url":"https://api.github.com/repos/MaryBork/black_thursday","forks_url":"https://api.github.com/repos/MaryBork/black_thursday/forks","keys_url":"https://api.github.com/repos/MaryBork/black_thursday/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MaryBork/black_thursday/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MaryBork/black_thursday/teams","hooks_url":"https://api.github.com/repos/MaryBork/black_thursday/hooks","issue_events_url":"https://api.github.com/repos/MaryBork/black_thursday/issues/events{/number}","events_url":"https://api.github.com/repos/MaryBork/black_thursday/events","assignees_url":"https://api.github.com/repos/MaryBork/black_thursday/assignees{/user}","branches_url":"https://api.github.com/repos/MaryBork/black_thursday/branches{/branch}","tags_url":"https://api.github.com/repos/MaryBork/black_thursday/tags","blobs_url":"https://api.github.com/repos/MaryBork/black_thursday/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MaryBork/black_thursday/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MaryBork/black_thursday/git/refs{/sha}","trees_url":"https://api.github.com/repos/MaryBork/black_thursday/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MaryBork/black_thursday/statuses/{sha}","languages_url":"https://api.github.com/repos/MaryBork/black_thursday/languages","stargazers_url":"https://api.github.com/repos/MaryBork/black_thursday/stargazers","contributors_url":"https://api.github.com/repos/MaryBork/black_thursday/contributors","subscribers_url":"https://api.github.com/repos/MaryBork/black_thursday/subscribers","subscription_url":"https://api.github.com/repos/MaryBork/black_thursday/subscription","commits_url":"https://api.github.com/repos/MaryBork/black_thursday/commits{/sha}","git_commits_url":"https://api.github.com/repos/MaryBork/black_thursday/git/commits{/sha}","comments_url":"https://api.github.com/repos/MaryBork/black_thursday/comments{/number}","issue_comment_url":"https://api.github.com/repos/MaryBork/black_thursday/issues/comments{/number}","contents_url":"https://api.github.com/repos/MaryBork/black_thursday/contents/{+path}","compare_url":"https://api.github.com/repos/MaryBork/black_thursday/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MaryBork/black_thursday/merges","archive_url":"https://api.github.com/repos/MaryBork/black_thursday/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MaryBork/black_thursday/downloads","issues_url":"https://api.github.com/repos/MaryBork/black_thursday/issues{/number}","pulls_url":"https://api.github.com/repos/MaryBork/black_thursday/pulls{/number}","milestones_url":"https://api.github.com/repos/MaryBork/black_thursday/milestones{/number}","notifications_url":"https://api.github.com/repos/MaryBork/black_thursday/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MaryBork/black_thursday/labels{/name}","releases_url":"https://api.github.com/repos/MaryBork/black_thursday/releases{/id}","deployments_url":"https://api.github.com/repos/MaryBork/black_thursday/deployments","created_at":"2018-09-07T17:56:15Z","updated_at":"2018-09-18T18:58:31Z","pushed_at":"2018-09-19T03:31:00Z","git_url":"git://github.com/MaryBork/black_thursday.git","ssh_url":"git@github.com:MaryBork/black_thursday.git","clone_url":"https://github.com/MaryBork/black_thursday.git","svn_url":"https://github.com/MaryBork/black_thursday","homepage":null,"size":1745,"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,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"MaryBork:master","ref":"master","sha":"26ce920520b69066ac36a4f0c6b6a1f53dc1440a","user":{"login":"MaryBork","id":38509894,"node_id":"MDQ6VXNlcjM4NTA5ODk0","avatar_url":"https://avatars1.githubusercontent.com/u/38509894?v=4","gravatar_id":"","url":"https://api.github.com/users/MaryBork","html_url":"https://github.com/MaryBork","followers_url":"https://api.github.com/users/MaryBork/followers","following_url":"https://api.github.com/users/MaryBork/following{/other_user}","gists_url":"https://api.github.com/users/MaryBork/gists{/gist_id}","starred_url":"https://api.github.com/users/MaryBork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaryBork/subscriptions","organizations_url":"https://api.github.com/users/MaryBork/orgs","repos_url":"https://api.github.com/users/MaryBork/repos","events_url":"https://api.github.com/users/MaryBork/events{/privacy}","received_events_url":"https://api.github.com/users/MaryBork/received_events","type":"User","site_admin":false},"repo":{"id":147857411,"node_id":"MDEwOlJlcG9zaXRvcnkxNDc4NTc0MTE=","name":"black_thursday","full_name":"MaryBork/black_thursday","private":false,"owner":{"login":"MaryBork","id":38509894,"node_id":"MDQ6VXNlcjM4NTA5ODk0","avatar_url":"https://avatars1.githubusercontent.com/u/38509894?v=4","gravatar_id":"","url":"https://api.github.com/users/MaryBork","html_url":"https://github.com/MaryBork","followers_url":"https://api.github.com/users/MaryBork/followers","following_url":"https://api.github.com/users/MaryBork/following{/other_user}","gists_url":"https://api.github.com/users/MaryBork/gists{/gist_id}","starred_url":"https://api.github.com/users/MaryBork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaryBork/subscriptions","organizations_url":"https://api.github.com/users/MaryBork/orgs","repos_url":"https://api.github.com/users/MaryBork/repos","events_url":"https://api.github.com/users/MaryBork/events{/privacy}","received_events_url":"https://api.github.com/users/MaryBork/received_events","type":"User","site_admin":false},"html_url":"https://github.com/MaryBork/black_thursday","description":null,"fork":true,"url":"https://api.github.com/repos/MaryBork/black_thursday","forks_url":"https://api.github.com/repos/MaryBork/black_thursday/forks","keys_url":"https://api.github.com/repos/MaryBork/black_thursday/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MaryBork/black_thursday/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MaryBork/black_thursday/teams","hooks_url":"https://api.github.com/repos/MaryBork/black_thursday/hooks","issue_events_url":"https://api.github.com/repos/MaryBork/black_thursday/issues/events{/number}","events_url":"https://api.github.com/repos/MaryBork/black_thursday/events","assignees_url":"https://api.github.com/repos/MaryBork/black_thursday/assignees{/user}","branches_url":"https://api.github.com/repos/MaryBork/black_thursday/branches{/branch}","tags_url":"https://api.github.com/repos/MaryBork/black_thursday/tags","blobs_url":"https://api.github.com/repos/MaryBork/black_thursday/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MaryBork/black_thursday/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MaryBork/black_thursday/git/refs{/sha}","trees_url":"https://api.github.com/repos/MaryBork/black_thursday/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MaryBork/black_thursday/statuses/{sha}","languages_url":"https://api.github.com/repos/MaryBork/black_thursday/languages","stargazers_url":"https://api.github.com/repos/MaryBork/black_thursday/stargazers","contributors_url":"https://api.github.com/repos/MaryBork/black_thursday/contributors","subscribers_url":"https://api.github.com/repos/MaryBork/black_thursday/subscribers","subscription_url":"https://api.github.com/repos/MaryBork/black_thursday/subscription","commits_url":"https://api.github.com/repos/MaryBork/black_thursday/commits{/sha}","git_commits_url":"https://api.github.com/repos/MaryBork/black_thursday/git/commits{/sha}","comments_url":"https://api.github.com/repos/MaryBork/black_thursday/comments{/number}","issue_comment_url":"https://api.github.com/repos/MaryBork/black_thursday/issues/comments{/number}","contents_url":"https://api.github.com/repos/MaryBork/black_thursday/contents/{+path}","compare_url":"https://api.github.com/repos/MaryBork/black_thursday/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MaryBork/black_thursday/merges","archive_url":"https://api.github.com/repos/MaryBork/black_thursday/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MaryBork/black_thursday/downloads","issues_url":"https://api.github.com/repos/MaryBork/black_thursday/issues{/number}","pulls_url":"https://api.github.com/repos/MaryBork/black_thursday/pulls{/number}","milestones_url":"https://api.github.com/repos/MaryBork/black_thursday/milestones{/number}","notifications_url":"https://api.github.com/repos/MaryBork/black_thursday/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MaryBork/black_thursday/labels{/name}","releases_url":"https://api.github.com/repos/MaryBork/black_thursday/releases{/id}","deployments_url":"https://api.github.com/repos/MaryBork/black_thursday/deployments","created_at":"2018-09-07T17:56:15Z","updated_at":"2018-09-18T18:58:31Z","pushed_at":"2018-09-19T03:31:00Z","git_url":"git://github.com/MaryBork/black_thursday.git","ssh_url":"git@github.com:MaryBork/black_thursday.git","clone_url":"https://github.com/MaryBork/black_thursday.git","svn_url":"https://github.com/MaryBork/black_thursday","homepage":null,"size":1745,"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,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MaryBork/black_thursday/pulls/16"},"html":{"href":"https://github.com/MaryBork/black_thursday/pull/16"},"issue":{"href":"https://api.github.com/repos/MaryBork/black_thursday/issues/16"},"comments":{"href":"https://api.github.com/repos/MaryBork/black_thursday/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/MaryBork/black_thursday/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/MaryBork/black_thursday/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MaryBork/black_thursday/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/MaryBork/black_thursday/statuses/18cf62f0cb2e1cf1305d5cec4f92868211e1426d"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"houndci-bot"}}