GitHub PullRequestReviewCommentEvent at 2014-05-12 09:19:47
Repository: salesFetch
Actor: Neamar
Payload: {"comment":{"url":"https://api.github.com/repos/Papiel/salesFetch/pulls/comments/12519513","id":12519513,"diff_hunk":"@@ -94,25 +97,42 @@ describe('<Authentication middleware>', function() {\n   it('should creata a new user if not in DB', function(done) {\n \n     async.waterfall([\n-      function checkNoUser(cb) {\n+      function mountAPI(cb) {\n+        APIs.mount('fetchAPI', 'http://api.anyfetch.com', cb);\n+      },\n+      function checkNoUser(_, cb) {\n         User.count({}, function(err, count) {\n           count.should.eql(0);\n           cb(null, null);\n         });\n-      }, function createCompany(_, cb) {\n+      },\n+      function createCompany(_, cb) {","path":"test/middlewares/authorization.js","position":56,"original_position":56,"commit_id":"9d30af09b02c40d7db3e1b91389e86e2ef07c076","original_commit_id":"d9f08bf2f4fab87455e9414777a85bea1c364bbf","user":{"login":"Neamar","id":536844,"avatar_url":"https://avatars.githubusercontent.com/u/536844?","gravatar_id":"1bd44880100d5a4ce780441e4b54ddfe","url":"https://api.github.com/users/Neamar","html_url":"https://github.com/Neamar","followers_url":"https://api.github.com/users/Neamar/followers","following_url":"https://api.github.com/users/Neamar/following{/other_user}","gists_url":"https://api.github.com/users/Neamar/gists{/gist_id}","starred_url":"https://api.github.com/users/Neamar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Neamar/subscriptions","organizations_url":"https://api.github.com/users/Neamar/orgs","repos_url":"https://api.github.com/users/Neamar/repos","events_url":"https://api.github.com/users/Neamar/events{/privacy}","received_events_url":"https://api.github.com/users/Neamar/received_events","type":"User","site_admin":false},"body":"Maybe abstract that in a helper ?","created_at":"2014-05-12T09:19:47Z","updated_at":"2014-05-12T09:19:47Z","html_url":"https://github.com/Papiel/salesFetch/pull/17#discussion_r12519513","pull_request_url":"https://api.github.com/repos/Papiel/salesFetch/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/Papiel/salesFetch/pulls/comments/12519513"},"html":{"href":"https://github.com/Papiel/salesFetch/pull/17#discussion_r12519513"},"pull_request":{"href":"https://api.github.com/repos/Papiel/salesFetch/pulls/17"}}}}