{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/inject-challenge/pulls/comments/27416452","id":27416452,"diff_hunk":"@@ -0,0 +1,35 @@\n+require 'array'\n+\n+describe Array do\n+  it 'can add with not block and starting arguments' do\n+    expect([1, 2, 3].my_inject do |result, product|\n+      result + product\n+    end).to eq 6\n+  end\n+\n+  it 'can times with not block and starting arguments' do\n+    expect([1, 2, 3].my_inject do |result, product|\n+      result * product\n+    end).to eq 6\n+  end\n+\n+  it 'can add with starting argument' do\n+    expect([1, 2, 3].my_inject(10) do |result, product|\n+      result + product\n+    end).to eq 16\n+  end\n+\n+  it 'can times with starting argument' do\n+    expect([1, 2, 3].my_inject(10) do |result, product|\n+      result * product\n+    end).to eq 60\n+  end\n+\n+  it 'can add with a symbol' do\n+    expect([1, 2, 3].my_inject(:+)).to eq 6\n+  end\n+\n+  it 'can times with a starting argument and a symbol' do\n+    expect([1, 2, 3].my_inject(10, :*)).to eq 60\n+  end","path":"spec/array_spec.rb","position":34,"original_position":34,"commit_id":"636f8aa257c672a35bddcf142bcafb02bbc1e354","original_commit_id":"636f8aa257c672a35bddcf142bcafb02bbc1e354","user":{"login":"sjmog","id":1960230,"avatar_url":"https://avatars.githubusercontent.com/u/1960230?v=3","gravatar_id":"","url":"https://api.github.com/users/sjmog","html_url":"https://github.com/sjmog","followers_url":"https://api.github.com/users/sjmog/followers","following_url":"https://api.github.com/users/sjmog/following{/other_user}","gists_url":"https://api.github.com/users/sjmog/gists{/gist_id}","starred_url":"https://api.github.com/users/sjmog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sjmog/subscriptions","organizations_url":"https://api.github.com/users/sjmog/orgs","repos_url":"https://api.github.com/users/sjmog/repos","events_url":"https://api.github.com/users/sjmog/events{/privacy}","received_events_url":"https://api.github.com/users/sjmog/received_events","type":"User","site_admin":false},"body":"A great selection of tests :+1:","created_at":"2015-03-30T18:12:39Z","updated_at":"2015-03-30T18:12:39Z","html_url":"https://github.com/makersacademy/inject-challenge/pull/39#discussion_r27416452","pull_request_url":"https://api.github.com/repos/makersacademy/inject-challenge/pulls/39","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/inject-challenge/pulls/comments/27416452"},"html":{"href":"https://github.com/makersacademy/inject-challenge/pull/39#discussion_r27416452"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/inject-challenge/pulls/39"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/inject-challenge/pulls/39","id":32182123,"html_url":"https://github.com/makersacademy/inject-challenge/pull/39","diff_url":"https://github.com/makersacademy/inject-challenge/pull/39.diff","patch_url":"https://github.com/makersacademy/inject-challenge/pull/39.patch","issue_url":"https://api.github.com/repos/makersacademy/inject-challenge/issues/39","number":39,"state":"open","locked":false,"title":"Final work but still problems with sum","user":{"login":"Icicleta","id":1167214,"avatar_url":"https://avatars.githubusercontent.com/u/1167214?v=3","gravatar_id":"","url":"https://api.github.com/users/Icicleta","html_url":"https://github.com/Icicleta","followers_url":"https://api.github.com/users/Icicleta/followers","following_url":"https://api.github.com/users/Icicleta/following{/other_user}","gists_url":"https://api.github.com/users/Icicleta/gists{/gist_id}","starred_url":"https://api.github.com/users/Icicleta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Icicleta/subscriptions","organizations_url":"https://api.github.com/users/Icicleta/orgs","repos_url":"https://api.github.com/users/Icicleta/repos","events_url":"https://api.github.com/users/Icicleta/events{/privacy}","received_events_url":"https://api.github.com/users/Icicleta/received_events","type":"User","site_admin":false},"body":"I know why I get 7 instead of 6, but I don't know how to fix it without making multiply become 0.\r\nSo basically,\r\n   if my starting point is 0, sum is 6, what is ok but multiply is 0\r\n   if my starting point is 1, sum is 7, and multiply become right with 6\r\n\r\nRob suggested that is not starting given method should get the first element of array, and that is what I did, result = self[0], but that is what makes my sum 7.\r\n\r\nI give up and move on to take away problem. ","created_at":"2015-03-29T14:11:02Z","updated_at":"2015-03-30T18:12:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1b5cb3234ee870b5e6dc9ffeb4b7e0934aa6c12b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/inject-challenge/pulls/39/commits","review_comments_url":"https://api.github.com/repos/makersacademy/inject-challenge/pulls/39/comments","review_comment_url":"https://api.github.com/repos/makersacademy/inject-challenge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/makersacademy/inject-challenge/issues/39/comments","statuses_url":"https://api.github.com/repos/makersacademy/inject-challenge/statuses/636f8aa257c672a35bddcf142bcafb02bbc1e354","head":{"label":"Icicleta:master","ref":"master","sha":"636f8aa257c672a35bddcf142bcafb02bbc1e354","user":{"login":"Icicleta","id":1167214,"avatar_url":"https://avatars.githubusercontent.com/u/1167214?v=3","gravatar_id":"","url":"https://api.github.com/users/Icicleta","html_url":"https://github.com/Icicleta","followers_url":"https://api.github.com/users/Icicleta/followers","following_url":"https://api.github.com/users/Icicleta/following{/other_user}","gists_url":"https://api.github.com/users/Icicleta/gists{/gist_id}","starred_url":"https://api.github.com/users/Icicleta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Icicleta/subscriptions","organizations_url":"https://api.github.com/users/Icicleta/orgs","repos_url":"https://api.github.com/users/Icicleta/repos","events_url":"https://api.github.com/users/Icicleta/events{/privacy}","received_events_url":"https://api.github.com/users/Icicleta/received_events","type":"User","site_admin":false},"repo":{"id":32988389,"name":"inject-challenge","full_name":"Icicleta/inject-challenge","owner":{"login":"Icicleta","id":1167214,"avatar_url":"https://avatars.githubusercontent.com/u/1167214?v=3","gravatar_id":"","url":"https://api.github.com/users/Icicleta","html_url":"https://github.com/Icicleta","followers_url":"https://api.github.com/users/Icicleta/followers","following_url":"https://api.github.com/users/Icicleta/following{/other_user}","gists_url":"https://api.github.com/users/Icicleta/gists{/gist_id}","starred_url":"https://api.github.com/users/Icicleta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Icicleta/subscriptions","organizations_url":"https://api.github.com/users/Icicleta/orgs","repos_url":"https://api.github.com/users/Icicleta/repos","events_url":"https://api.github.com/users/Icicleta/events{/privacy}","received_events_url":"https://api.github.com/users/Icicleta/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Icicleta/inject-challenge","description":"Rewrite the Ruby Inject Method","fork":true,"url":"https://api.github.com/repos/Icicleta/inject-challenge","forks_url":"https://api.github.com/repos/Icicleta/inject-challenge/forks","keys_url":"https://api.github.com/repos/Icicleta/inject-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Icicleta/inject-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Icicleta/inject-challenge/teams","hooks_url":"https://api.github.com/repos/Icicleta/inject-challenge/hooks","issue_events_url":"https://api.github.com/repos/Icicleta/inject-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/Icicleta/inject-challenge/events","assignees_url":"https://api.github.com/repos/Icicleta/inject-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/Icicleta/inject-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/Icicleta/inject-challenge/tags","blobs_url":"https://api.github.com/repos/Icicleta/inject-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Icicleta/inject-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Icicleta/inject-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/Icicleta/inject-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Icicleta/inject-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/Icicleta/inject-challenge/languages","stargazers_url":"https://api.github.com/repos/Icicleta/inject-challenge/stargazers","contributors_url":"https://api.github.com/repos/Icicleta/inject-challenge/contributors","subscribers_url":"https://api.github.com/repos/Icicleta/inject-challenge/subscribers","subscription_url":"https://api.github.com/repos/Icicleta/inject-challenge/subscription","commits_url":"https://api.github.com/repos/Icicleta/inject-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/Icicleta/inject-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/Icicleta/inject-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/Icicleta/inject-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/Icicleta/inject-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/Icicleta/inject-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Icicleta/inject-challenge/merges","archive_url":"https://api.github.com/repos/Icicleta/inject-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Icicleta/inject-challenge/downloads","issues_url":"https://api.github.com/repos/Icicleta/inject-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/Icicleta/inject-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/Icicleta/inject-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/Icicleta/inject-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Icicleta/inject-challenge/labels{/name}","releases_url":"https://api.github.com/repos/Icicleta/inject-challenge/releases{/id}","created_at":"2015-03-27T13:45:20Z","updated_at":"2015-03-29T14:39:35Z","pushed_at":"2015-03-29T14:39:35Z","git_url":"git://github.com/Icicleta/inject-challenge.git","ssh_url":"git@github.com:Icicleta/inject-challenge.git","clone_url":"https://github.com/Icicleta/inject-challenge.git","svn_url":"https://github.com/Icicleta/inject-challenge","homepage":null,"size":91,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"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":"makersacademy:master","ref":"master","sha":"7e8fe291d69c3f4b805114fbafdd09c2647b99dd","user":{"login":"makersacademy","id":3636186,"avatar_url":"https://avatars.githubusercontent.com/u/3636186?v=3","gravatar_id":"","url":"https://api.github.com/users/makersacademy","html_url":"https://github.com/makersacademy","followers_url":"https://api.github.com/users/makersacademy/followers","following_url":"https://api.github.com/users/makersacademy/following{/other_user}","gists_url":"https://api.github.com/users/makersacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/makersacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makersacademy/subscriptions","organizations_url":"https://api.github.com/users/makersacademy/orgs","repos_url":"https://api.github.com/users/makersacademy/repos","events_url":"https://api.github.com/users/makersacademy/events{/privacy}","received_events_url":"https://api.github.com/users/makersacademy/received_events","type":"Organization","site_admin":false},"repo":{"id":27006120,"name":"inject-challenge","full_name":"makersacademy/inject-challenge","owner":{"login":"makersacademy","id":3636186,"avatar_url":"https://avatars.githubusercontent.com/u/3636186?v=3","gravatar_id":"","url":"https://api.github.com/users/makersacademy","html_url":"https://github.com/makersacademy","followers_url":"https://api.github.com/users/makersacademy/followers","following_url":"https://api.github.com/users/makersacademy/following{/other_user}","gists_url":"https://api.github.com/users/makersacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/makersacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makersacademy/subscriptions","organizations_url":"https://api.github.com/users/makersacademy/orgs","repos_url":"https://api.github.com/users/makersacademy/repos","events_url":"https://api.github.com/users/makersacademy/events{/privacy}","received_events_url":"https://api.github.com/users/makersacademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/makersacademy/inject-challenge","description":"Rewrite the Ruby Inject Method","fork":false,"url":"https://api.github.com/repos/makersacademy/inject-challenge","forks_url":"https://api.github.com/repos/makersacademy/inject-challenge/forks","keys_url":"https://api.github.com/repos/makersacademy/inject-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/makersacademy/inject-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/makersacademy/inject-challenge/teams","hooks_url":"https://api.github.com/repos/makersacademy/inject-challenge/hooks","issue_events_url":"https://api.github.com/repos/makersacademy/inject-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/makersacademy/inject-challenge/events","assignees_url":"https://api.github.com/repos/makersacademy/inject-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/makersacademy/inject-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/makersacademy/inject-challenge/tags","blobs_url":"https://api.github.com/repos/makersacademy/inject-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/makersacademy/inject-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/makersacademy/inject-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/makersacademy/inject-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/makersacademy/inject-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/makersacademy/inject-challenge/languages","stargazers_url":"https://api.github.com/repos/makersacademy/inject-challenge/stargazers","contributors_url":"https://api.github.com/repos/makersacademy/inject-challenge/contributors","subscribers_url":"https://api.github.com/repos/makersacademy/inject-challenge/subscribers","subscription_url":"https://api.github.com/repos/makersacademy/inject-challenge/subscription","commits_url":"https://api.github.com/repos/makersacademy/inject-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/makersacademy/inject-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/makersacademy/inject-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/makersacademy/inject-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/makersacademy/inject-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/makersacademy/inject-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/makersacademy/inject-challenge/merges","archive_url":"https://api.github.com/repos/makersacademy/inject-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/makersacademy/inject-challenge/downloads","issues_url":"https://api.github.com/repos/makersacademy/inject-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/makersacademy/inject-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/makersacademy/inject-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/makersacademy/inject-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/makersacademy/inject-challenge/labels{/name}","releases_url":"https://api.github.com/repos/makersacademy/inject-challenge/releases{/id}","created_at":"2014-11-22T17:17:20Z","updated_at":"2015-03-29T15:21:44Z","pushed_at":"2015-03-30T16:01:21Z","git_url":"git://github.com/makersacademy/inject-challenge.git","ssh_url":"git@github.com:makersacademy/inject-challenge.git","clone_url":"https://github.com/makersacademy/inject-challenge.git","svn_url":"https://github.com/makersacademy/inject-challenge","homepage":null,"size":1031,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":34,"mirror_url":null,"open_issues_count":26,"forks":34,"open_issues":26,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/inject-challenge/pulls/39"},"html":{"href":"https://github.com/makersacademy/inject-challenge/pull/39"},"issue":{"href":"https://api.github.com/repos/makersacademy/inject-challenge/issues/39"},"comments":{"href":"https://api.github.com/repos/makersacademy/inject-challenge/issues/39/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/inject-challenge/pulls/39/comments"},"review_comment":{"href":"https://api.github.com/repos/makersacademy/inject-challenge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/makersacademy/inject-challenge/pulls/39/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/inject-challenge/statuses/636f8aa257c672a35bddcf142bcafb02bbc1e354"}}}}