{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/inject-challenge/pulls/comments/24752239","id":24752239,"diff_hunk":"@@ -0,0 +1,66 @@\n+\n+require './lib/inject'\n+\n+describe Array do\n+  \n+  context 'with a block' do\n+\n+    it 'returns the sum of some numbers starting with the first number in the array' do\n+\n+      expect(test.inject {|sum, n| sum + n } ).to eq(10) \n+      expect(test.new_inject {|sum, n| sum + n } ).to eq(10) \n+","path":"spec/inject_spec.rb","position":12,"original_position":12,"commit_id":"9688924fe0ca28d4831efdd73709858aa9b21be1","original_commit_id":"9688924fe0ca28d4831efdd73709858aa9b21be1","user":{"login":"spike01","id":7307631,"avatar_url":"https://avatars.githubusercontent.com/u/7307631?v=3","gravatar_id":"","url":"https://api.github.com/users/spike01","html_url":"https://github.com/spike01","followers_url":"https://api.github.com/users/spike01/followers","following_url":"https://api.github.com/users/spike01/following{/other_user}","gists_url":"https://api.github.com/users/spike01/gists{/gist_id}","starred_url":"https://api.github.com/users/spike01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spike01/subscriptions","organizations_url":"https://api.github.com/users/spike01/orgs","repos_url":"https://api.github.com/users/spike01/repos","events_url":"https://api.github.com/users/spike01/events{/privacy}","received_events_url":"https://api.github.com/users/spike01/received_events","type":"User","site_admin":false},"body":"Try to avoid having multiple expectations in a test - the result of the first inject can be saved to a variable which you can check against in the expectation on line 11","created_at":"2015-02-16T14:08:17Z","updated_at":"2015-02-16T14:08:17Z","html_url":"https://github.com/makersacademy/inject-challenge/pull/2#discussion_r24752239","pull_request_url":"https://api.github.com/repos/makersacademy/inject-challenge/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/inject-challenge/pulls/comments/24752239"},"html":{"href":"https://github.com/makersacademy/inject-challenge/pull/2#discussion_r24752239"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/inject-challenge/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/inject-challenge/pulls/2","id":29277326,"html_url":"https://github.com/makersacademy/inject-challenge/pull/2","diff_url":"https://github.com/makersacademy/inject-challenge/pull/2.diff","patch_url":"https://github.com/makersacademy/inject-challenge/pull/2.patch","issue_url":"https://api.github.com/repos/makersacademy/inject-challenge/issues/2","number":2,"state":"open","locked":false,"title":"inject-challenge","user":{"login":"braunsnow","id":10322095,"avatar_url":"https://avatars.githubusercontent.com/u/10322095?v=3","gravatar_id":"","url":"https://api.github.com/users/braunsnow","html_url":"https://github.com/braunsnow","followers_url":"https://api.github.com/users/braunsnow/followers","following_url":"https://api.github.com/users/braunsnow/following{/other_user}","gists_url":"https://api.github.com/users/braunsnow/gists{/gist_id}","starred_url":"https://api.github.com/users/braunsnow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/braunsnow/subscriptions","organizations_url":"https://api.github.com/users/braunsnow/orgs","repos_url":"https://api.github.com/users/braunsnow/repos","events_url":"https://api.github.com/users/braunsnow/events{/privacy}","received_events_url":"https://api.github.com/users/braunsnow/received_events","type":"User","site_admin":false},"body":"originally created an inject function that could handle both symbols and blocks, but refactored it down to only handling blocks.","created_at":"2015-02-13T16:22:49Z","updated_at":"2015-02-16T14:08:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"81346ac917575d24e10bda9602b621bd719c508a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/inject-challenge/pulls/2/commits","review_comments_url":"https://api.github.com/repos/makersacademy/inject-challenge/pulls/2/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/2/comments","statuses_url":"https://api.github.com/repos/makersacademy/inject-challenge/statuses/9688924fe0ca28d4831efdd73709858aa9b21be1","head":{"label":"braunsnow:master","ref":"master","sha":"9688924fe0ca28d4831efdd73709858aa9b21be1","user":{"login":"braunsnow","id":10322095,"avatar_url":"https://avatars.githubusercontent.com/u/10322095?v=3","gravatar_id":"","url":"https://api.github.com/users/braunsnow","html_url":"https://github.com/braunsnow","followers_url":"https://api.github.com/users/braunsnow/followers","following_url":"https://api.github.com/users/braunsnow/following{/other_user}","gists_url":"https://api.github.com/users/braunsnow/gists{/gist_id}","starred_url":"https://api.github.com/users/braunsnow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/braunsnow/subscriptions","organizations_url":"https://api.github.com/users/braunsnow/orgs","repos_url":"https://api.github.com/users/braunsnow/repos","events_url":"https://api.github.com/users/braunsnow/events{/privacy}","received_events_url":"https://api.github.com/users/braunsnow/received_events","type":"User","site_admin":false},"repo":{"id":30752320,"name":"inject-challenge","full_name":"braunsnow/inject-challenge","owner":{"login":"braunsnow","id":10322095,"avatar_url":"https://avatars.githubusercontent.com/u/10322095?v=3","gravatar_id":"","url":"https://api.github.com/users/braunsnow","html_url":"https://github.com/braunsnow","followers_url":"https://api.github.com/users/braunsnow/followers","following_url":"https://api.github.com/users/braunsnow/following{/other_user}","gists_url":"https://api.github.com/users/braunsnow/gists{/gist_id}","starred_url":"https://api.github.com/users/braunsnow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/braunsnow/subscriptions","organizations_url":"https://api.github.com/users/braunsnow/orgs","repos_url":"https://api.github.com/users/braunsnow/repos","events_url":"https://api.github.com/users/braunsnow/events{/privacy}","received_events_url":"https://api.github.com/users/braunsnow/received_events","type":"User","site_admin":false},"private":true,"html_url":"https://github.com/braunsnow/inject-challenge","description":"Rewrite the Ruby Inject Method","fork":false,"url":"https://api.github.com/repos/braunsnow/inject-challenge","forks_url":"https://api.github.com/repos/braunsnow/inject-challenge/forks","keys_url":"https://api.github.com/repos/braunsnow/inject-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/braunsnow/inject-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/braunsnow/inject-challenge/teams","hooks_url":"https://api.github.com/repos/braunsnow/inject-challenge/hooks","issue_events_url":"https://api.github.com/repos/braunsnow/inject-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/braunsnow/inject-challenge/events","assignees_url":"https://api.github.com/repos/braunsnow/inject-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/braunsnow/inject-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/braunsnow/inject-challenge/tags","blobs_url":"https://api.github.com/repos/braunsnow/inject-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/braunsnow/inject-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/braunsnow/inject-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/braunsnow/inject-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/braunsnow/inject-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/braunsnow/inject-challenge/languages","stargazers_url":"https://api.github.com/repos/braunsnow/inject-challenge/stargazers","contributors_url":"https://api.github.com/repos/braunsnow/inject-challenge/contributors","subscribers_url":"https://api.github.com/repos/braunsnow/inject-challenge/subscribers","subscription_url":"https://api.github.com/repos/braunsnow/inject-challenge/subscription","commits_url":"https://api.github.com/repos/braunsnow/inject-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/braunsnow/inject-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/braunsnow/inject-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/braunsnow/inject-challenge/issues/comments/{number}","contents_url":"https://api.github.com/repos/braunsnow/inject-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/braunsnow/inject-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/braunsnow/inject-challenge/merges","archive_url":"https://api.github.com/repos/braunsnow/inject-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/braunsnow/inject-challenge/downloads","issues_url":"https://api.github.com/repos/braunsnow/inject-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/braunsnow/inject-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/braunsnow/inject-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/braunsnow/inject-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/braunsnow/inject-challenge/labels{/name}","releases_url":"https://api.github.com/repos/braunsnow/inject-challenge/releases{/id}","created_at":"2015-02-13T10:47:41Z","updated_at":"2015-02-16T11:40:34Z","pushed_at":"2015-02-13T16:20:41Z","git_url":"git://github.com/braunsnow/inject-challenge.git","ssh_url":"git@github.com:braunsnow/inject-challenge.git","clone_url":"https://github.com/braunsnow/inject-challenge.git","svn_url":"https://github.com/braunsnow/inject-challenge","homepage":null,"size":96,"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":"01b32a74a357eb110d977f11780005fa17d5bbb7","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-02-16T11:45:19Z","pushed_at":"2015-02-13T09:59:52Z","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":136,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":20,"forks":1,"open_issues":20,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/inject-challenge/pulls/2"},"html":{"href":"https://github.com/makersacademy/inject-challenge/pull/2"},"issue":{"href":"https://api.github.com/repos/makersacademy/inject-challenge/issues/2"},"comments":{"href":"https://api.github.com/repos/makersacademy/inject-challenge/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/inject-challenge/pulls/2/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/2/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/inject-challenge/statuses/9688924fe0ca28d4831efdd73709858aa9b21be1"}}}}