{"action":"created","comment":{"url":"https://api.github.com/repos/zdcthomas/black_thursday/pulls/comments/180240558","pull_request_review_id":110628490,"id":180240558,"diff_hunk":"@@ -0,0 +1,126 @@\n+# frozen_string_literal: true\n+\n+require './test/test_helper'\n+require './lib/merchant'\n+SimpleCov.start\n+require './lib/merchant_repository'\n+class MerchantRepositoryTest < Minitest::Test\n+\n+  def setup\n+    @turing = Merchant.new(id: 1, name: 'Turing School')\n+    @candisart = Merchant.new(id: 2, name: 'Candisart')\n+    @miniaturebikez = Merchant.new(id: 3, name: 'MiniatureBikez')\n+    @bowlsbychris = Merchant.new(id: 4, name: 'bowlsbychris')\n+    @urcase17 = Merchant.new(id: 5, name: 'urcase17')\n+    @merchants_obj = [@turing,\n+                     @candisart,\n+                     @miniaturebikez,\n+                     @bowlsbychris,\n+                     @urcase17]\n+\n+    @merchants = [['id:1', 'name:Turing School'],\n+                  ['id:2', 'name:Candisart'],\n+                  ['id:3', 'name:MiniatureBikez'],\n+                  ['id:4', 'name:bowlsbychris'],\n+                  ['id:5', 'name:urcase17']]\n+  end\n+\n+  def test_it_exists\n+    mr = MerchantRepository.new(@merchants)\n+    assert_instance_of MerchantRepository, mr\n+  end\n+\n+  def test_it_returns_all_merchants\n+    mr = MerchantRepository.new(@merchants)\n+    assert_instance_of Array, mr.all\n+    mr.all.all? do |merchant|\n+      assert_instance_of Merchant, merchant\n+    end\n+\n+    expected_names = @merchants_obj.map(&:name)\n+    actual_names = mr.all.map(&:name)\n+    # these enums are neccesary because merchant repo creates new merchants objects from \n+    # passed in values. Therefore object ids cannot be checked, only values\n+    assert_equal expected_names, actual_names\n+","path":"test/merchant_repository_test.rb","position":45,"original_position":45,"commit_id":"3daadfbf8f921f333521ee9f28eeb03d81916e12","original_commit_id":"3daadfbf8f921f333521ee9f28eeb03d81916e12","user":{"login":"houndci-bot","id":6697940,"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/EmptyLinesAroundMethodBody: Extra empty line detected at method body end.","created_at":"2018-04-09T21:44:44Z","updated_at":"2018-04-09T21:44:45Z","html_url":"https://github.com/zdcthomas/black_thursday/pull/1#discussion_r180240558","pull_request_url":"https://api.github.com/repos/zdcthomas/black_thursday/pulls/1","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/zdcthomas/black_thursday/pulls/comments/180240558"},"html":{"href":"https://github.com/zdcthomas/black_thursday/pull/1#discussion_r180240558"},"pull_request":{"href":"https://api.github.com/repos/zdcthomas/black_thursday/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/zdcthomas/black_thursday/pulls/1","id":180436022,"html_url":"https://github.com/zdcthomas/black_thursday/pull/1","diff_url":"https://github.com/zdcthomas/black_thursday/pull/1.diff","patch_url":"https://github.com/zdcthomas/black_thursday/pull/1.patch","issue_url":"https://api.github.com/repos/zdcthomas/black_thursday/issues/1","number":1,"state":"open","locked":false,"title":"Merchantrepository","user":{"login":"zdcthomas","id":36716240,"avatar_url":"https://avatars1.githubusercontent.com/u/36716240?v=4","gravatar_id":"","url":"https://api.github.com/users/zdcthomas","html_url":"https://github.com/zdcthomas","followers_url":"https://api.github.com/users/zdcthomas/followers","following_url":"https://api.github.com/users/zdcthomas/following{/other_user}","gists_url":"https://api.github.com/users/zdcthomas/gists{/gist_id}","starred_url":"https://api.github.com/users/zdcthomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zdcthomas/subscriptions","organizations_url":"https://api.github.com/users/zdcthomas/orgs","repos_url":"https://api.github.com/users/zdcthomas/repos","events_url":"https://api.github.com/users/zdcthomas/events{/privacy}","received_events_url":"https://api.github.com/users/zdcthomas/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-09T21:44:33Z","updated_at":"2018-04-09T21:44:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"50be414261f23b60dc1f9b7fe43e7dc3d72fe385","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/zdcthomas/black_thursday/pulls/1/commits","review_comments_url":"https://api.github.com/repos/zdcthomas/black_thursday/pulls/1/comments","review_comment_url":"https://api.github.com/repos/zdcthomas/black_thursday/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zdcthomas/black_thursday/issues/1/comments","statuses_url":"https://api.github.com/repos/zdcthomas/black_thursday/statuses/3daadfbf8f921f333521ee9f28eeb03d81916e12","head":{"label":"zdcthomas:merchantrepository","ref":"merchantrepository","sha":"3daadfbf8f921f333521ee9f28eeb03d81916e12","user":{"login":"zdcthomas","id":36716240,"avatar_url":"https://avatars1.githubusercontent.com/u/36716240?v=4","gravatar_id":"","url":"https://api.github.com/users/zdcthomas","html_url":"https://github.com/zdcthomas","followers_url":"https://api.github.com/users/zdcthomas/followers","following_url":"https://api.github.com/users/zdcthomas/following{/other_user}","gists_url":"https://api.github.com/users/zdcthomas/gists{/gist_id}","starred_url":"https://api.github.com/users/zdcthomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zdcthomas/subscriptions","organizations_url":"https://api.github.com/users/zdcthomas/orgs","repos_url":"https://api.github.com/users/zdcthomas/repos","events_url":"https://api.github.com/users/zdcthomas/events{/privacy}","received_events_url":"https://api.github.com/users/zdcthomas/received_events","type":"User","site_admin":false},"repo":{"id":128444822,"name":"black_thursday","full_name":"zdcthomas/black_thursday","owner":{"login":"zdcthomas","id":36716240,"avatar_url":"https://avatars1.githubusercontent.com/u/36716240?v=4","gravatar_id":"","url":"https://api.github.com/users/zdcthomas","html_url":"https://github.com/zdcthomas","followers_url":"https://api.github.com/users/zdcthomas/followers","following_url":"https://api.github.com/users/zdcthomas/following{/other_user}","gists_url":"https://api.github.com/users/zdcthomas/gists{/gist_id}","starred_url":"https://api.github.com/users/zdcthomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zdcthomas/subscriptions","organizations_url":"https://api.github.com/users/zdcthomas/orgs","repos_url":"https://api.github.com/users/zdcthomas/repos","events_url":"https://api.github.com/users/zdcthomas/events{/privacy}","received_events_url":"https://api.github.com/users/zdcthomas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zdcthomas/black_thursday","description":null,"fork":true,"url":"https://api.github.com/repos/zdcthomas/black_thursday","forks_url":"https://api.github.com/repos/zdcthomas/black_thursday/forks","keys_url":"https://api.github.com/repos/zdcthomas/black_thursday/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zdcthomas/black_thursday/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zdcthomas/black_thursday/teams","hooks_url":"https://api.github.com/repos/zdcthomas/black_thursday/hooks","issue_events_url":"https://api.github.com/repos/zdcthomas/black_thursday/issues/events{/number}","events_url":"https://api.github.com/repos/zdcthomas/black_thursday/events","assignees_url":"https://api.github.com/repos/zdcthomas/black_thursday/assignees{/user}","branches_url":"https://api.github.com/repos/zdcthomas/black_thursday/branches{/branch}","tags_url":"https://api.github.com/repos/zdcthomas/black_thursday/tags","blobs_url":"https://api.github.com/repos/zdcthomas/black_thursday/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zdcthomas/black_thursday/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zdcthomas/black_thursday/git/refs{/sha}","trees_url":"https://api.github.com/repos/zdcthomas/black_thursday/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zdcthomas/black_thursday/statuses/{sha}","languages_url":"https://api.github.com/repos/zdcthomas/black_thursday/languages","stargazers_url":"https://api.github.com/repos/zdcthomas/black_thursday/stargazers","contributors_url":"https://api.github.com/repos/zdcthomas/black_thursday/contributors","subscribers_url":"https://api.github.com/repos/zdcthomas/black_thursday/subscribers","subscription_url":"https://api.github.com/repos/zdcthomas/black_thursday/subscription","commits_url":"https://api.github.com/repos/zdcthomas/black_thursday/commits{/sha}","git_commits_url":"https://api.github.com/repos/zdcthomas/black_thursday/git/commits{/sha}","comments_url":"https://api.github.com/repos/zdcthomas/black_thursday/comments{/number}","issue_comment_url":"https://api.github.com/repos/zdcthomas/black_thursday/issues/comments{/number}","contents_url":"https://api.github.com/repos/zdcthomas/black_thursday/contents/{+path}","compare_url":"https://api.github.com/repos/zdcthomas/black_thursday/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zdcthomas/black_thursday/merges","archive_url":"https://api.github.com/repos/zdcthomas/black_thursday/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zdcthomas/black_thursday/downloads","issues_url":"https://api.github.com/repos/zdcthomas/black_thursday/issues{/number}","pulls_url":"https://api.github.com/repos/zdcthomas/black_thursday/pulls{/number}","milestones_url":"https://api.github.com/repos/zdcthomas/black_thursday/milestones{/number}","notifications_url":"https://api.github.com/repos/zdcthomas/black_thursday/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zdcthomas/black_thursday/labels{/name}","releases_url":"https://api.github.com/repos/zdcthomas/black_thursday/releases{/id}","deployments_url":"https://api.github.com/repos/zdcthomas/black_thursday/deployments","created_at":"2018-04-06T18:54:51Z","updated_at":"2018-04-06T18:54:53Z","pushed_at":"2018-04-09T21:44:34Z","git_url":"git://github.com/zdcthomas/black_thursday.git","ssh_url":"git@github.com:zdcthomas/black_thursday.git","clone_url":"https://github.com/zdcthomas/black_thursday.git","svn_url":"https://github.com/zdcthomas/black_thursday","homepage":null,"size":1683,"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":"zdcthomas:iteration0","ref":"iteration0","sha":"34c7504e476207bd118fd5b3fe475d87cd9400cc","user":{"login":"zdcthomas","id":36716240,"avatar_url":"https://avatars1.githubusercontent.com/u/36716240?v=4","gravatar_id":"","url":"https://api.github.com/users/zdcthomas","html_url":"https://github.com/zdcthomas","followers_url":"https://api.github.com/users/zdcthomas/followers","following_url":"https://api.github.com/users/zdcthomas/following{/other_user}","gists_url":"https://api.github.com/users/zdcthomas/gists{/gist_id}","starred_url":"https://api.github.com/users/zdcthomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zdcthomas/subscriptions","organizations_url":"https://api.github.com/users/zdcthomas/orgs","repos_url":"https://api.github.com/users/zdcthomas/repos","events_url":"https://api.github.com/users/zdcthomas/events{/privacy}","received_events_url":"https://api.github.com/users/zdcthomas/received_events","type":"User","site_admin":false},"repo":{"id":128444822,"name":"black_thursday","full_name":"zdcthomas/black_thursday","owner":{"login":"zdcthomas","id":36716240,"avatar_url":"https://avatars1.githubusercontent.com/u/36716240?v=4","gravatar_id":"","url":"https://api.github.com/users/zdcthomas","html_url":"https://github.com/zdcthomas","followers_url":"https://api.github.com/users/zdcthomas/followers","following_url":"https://api.github.com/users/zdcthomas/following{/other_user}","gists_url":"https://api.github.com/users/zdcthomas/gists{/gist_id}","starred_url":"https://api.github.com/users/zdcthomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zdcthomas/subscriptions","organizations_url":"https://api.github.com/users/zdcthomas/orgs","repos_url":"https://api.github.com/users/zdcthomas/repos","events_url":"https://api.github.com/users/zdcthomas/events{/privacy}","received_events_url":"https://api.github.com/users/zdcthomas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zdcthomas/black_thursday","description":null,"fork":true,"url":"https://api.github.com/repos/zdcthomas/black_thursday","forks_url":"https://api.github.com/repos/zdcthomas/black_thursday/forks","keys_url":"https://api.github.com/repos/zdcthomas/black_thursday/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zdcthomas/black_thursday/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zdcthomas/black_thursday/teams","hooks_url":"https://api.github.com/repos/zdcthomas/black_thursday/hooks","issue_events_url":"https://api.github.com/repos/zdcthomas/black_thursday/issues/events{/number}","events_url":"https://api.github.com/repos/zdcthomas/black_thursday/events","assignees_url":"https://api.github.com/repos/zdcthomas/black_thursday/assignees{/user}","branches_url":"https://api.github.com/repos/zdcthomas/black_thursday/branches{/branch}","tags_url":"https://api.github.com/repos/zdcthomas/black_thursday/tags","blobs_url":"https://api.github.com/repos/zdcthomas/black_thursday/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zdcthomas/black_thursday/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zdcthomas/black_thursday/git/refs{/sha}","trees_url":"https://api.github.com/repos/zdcthomas/black_thursday/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zdcthomas/black_thursday/statuses/{sha}","languages_url":"https://api.github.com/repos/zdcthomas/black_thursday/languages","stargazers_url":"https://api.github.com/repos/zdcthomas/black_thursday/stargazers","contributors_url":"https://api.github.com/repos/zdcthomas/black_thursday/contributors","subscribers_url":"https://api.github.com/repos/zdcthomas/black_thursday/subscribers","subscription_url":"https://api.github.com/repos/zdcthomas/black_thursday/subscription","commits_url":"https://api.github.com/repos/zdcthomas/black_thursday/commits{/sha}","git_commits_url":"https://api.github.com/repos/zdcthomas/black_thursday/git/commits{/sha}","comments_url":"https://api.github.com/repos/zdcthomas/black_thursday/comments{/number}","issue_comment_url":"https://api.github.com/repos/zdcthomas/black_thursday/issues/comments{/number}","contents_url":"https://api.github.com/repos/zdcthomas/black_thursday/contents/{+path}","compare_url":"https://api.github.com/repos/zdcthomas/black_thursday/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zdcthomas/black_thursday/merges","archive_url":"https://api.github.com/repos/zdcthomas/black_thursday/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zdcthomas/black_thursday/downloads","issues_url":"https://api.github.com/repos/zdcthomas/black_thursday/issues{/number}","pulls_url":"https://api.github.com/repos/zdcthomas/black_thursday/pulls{/number}","milestones_url":"https://api.github.com/repos/zdcthomas/black_thursday/milestones{/number}","notifications_url":"https://api.github.com/repos/zdcthomas/black_thursday/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zdcthomas/black_thursday/labels{/name}","releases_url":"https://api.github.com/repos/zdcthomas/black_thursday/releases{/id}","deployments_url":"https://api.github.com/repos/zdcthomas/black_thursday/deployments","created_at":"2018-04-06T18:54:51Z","updated_at":"2018-04-06T18:54:53Z","pushed_at":"2018-04-09T21:44:34Z","git_url":"git://github.com/zdcthomas/black_thursday.git","ssh_url":"git@github.com:zdcthomas/black_thursday.git","clone_url":"https://github.com/zdcthomas/black_thursday.git","svn_url":"https://github.com/zdcthomas/black_thursday","homepage":null,"size":1683,"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/zdcthomas/black_thursday/pulls/1"},"html":{"href":"https://github.com/zdcthomas/black_thursday/pull/1"},"issue":{"href":"https://api.github.com/repos/zdcthomas/black_thursday/issues/1"},"comments":{"href":"https://api.github.com/repos/zdcthomas/black_thursday/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/zdcthomas/black_thursday/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/zdcthomas/black_thursday/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zdcthomas/black_thursday/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/zdcthomas/black_thursday/statuses/3daadfbf8f921f333521ee9f28eeb03d81916e12"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}