{"action":"closed","number":126,"pull_request":{"url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/pulls/126","id":28925384,"html_url":"https://github.com/mad-eye/meteor-mocha-web/pull/126","diff_url":"https://github.com/mad-eye/meteor-mocha-web/pull/126.diff","patch_url":"https://github.com/mad-eye/meteor-mocha-web/pull/126.patch","issue_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/issues/126","number":126,"state":"closed","locked":false,"title":"Adjusted \"pre-require\" emit to include the global mocha object.","user":{"login":"hwillson","id":137740,"avatar_url":"https://avatars.githubusercontent.com/u/137740?v=3","gravatar_id":"","url":"https://api.github.com/users/hwillson","html_url":"https://github.com/hwillson","followers_url":"https://api.github.com/users/hwillson/followers","following_url":"https://api.github.com/users/hwillson/following{/other_user}","gists_url":"https://api.github.com/users/hwillson/gists{/gist_id}","starred_url":"https://api.github.com/users/hwillson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hwillson/subscriptions","organizations_url":"https://api.github.com/users/hwillson/orgs","repos_url":"https://api.github.com/users/hwillson/repos","events_url":"https://api.github.com/users/hwillson/events{/privacy}","received_events_url":"https://api.github.com/users/hwillson/received_events","type":"User","site_admin":false},"body":"Hi - I noticed **it.only** wasn't working for my tests. Tracing through the code it looks like **mocha** is undefined as it isn't passed in when the **\"pre-require\"** event is called in server.js. I see that it's defined as a global in server.js so I've adjusted things to pass the defined Mocha object in through the \"pre-require\" emit. This should help fix issue #81.","created_at":"2015-02-09T14:44:37Z","updated_at":"2015-02-09T15:13:41Z","closed_at":"2015-02-09T15:13:41Z","merged_at":null,"merge_commit_sha":"071ed34e4cd58a6abd3483f6bd5f4f248f9c3ff0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/pulls/126/commits","review_comments_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/pulls/126/comments","review_comment_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/pulls/comments/{number}","comments_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/issues/126/comments","statuses_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/statuses/a589cfe52b474636468f92dac71889db2572a713","head":{"label":"hwillson:master","ref":"master","sha":"a589cfe52b474636468f92dac71889db2572a713","user":{"login":"hwillson","id":137740,"avatar_url":"https://avatars.githubusercontent.com/u/137740?v=3","gravatar_id":"","url":"https://api.github.com/users/hwillson","html_url":"https://github.com/hwillson","followers_url":"https://api.github.com/users/hwillson/followers","following_url":"https://api.github.com/users/hwillson/following{/other_user}","gists_url":"https://api.github.com/users/hwillson/gists{/gist_id}","starred_url":"https://api.github.com/users/hwillson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hwillson/subscriptions","organizations_url":"https://api.github.com/users/hwillson/orgs","repos_url":"https://api.github.com/users/hwillson/repos","events_url":"https://api.github.com/users/hwillson/events{/privacy}","received_events_url":"https://api.github.com/users/hwillson/received_events","type":"User","site_admin":false},"repo":{"id":30536252,"name":"meteor-mocha-web","full_name":"hwillson/meteor-mocha-web","owner":{"login":"hwillson","id":137740,"avatar_url":"https://avatars.githubusercontent.com/u/137740?v=3","gravatar_id":"","url":"https://api.github.com/users/hwillson","html_url":"https://github.com/hwillson","followers_url":"https://api.github.com/users/hwillson/followers","following_url":"https://api.github.com/users/hwillson/following{/other_user}","gists_url":"https://api.github.com/users/hwillson/gists{/gist_id}","starred_url":"https://api.github.com/users/hwillson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hwillson/subscriptions","organizations_url":"https://api.github.com/users/hwillson/orgs","repos_url":"https://api.github.com/users/hwillson/repos","events_url":"https://api.github.com/users/hwillson/events{/privacy}","received_events_url":"https://api.github.com/users/hwillson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hwillson/meteor-mocha-web","description":"easily and safely run mocha tests within the Meteor framework","fork":true,"url":"https://api.github.com/repos/hwillson/meteor-mocha-web","forks_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/forks","keys_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/teams","hooks_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/hooks","issue_events_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/issues/events{/number}","events_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/events","assignees_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/assignees{/user}","branches_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/branches{/branch}","tags_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/tags","blobs_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/statuses/{sha}","languages_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/languages","stargazers_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/stargazers","contributors_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/contributors","subscribers_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/subscribers","subscription_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/subscription","commits_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/issues/comments/{number}","contents_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/contents/{+path}","compare_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/merges","archive_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/downloads","issues_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/issues{/number}","pulls_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/pulls{/number}","milestones_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/milestones{/number}","notifications_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/labels{/name}","releases_url":"https://api.github.com/repos/hwillson/meteor-mocha-web/releases{/id}","created_at":"2015-02-09T13:07:20Z","updated_at":"2015-02-09T14:30:06Z","pushed_at":"2015-02-09T14:30:06Z","git_url":"git://github.com/hwillson/meteor-mocha-web.git","ssh_url":"git@github.com:hwillson/meteor-mocha-web.git","clone_url":"https://github.com/hwillson/meteor-mocha-web.git","svn_url":"https://github.com/hwillson/meteor-mocha-web","homepage":"","size":311,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"mad-eye:master","ref":"master","sha":"4eb9d3ab3484812ff0b41d247c772ffdd24c5c20","user":{"login":"mad-eye","id":2841845,"avatar_url":"https://avatars.githubusercontent.com/u/2841845?v=3","gravatar_id":"","url":"https://api.github.com/users/mad-eye","html_url":"https://github.com/mad-eye","followers_url":"https://api.github.com/users/mad-eye/followers","following_url":"https://api.github.com/users/mad-eye/following{/other_user}","gists_url":"https://api.github.com/users/mad-eye/gists{/gist_id}","starred_url":"https://api.github.com/users/mad-eye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mad-eye/subscriptions","organizations_url":"https://api.github.com/users/mad-eye/orgs","repos_url":"https://api.github.com/users/mad-eye/repos","events_url":"https://api.github.com/users/mad-eye/events{/privacy}","received_events_url":"https://api.github.com/users/mad-eye/received_events","type":"User","site_admin":false},"repo":{"id":7124492,"name":"meteor-mocha-web","full_name":"mad-eye/meteor-mocha-web","owner":{"login":"mad-eye","id":2841845,"avatar_url":"https://avatars.githubusercontent.com/u/2841845?v=3","gravatar_id":"","url":"https://api.github.com/users/mad-eye","html_url":"https://github.com/mad-eye","followers_url":"https://api.github.com/users/mad-eye/followers","following_url":"https://api.github.com/users/mad-eye/following{/other_user}","gists_url":"https://api.github.com/users/mad-eye/gists{/gist_id}","starred_url":"https://api.github.com/users/mad-eye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mad-eye/subscriptions","organizations_url":"https://api.github.com/users/mad-eye/orgs","repos_url":"https://api.github.com/users/mad-eye/repos","events_url":"https://api.github.com/users/mad-eye/events{/privacy}","received_events_url":"https://api.github.com/users/mad-eye/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mad-eye/meteor-mocha-web","description":"easily and safely run mocha tests within the Meteor framework","fork":false,"url":"https://api.github.com/repos/mad-eye/meteor-mocha-web","forks_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/forks","keys_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/teams","hooks_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/hooks","issue_events_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/issues/events{/number}","events_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/events","assignees_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/assignees{/user}","branches_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/branches{/branch}","tags_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/tags","blobs_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/statuses/{sha}","languages_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/languages","stargazers_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/stargazers","contributors_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/contributors","subscribers_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/subscribers","subscription_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/subscription","commits_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/issues/comments/{number}","contents_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/contents/{+path}","compare_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/merges","archive_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/downloads","issues_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/issues{/number}","pulls_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/pulls{/number}","milestones_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/milestones{/number}","notifications_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/labels{/name}","releases_url":"https://api.github.com/repos/mad-eye/meteor-mocha-web/releases{/id}","created_at":"2012-12-12T04:49:38Z","updated_at":"2015-02-08T09:27:47Z","pushed_at":"2015-01-10T20:16:49Z","git_url":"git://github.com/mad-eye/meteor-mocha-web.git","ssh_url":"git@github.com:mad-eye/meteor-mocha-web.git","clone_url":"https://github.com/mad-eye/meteor-mocha-web.git","svn_url":"https://github.com/mad-eye/meteor-mocha-web","homepage":"","size":1006,"stargazers_count":109,"watchers_count":109,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"open_issues_count":35,"forks":30,"open_issues":35,"watchers":109,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mad-eye/meteor-mocha-web/pulls/126"},"html":{"href":"https://github.com/mad-eye/meteor-mocha-web/pull/126"},"issue":{"href":"https://api.github.com/repos/mad-eye/meteor-mocha-web/issues/126"},"comments":{"href":"https://api.github.com/repos/mad-eye/meteor-mocha-web/issues/126/comments"},"review_comments":{"href":"https://api.github.com/repos/mad-eye/meteor-mocha-web/pulls/126/comments"},"review_comment":{"href":"https://api.github.com/repos/mad-eye/meteor-mocha-web/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/mad-eye/meteor-mocha-web/pulls/126/commits"},"statuses":{"href":"https://api.github.com/repos/mad-eye/meteor-mocha-web/statuses/a589cfe52b474636468f92dac71889db2572a713"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":1,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}