{"action":"created","comment":{"url":"https://api.github.com/repos/cebarks/black_thursday/pulls/comments/229091096","pull_request_review_id":169508428,"id":229091096,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyOTA5MTA5Ng==","diff_hunk":"@@ -0,0 +1,117 @@\n+require './lib/customer_repository'\n+require './lib/customer'\n+require './lib/invoice_repository'\n+require './lib/invoice'\n+require './lib/invoice_item_repository'\n+require './lib/invoice_item'\n+require './lib/item_repository'\n+require './lib/item'\n+require './lib/merchant_repository'\n+require './lib/merchant'\n+require './lib/transaction_repository'\n+require 'bigdecimal'\n+\n+module TestData\n+  def make_some_test_data\n+    @now = Time.now\n+\n+    @mr = MerchantRepository.new\n+    @cr = CustomerRepository.new\n+    @ir = InvoiceRepository.new\n+    @iir = InvoiceItemRepository.new\n+    @itemr = ItemRepository.new\n+    @tr = TransactionRepository.new\n+\n+    @m_1 = Merchant.new({id: 10, name: \"Bettys Beans\"})\n+    @m_1 = Merchant.new({id: 11, name: \"Freds Fireworks\"})\n+\n+    @mr.instances << @m_1\n+    @mr.instances << @m_2\n+\n+    @c_1 = Customer.new({\n+      :id => 1,\n+      :first_name => \"Joan\",\n+      :last_name => \"Clarke\",\n+      :created_at => @now,\n+      :updated_at => @now\n+    })\n+\n+    @c_2 = Customer.new({\n+      :id => 2,\n+      :first_name => \"Jeff\",\n+      :last_name => \"Baconson\",\n+      :created_at => @now,\n+      :updated_at => @now\n+    })\n+\n+    @cr.instances << @c_1\n+    @cr.instances << @c_2\n+\n+    @inv_1 = Invoice.new({\n+      :id          => 4,\n+      :customer_id => 1,\n+      :merchant_id => 10,\n+      :status      => \"pending\",\n+      :created_at  => @now,\n+      :updated_at  => @now,\n+    })\n+\n+    @inv_2 = Invoice.new({\n+      :id          => 5,\n+      :customer_id => 2,\n+      :merchant_id => 11,\n+      :status      => \"pending\",\n+      :created_at  => @now,\n+      :updated_at  => @now,\n+    })\n+\n+    @ir.instances << @inv_1\n+    @ir.instances << @inv_2\n+\n+    @ii_1 = InvoiceItem.new({\n+      :id => 6,\n+      :item_id => 7,\n+      :invoice_id => 4,\n+      :quantity => 1,\n+      :unit_price => BigDecimal.new(15.99, 4),\n+      :created_at => @now,\n+      :updated_at => @now\n+    })\n+\n+    @ii_2 = InvoiceItem.new({\n+      :id => 7,\n+      :item_id => 8,\n+      :invoice_id => 5,\n+      :quantity => 1,\n+      :unit_price => BigDecimal.new(10.99, 4),\n+      :created_at => @now,\n+      :updated_at => @now\n+    })\n+\n+    @iir.instances << @ii_1\n+    @iir.instances << @ii_2\n+\n+    @i_1 = Item.new({\n+      :id          => 7,\n+      :name        => \"Pencil\",\n+      :description => \"You can use it to write things\",\n+      :unit_price  => BigDecimal.new(10.99,4),\n+      :created_at  => @now,\n+      :updated_at  => @now,\n+      :merchant_id => 10\n+    })\n+\n+    @i_2 = Item.new({\n+      :id          => 8,","path":"test/test_data.rb","position":105,"original_position":105,"commit_id":"b7b1e03e42a9d3e6bf37127010a3414b9455d32f","original_commit_id":"b7b1e03e42a9d3e6bf37127010a3414b9455d32f","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/IndentHash: Use 2 spaces for indentation in a hash, relative to the first position after the preceding left parenthesis.<br>Style/HashSyntax: Use the new Ruby 1.9 hash syntax.","created_at":"2018-10-29T20:43:19Z","updated_at":"2018-10-29T20:43:21Z","html_url":"https://github.com/cebarks/black_thursday/pull/48#discussion_r229091096","pull_request_url":"https://api.github.com/repos/cebarks/black_thursday/pulls/48","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/cebarks/black_thursday/pulls/comments/229091096"},"html":{"href":"https://github.com/cebarks/black_thursday/pull/48#discussion_r229091096"},"pull_request":{"href":"https://api.github.com/repos/cebarks/black_thursday/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/cebarks/black_thursday/pulls/48","id":226663606,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2NjYzNjA2","html_url":"https://github.com/cebarks/black_thursday/pull/48","diff_url":"https://github.com/cebarks/black_thursday/pull/48.diff","patch_url":"https://github.com/cebarks/black_thursday/pull/48.patch","issue_url":"https://api.github.com/repos/cebarks/black_thursday/issues/48","number":48,"state":"closed","locked":false,"title":"Iteration 5 methods","user":{"login":"bendelonlee","id":41645771,"node_id":"MDQ6VXNlcjQxNjQ1Nzcx","avatar_url":"https://avatars2.githubusercontent.com/u/41645771?v=4","gravatar_id":"","url":"https://api.github.com/users/bendelonlee","html_url":"https://github.com/bendelonlee","followers_url":"https://api.github.com/users/bendelonlee/followers","following_url":"https://api.github.com/users/bendelonlee/following{/other_user}","gists_url":"https://api.github.com/users/bendelonlee/gists{/gist_id}","starred_url":"https://api.github.com/users/bendelonlee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bendelonlee/subscriptions","organizations_url":"https://api.github.com/users/bendelonlee/orgs","repos_url":"https://api.github.com/users/bendelonlee/repos","events_url":"https://api.github.com/users/bendelonlee/events{/privacy}","received_events_url":"https://api.github.com/users/bendelonlee/received_events","type":"User","site_admin":false},"body":"10 examples. 0 failures.","created_at":"2018-10-29T18:15:21Z","updated_at":"2018-10-29T20:43:21Z","closed_at":"2018-10-29T20:42:29Z","merged_at":"2018-10-29T20:42:29Z","merge_commit_sha":"5c7acc1fcafc60437845c45a9d1680b58147705a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/cebarks/black_thursday/pulls/48/commits","review_comments_url":"https://api.github.com/repos/cebarks/black_thursday/pulls/48/comments","review_comment_url":"https://api.github.com/repos/cebarks/black_thursday/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cebarks/black_thursday/issues/48/comments","statuses_url":"https://api.github.com/repos/cebarks/black_thursday/statuses/b7b1e03e42a9d3e6bf37127010a3414b9455d32f","head":{"label":"cebarks:iteration_5_methods","ref":"iteration_5_methods","sha":"b7b1e03e42a9d3e6bf37127010a3414b9455d32f","user":{"login":"cebarks","id":551065,"node_id":"MDQ6VXNlcjU1MTA2NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/551065?v=4","gravatar_id":"","url":"https://api.github.com/users/cebarks","html_url":"https://github.com/cebarks","followers_url":"https://api.github.com/users/cebarks/followers","following_url":"https://api.github.com/users/cebarks/following{/other_user}","gists_url":"https://api.github.com/users/cebarks/gists{/gist_id}","starred_url":"https://api.github.com/users/cebarks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebarks/subscriptions","organizations_url":"https://api.github.com/users/cebarks/orgs","repos_url":"https://api.github.com/users/cebarks/repos","events_url":"https://api.github.com/users/cebarks/events{/privacy}","received_events_url":"https://api.github.com/users/cebarks/received_events","type":"User","site_admin":false},"repo":{"id":154185892,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQxODU4OTI=","name":"black_thursday","full_name":"cebarks/black_thursday","private":false,"owner":{"login":"cebarks","id":551065,"node_id":"MDQ6VXNlcjU1MTA2NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/551065?v=4","gravatar_id":"","url":"https://api.github.com/users/cebarks","html_url":"https://github.com/cebarks","followers_url":"https://api.github.com/users/cebarks/followers","following_url":"https://api.github.com/users/cebarks/following{/other_user}","gists_url":"https://api.github.com/users/cebarks/gists{/gist_id}","starred_url":"https://api.github.com/users/cebarks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebarks/subscriptions","organizations_url":"https://api.github.com/users/cebarks/orgs","repos_url":"https://api.github.com/users/cebarks/repos","events_url":"https://api.github.com/users/cebarks/events{/privacy}","received_events_url":"https://api.github.com/users/cebarks/received_events","type":"User","site_admin":false},"html_url":"https://github.com/cebarks/black_thursday","description":null,"fork":true,"url":"https://api.github.com/repos/cebarks/black_thursday","forks_url":"https://api.github.com/repos/cebarks/black_thursday/forks","keys_url":"https://api.github.com/repos/cebarks/black_thursday/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cebarks/black_thursday/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cebarks/black_thursday/teams","hooks_url":"https://api.github.com/repos/cebarks/black_thursday/hooks","issue_events_url":"https://api.github.com/repos/cebarks/black_thursday/issues/events{/number}","events_url":"https://api.github.com/repos/cebarks/black_thursday/events","assignees_url":"https://api.github.com/repos/cebarks/black_thursday/assignees{/user}","branches_url":"https://api.github.com/repos/cebarks/black_thursday/branches{/branch}","tags_url":"https://api.github.com/repos/cebarks/black_thursday/tags","blobs_url":"https://api.github.com/repos/cebarks/black_thursday/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cebarks/black_thursday/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cebarks/black_thursday/git/refs{/sha}","trees_url":"https://api.github.com/repos/cebarks/black_thursday/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cebarks/black_thursday/statuses/{sha}","languages_url":"https://api.github.com/repos/cebarks/black_thursday/languages","stargazers_url":"https://api.github.com/repos/cebarks/black_thursday/stargazers","contributors_url":"https://api.github.com/repos/cebarks/black_thursday/contributors","subscribers_url":"https://api.github.com/repos/cebarks/black_thursday/subscribers","subscription_url":"https://api.github.com/repos/cebarks/black_thursday/subscription","commits_url":"https://api.github.com/repos/cebarks/black_thursday/commits{/sha}","git_commits_url":"https://api.github.com/repos/cebarks/black_thursday/git/commits{/sha}","comments_url":"https://api.github.com/repos/cebarks/black_thursday/comments{/number}","issue_comment_url":"https://api.github.com/repos/cebarks/black_thursday/issues/comments{/number}","contents_url":"https://api.github.com/repos/cebarks/black_thursday/contents/{+path}","compare_url":"https://api.github.com/repos/cebarks/black_thursday/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cebarks/black_thursday/merges","archive_url":"https://api.github.com/repos/cebarks/black_thursday/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cebarks/black_thursday/downloads","issues_url":"https://api.github.com/repos/cebarks/black_thursday/issues{/number}","pulls_url":"https://api.github.com/repos/cebarks/black_thursday/pulls{/number}","milestones_url":"https://api.github.com/repos/cebarks/black_thursday/milestones{/number}","notifications_url":"https://api.github.com/repos/cebarks/black_thursday/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cebarks/black_thursday/labels{/name}","releases_url":"https://api.github.com/repos/cebarks/black_thursday/releases{/id}","deployments_url":"https://api.github.com/repos/cebarks/black_thursday/deployments","created_at":"2018-10-22T17:24:54Z","updated_at":"2018-10-29T20:42:31Z","pushed_at":"2018-10-29T20:42:29Z","git_url":"git://github.com/cebarks/black_thursday.git","ssh_url":"git@github.com:cebarks/black_thursday.git","clone_url":"https://github.com/cebarks/black_thursday.git","svn_url":"https://github.com/cebarks/black_thursday","homepage":null,"size":1897,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"cebarks:master","ref":"master","sha":"966519d4e553300ee5951a529870a8f674847697","user":{"login":"cebarks","id":551065,"node_id":"MDQ6VXNlcjU1MTA2NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/551065?v=4","gravatar_id":"","url":"https://api.github.com/users/cebarks","html_url":"https://github.com/cebarks","followers_url":"https://api.github.com/users/cebarks/followers","following_url":"https://api.github.com/users/cebarks/following{/other_user}","gists_url":"https://api.github.com/users/cebarks/gists{/gist_id}","starred_url":"https://api.github.com/users/cebarks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebarks/subscriptions","organizations_url":"https://api.github.com/users/cebarks/orgs","repos_url":"https://api.github.com/users/cebarks/repos","events_url":"https://api.github.com/users/cebarks/events{/privacy}","received_events_url":"https://api.github.com/users/cebarks/received_events","type":"User","site_admin":false},"repo":{"id":154185892,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQxODU4OTI=","name":"black_thursday","full_name":"cebarks/black_thursday","private":false,"owner":{"login":"cebarks","id":551065,"node_id":"MDQ6VXNlcjU1MTA2NQ==","avatar_url":"https://avatars3.githubusercontent.com/u/551065?v=4","gravatar_id":"","url":"https://api.github.com/users/cebarks","html_url":"https://github.com/cebarks","followers_url":"https://api.github.com/users/cebarks/followers","following_url":"https://api.github.com/users/cebarks/following{/other_user}","gists_url":"https://api.github.com/users/cebarks/gists{/gist_id}","starred_url":"https://api.github.com/users/cebarks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebarks/subscriptions","organizations_url":"https://api.github.com/users/cebarks/orgs","repos_url":"https://api.github.com/users/cebarks/repos","events_url":"https://api.github.com/users/cebarks/events{/privacy}","received_events_url":"https://api.github.com/users/cebarks/received_events","type":"User","site_admin":false},"html_url":"https://github.com/cebarks/black_thursday","description":null,"fork":true,"url":"https://api.github.com/repos/cebarks/black_thursday","forks_url":"https://api.github.com/repos/cebarks/black_thursday/forks","keys_url":"https://api.github.com/repos/cebarks/black_thursday/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cebarks/black_thursday/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cebarks/black_thursday/teams","hooks_url":"https://api.github.com/repos/cebarks/black_thursday/hooks","issue_events_url":"https://api.github.com/repos/cebarks/black_thursday/issues/events{/number}","events_url":"https://api.github.com/repos/cebarks/black_thursday/events","assignees_url":"https://api.github.com/repos/cebarks/black_thursday/assignees{/user}","branches_url":"https://api.github.com/repos/cebarks/black_thursday/branches{/branch}","tags_url":"https://api.github.com/repos/cebarks/black_thursday/tags","blobs_url":"https://api.github.com/repos/cebarks/black_thursday/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cebarks/black_thursday/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cebarks/black_thursday/git/refs{/sha}","trees_url":"https://api.github.com/repos/cebarks/black_thursday/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cebarks/black_thursday/statuses/{sha}","languages_url":"https://api.github.com/repos/cebarks/black_thursday/languages","stargazers_url":"https://api.github.com/repos/cebarks/black_thursday/stargazers","contributors_url":"https://api.github.com/repos/cebarks/black_thursday/contributors","subscribers_url":"https://api.github.com/repos/cebarks/black_thursday/subscribers","subscription_url":"https://api.github.com/repos/cebarks/black_thursday/subscription","commits_url":"https://api.github.com/repos/cebarks/black_thursday/commits{/sha}","git_commits_url":"https://api.github.com/repos/cebarks/black_thursday/git/commits{/sha}","comments_url":"https://api.github.com/repos/cebarks/black_thursday/comments{/number}","issue_comment_url":"https://api.github.com/repos/cebarks/black_thursday/issues/comments{/number}","contents_url":"https://api.github.com/repos/cebarks/black_thursday/contents/{+path}","compare_url":"https://api.github.com/repos/cebarks/black_thursday/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cebarks/black_thursday/merges","archive_url":"https://api.github.com/repos/cebarks/black_thursday/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cebarks/black_thursday/downloads","issues_url":"https://api.github.com/repos/cebarks/black_thursday/issues{/number}","pulls_url":"https://api.github.com/repos/cebarks/black_thursday/pulls{/number}","milestones_url":"https://api.github.com/repos/cebarks/black_thursday/milestones{/number}","notifications_url":"https://api.github.com/repos/cebarks/black_thursday/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cebarks/black_thursday/labels{/name}","releases_url":"https://api.github.com/repos/cebarks/black_thursday/releases{/id}","deployments_url":"https://api.github.com/repos/cebarks/black_thursday/deployments","created_at":"2018-10-22T17:24:54Z","updated_at":"2018-10-29T20:42:31Z","pushed_at":"2018-10-29T20:42:29Z","git_url":"git://github.com/cebarks/black_thursday.git","ssh_url":"git@github.com:cebarks/black_thursday.git","clone_url":"https://github.com/cebarks/black_thursday.git","svn_url":"https://github.com/cebarks/black_thursday","homepage":null,"size":1897,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cebarks/black_thursday/pulls/48"},"html":{"href":"https://github.com/cebarks/black_thursday/pull/48"},"issue":{"href":"https://api.github.com/repos/cebarks/black_thursday/issues/48"},"comments":{"href":"https://api.github.com/repos/cebarks/black_thursday/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/cebarks/black_thursday/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/cebarks/black_thursday/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cebarks/black_thursday/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/cebarks/black_thursday/statuses/b7b1e03e42a9d3e6bf37127010a3414b9455d32f"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"houndci-bot"}}