{"action":"created","comment":{"url":"https://api.github.com/repos/brickstar/black_thursday/pulls/comments/180296478","pull_request_review_id":110691980,"id":180296478,"diff_hunk":"@@ -55,19 +57,62 @@ def test_find_all_by_merchant_id\n     assert_instance_of Item, @ir.find_all_by_merchant_id(2)[0]\n   end\n \n-  def test_create_item_attributes\n+  def test_find_highest_id\n+    assert_equal 263396209, @ir.find_highest_id\n+  end\n+\n+  def test_create_new_id\n+    assert_equal 263396210, @ir.create_new_id\n+  end\n \n+  def test_create_item\n+    Timecop.freeze\n+    time = Time.now.to_s\n+    assert_equal 263396210, @ir.create_new_id\n+\n+    @ir.create({\n+                  :name        => 'Pencil',\n+                  :description => 'You can use it to write things',\n+                  :unit_price  => BigDecimal.new(10.99, 4),\n+                  :created_at  => '1995-03-19 10:02:43 UTC',\n+                  :updated_at  => '1995-03-19 10:02:43 UTC',\n+                })\n+\n+    assert_equal 263396210, @ir.items.last.id\n+    assert_equal 'Pencil', @ir.items.last.name\n+    assert_equal 'You can use it to write things', @ir.items.last.description\n+    assert_equal time, @ir.items.last.created_at\n+    Timecop.return\n   end\n \n   def test_update_item\n+    attributes = ({\n+                    :name        => 'Pencil',\n+                    :description => 'You can use it to write things',\n+                    :unit_price  => BigDecimal.new(10.99,4),\n+                    :created_at  => '1995-03-19 10:02:43 UTC',\n+                    :updated_at  => '1995-03-19 10:02:43 UTC',\n+                  })\n+\n+    to_update = @ir.find_by_id(263396209)\n \n+    assert_equal 'Vogue Paris Original Givenchy 2307', to_update.name\n+    assert_equal 29.99, to_update.unit_price\n+\n+    @ir.update(263396209, attributes)\n+\n+    assert_equal 'Pencil', to_update.name\n+    assert_equal 10.99, to_update.unit_price\n   end\n \n   def test_delete_item\n+    found = @ir.find_by_id(1)","path":"test/item_repository_test.rb","position":60,"original_position":60,"commit_id":"e49596575cdadbc49e102c2a13a6e6e395679356","original_commit_id":"e49596575cdadbc49e102c2a13a6e6e395679356","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":"Lint/UselessAssignment: Useless assignment to variable - found.","created_at":"2018-04-10T04:51:28Z","updated_at":"2018-04-10T04:51:29Z","html_url":"https://github.com/brickstar/black_thursday/pull/13#discussion_r180296478","pull_request_url":"https://api.github.com/repos/brickstar/black_thursday/pulls/13","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/brickstar/black_thursday/pulls/comments/180296478"},"html":{"href":"https://github.com/brickstar/black_thursday/pull/13#discussion_r180296478"},"pull_request":{"href":"https://api.github.com/repos/brickstar/black_thursday/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/brickstar/black_thursday/pulls/13","id":180489190,"html_url":"https://github.com/brickstar/black_thursday/pull/13","diff_url":"https://github.com/brickstar/black_thursday/pull/13.diff","patch_url":"https://github.com/brickstar/black_thursday/pull/13.patch","issue_url":"https://api.github.com/repos/brickstar/black_thursday/issues/13","number":13,"state":"open","locked":false,"title":"Item/item repository","user":{"login":"brickstar","id":33355897,"avatar_url":"https://avatars2.githubusercontent.com/u/33355897?v=4","gravatar_id":"","url":"https://api.github.com/users/brickstar","html_url":"https://github.com/brickstar","followers_url":"https://api.github.com/users/brickstar/followers","following_url":"https://api.github.com/users/brickstar/following{/other_user}","gists_url":"https://api.github.com/users/brickstar/gists{/gist_id}","starred_url":"https://api.github.com/users/brickstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brickstar/subscriptions","organizations_url":"https://api.github.com/users/brickstar/orgs","repos_url":"https://api.github.com/users/brickstar/repos","events_url":"https://api.github.com/users/brickstar/events{/privacy}","received_events_url":"https://api.github.com/users/brickstar/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-04-10T04:51:19Z","updated_at":"2018-04-10T04:51:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"206307f8ef355a5744b82a6f93ac36f3ab1cac82","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":893896316,"url":"https://api.github.com/repos/brickstar/black_thursday/labels/in%20progress","name":"in progress","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/brickstar/black_thursday/pulls/13/commits","review_comments_url":"https://api.github.com/repos/brickstar/black_thursday/pulls/13/comments","review_comment_url":"https://api.github.com/repos/brickstar/black_thursday/pulls/comments{/number}","comments_url":"https://api.github.com/repos/brickstar/black_thursday/issues/13/comments","statuses_url":"https://api.github.com/repos/brickstar/black_thursday/statuses/e49596575cdadbc49e102c2a13a6e6e395679356","head":{"label":"brickstar:item/item_repository","ref":"item/item_repository","sha":"e49596575cdadbc49e102c2a13a6e6e395679356","user":{"login":"brickstar","id":33355897,"avatar_url":"https://avatars2.githubusercontent.com/u/33355897?v=4","gravatar_id":"","url":"https://api.github.com/users/brickstar","html_url":"https://github.com/brickstar","followers_url":"https://api.github.com/users/brickstar/followers","following_url":"https://api.github.com/users/brickstar/following{/other_user}","gists_url":"https://api.github.com/users/brickstar/gists{/gist_id}","starred_url":"https://api.github.com/users/brickstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brickstar/subscriptions","organizations_url":"https://api.github.com/users/brickstar/orgs","repos_url":"https://api.github.com/users/brickstar/repos","events_url":"https://api.github.com/users/brickstar/events{/privacy}","received_events_url":"https://api.github.com/users/brickstar/received_events","type":"User","site_admin":false},"repo":{"id":128425541,"name":"black_thursday","full_name":"brickstar/black_thursday","owner":{"login":"brickstar","id":33355897,"avatar_url":"https://avatars2.githubusercontent.com/u/33355897?v=4","gravatar_id":"","url":"https://api.github.com/users/brickstar","html_url":"https://github.com/brickstar","followers_url":"https://api.github.com/users/brickstar/followers","following_url":"https://api.github.com/users/brickstar/following{/other_user}","gists_url":"https://api.github.com/users/brickstar/gists{/gist_id}","starred_url":"https://api.github.com/users/brickstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brickstar/subscriptions","organizations_url":"https://api.github.com/users/brickstar/orgs","repos_url":"https://api.github.com/users/brickstar/repos","events_url":"https://api.github.com/users/brickstar/events{/privacy}","received_events_url":"https://api.github.com/users/brickstar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brickstar/black_thursday","description":null,"fork":true,"url":"https://api.github.com/repos/brickstar/black_thursday","forks_url":"https://api.github.com/repos/brickstar/black_thursday/forks","keys_url":"https://api.github.com/repos/brickstar/black_thursday/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brickstar/black_thursday/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brickstar/black_thursday/teams","hooks_url":"https://api.github.com/repos/brickstar/black_thursday/hooks","issue_events_url":"https://api.github.com/repos/brickstar/black_thursday/issues/events{/number}","events_url":"https://api.github.com/repos/brickstar/black_thursday/events","assignees_url":"https://api.github.com/repos/brickstar/black_thursday/assignees{/user}","branches_url":"https://api.github.com/repos/brickstar/black_thursday/branches{/branch}","tags_url":"https://api.github.com/repos/brickstar/black_thursday/tags","blobs_url":"https://api.github.com/repos/brickstar/black_thursday/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brickstar/black_thursday/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brickstar/black_thursday/git/refs{/sha}","trees_url":"https://api.github.com/repos/brickstar/black_thursday/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brickstar/black_thursday/statuses/{sha}","languages_url":"https://api.github.com/repos/brickstar/black_thursday/languages","stargazers_url":"https://api.github.com/repos/brickstar/black_thursday/stargazers","contributors_url":"https://api.github.com/repos/brickstar/black_thursday/contributors","subscribers_url":"https://api.github.com/repos/brickstar/black_thursday/subscribers","subscription_url":"https://api.github.com/repos/brickstar/black_thursday/subscription","commits_url":"https://api.github.com/repos/brickstar/black_thursday/commits{/sha}","git_commits_url":"https://api.github.com/repos/brickstar/black_thursday/git/commits{/sha}","comments_url":"https://api.github.com/repos/brickstar/black_thursday/comments{/number}","issue_comment_url":"https://api.github.com/repos/brickstar/black_thursday/issues/comments{/number}","contents_url":"https://api.github.com/repos/brickstar/black_thursday/contents/{+path}","compare_url":"https://api.github.com/repos/brickstar/black_thursday/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brickstar/black_thursday/merges","archive_url":"https://api.github.com/repos/brickstar/black_thursday/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brickstar/black_thursday/downloads","issues_url":"https://api.github.com/repos/brickstar/black_thursday/issues{/number}","pulls_url":"https://api.github.com/repos/brickstar/black_thursday/pulls{/number}","milestones_url":"https://api.github.com/repos/brickstar/black_thursday/milestones{/number}","notifications_url":"https://api.github.com/repos/brickstar/black_thursday/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brickstar/black_thursday/labels{/name}","releases_url":"https://api.github.com/repos/brickstar/black_thursday/releases{/id}","deployments_url":"https://api.github.com/repos/brickstar/black_thursday/deployments","created_at":"2018-04-06T17:31:58Z","updated_at":"2018-04-10T02:48:49Z","pushed_at":"2018-04-10T04:51:20Z","git_url":"git://github.com/brickstar/black_thursday.git","ssh_url":"git@github.com:brickstar/black_thursday.git","clone_url":"https://github.com/brickstar/black_thursday.git","svn_url":"https://github.com/brickstar/black_thursday","homepage":null,"size":1835,"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":"brickstar:master","ref":"master","sha":"f573702c487e5c9c0770275fe4c93ff57b8d5b8c","user":{"login":"brickstar","id":33355897,"avatar_url":"https://avatars2.githubusercontent.com/u/33355897?v=4","gravatar_id":"","url":"https://api.github.com/users/brickstar","html_url":"https://github.com/brickstar","followers_url":"https://api.github.com/users/brickstar/followers","following_url":"https://api.github.com/users/brickstar/following{/other_user}","gists_url":"https://api.github.com/users/brickstar/gists{/gist_id}","starred_url":"https://api.github.com/users/brickstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brickstar/subscriptions","organizations_url":"https://api.github.com/users/brickstar/orgs","repos_url":"https://api.github.com/users/brickstar/repos","events_url":"https://api.github.com/users/brickstar/events{/privacy}","received_events_url":"https://api.github.com/users/brickstar/received_events","type":"User","site_admin":false},"repo":{"id":128425541,"name":"black_thursday","full_name":"brickstar/black_thursday","owner":{"login":"brickstar","id":33355897,"avatar_url":"https://avatars2.githubusercontent.com/u/33355897?v=4","gravatar_id":"","url":"https://api.github.com/users/brickstar","html_url":"https://github.com/brickstar","followers_url":"https://api.github.com/users/brickstar/followers","following_url":"https://api.github.com/users/brickstar/following{/other_user}","gists_url":"https://api.github.com/users/brickstar/gists{/gist_id}","starred_url":"https://api.github.com/users/brickstar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brickstar/subscriptions","organizations_url":"https://api.github.com/users/brickstar/orgs","repos_url":"https://api.github.com/users/brickstar/repos","events_url":"https://api.github.com/users/brickstar/events{/privacy}","received_events_url":"https://api.github.com/users/brickstar/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brickstar/black_thursday","description":null,"fork":true,"url":"https://api.github.com/repos/brickstar/black_thursday","forks_url":"https://api.github.com/repos/brickstar/black_thursday/forks","keys_url":"https://api.github.com/repos/brickstar/black_thursday/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brickstar/black_thursday/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brickstar/black_thursday/teams","hooks_url":"https://api.github.com/repos/brickstar/black_thursday/hooks","issue_events_url":"https://api.github.com/repos/brickstar/black_thursday/issues/events{/number}","events_url":"https://api.github.com/repos/brickstar/black_thursday/events","assignees_url":"https://api.github.com/repos/brickstar/black_thursday/assignees{/user}","branches_url":"https://api.github.com/repos/brickstar/black_thursday/branches{/branch}","tags_url":"https://api.github.com/repos/brickstar/black_thursday/tags","blobs_url":"https://api.github.com/repos/brickstar/black_thursday/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brickstar/black_thursday/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brickstar/black_thursday/git/refs{/sha}","trees_url":"https://api.github.com/repos/brickstar/black_thursday/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brickstar/black_thursday/statuses/{sha}","languages_url":"https://api.github.com/repos/brickstar/black_thursday/languages","stargazers_url":"https://api.github.com/repos/brickstar/black_thursday/stargazers","contributors_url":"https://api.github.com/repos/brickstar/black_thursday/contributors","subscribers_url":"https://api.github.com/repos/brickstar/black_thursday/subscribers","subscription_url":"https://api.github.com/repos/brickstar/black_thursday/subscription","commits_url":"https://api.github.com/repos/brickstar/black_thursday/commits{/sha}","git_commits_url":"https://api.github.com/repos/brickstar/black_thursday/git/commits{/sha}","comments_url":"https://api.github.com/repos/brickstar/black_thursday/comments{/number}","issue_comment_url":"https://api.github.com/repos/brickstar/black_thursday/issues/comments{/number}","contents_url":"https://api.github.com/repos/brickstar/black_thursday/contents/{+path}","compare_url":"https://api.github.com/repos/brickstar/black_thursday/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brickstar/black_thursday/merges","archive_url":"https://api.github.com/repos/brickstar/black_thursday/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brickstar/black_thursday/downloads","issues_url":"https://api.github.com/repos/brickstar/black_thursday/issues{/number}","pulls_url":"https://api.github.com/repos/brickstar/black_thursday/pulls{/number}","milestones_url":"https://api.github.com/repos/brickstar/black_thursday/milestones{/number}","notifications_url":"https://api.github.com/repos/brickstar/black_thursday/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brickstar/black_thursday/labels{/name}","releases_url":"https://api.github.com/repos/brickstar/black_thursday/releases{/id}","deployments_url":"https://api.github.com/repos/brickstar/black_thursday/deployments","created_at":"2018-04-06T17:31:58Z","updated_at":"2018-04-10T02:48:49Z","pushed_at":"2018-04-10T04:51:20Z","git_url":"git://github.com/brickstar/black_thursday.git","ssh_url":"git@github.com:brickstar/black_thursday.git","clone_url":"https://github.com/brickstar/black_thursday.git","svn_url":"https://github.com/brickstar/black_thursday","homepage":null,"size":1835,"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/brickstar/black_thursday/pulls/13"},"html":{"href":"https://github.com/brickstar/black_thursday/pull/13"},"issue":{"href":"https://api.github.com/repos/brickstar/black_thursday/issues/13"},"comments":{"href":"https://api.github.com/repos/brickstar/black_thursday/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/brickstar/black_thursday/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/brickstar/black_thursday/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/brickstar/black_thursday/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/brickstar/black_thursday/statuses/e49596575cdadbc49e102c2a13a6e6e395679356"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}