{"action":"created","issue":{"url":"https://api.github.com/repos/mizzao/meteor-user-status/issues/51","labels_url":"https://api.github.com/repos/mizzao/meteor-user-status/issues/51/labels{/name}","comments_url":"https://api.github.com/repos/mizzao/meteor-user-status/issues/51/comments","events_url":"https://api.github.com/repos/mizzao/meteor-user-status/issues/51/events","html_url":"https://github.com/mizzao/meteor-user-status/issues/51","id":55661165,"number":51,"title":"UserStatus is not defined in test environment","user":{"login":"abditus113","id":2119659,"avatar_url":"https://avatars.githubusercontent.com/u/2119659?v=3","gravatar_id":"","url":"https://api.github.com/users/abditus113","html_url":"https://github.com/abditus113","followers_url":"https://api.github.com/users/abditus113/followers","following_url":"https://api.github.com/users/abditus113/following{/other_user}","gists_url":"https://api.github.com/users/abditus113/gists{/gist_id}","starred_url":"https://api.github.com/users/abditus113/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abditus113/subscriptions","organizations_url":"https://api.github.com/users/abditus113/orgs","repos_url":"https://api.github.com/users/abditus113/repos","events_url":"https://api.github.com/users/abditus113/events{/privacy}","received_events_url":"https://api.github.com/users/abditus113/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-27T19:14:30Z","updated_at":"2015-01-27T20:27:20Z","closed_at":null,"body":"I'm having strange issue with UserStatus in test environment. Running ```meteor test-packages``` fails with ```ReferenceError``` saying that UserStatus is not defined although package is properly included. \r\nMoreover such error appears: ```The package mizzao:user-status at 0.2.0 is incompatible with Meteor 0.9.0 or later.``` I've checked meteor directory and version 0.2.0 of user-status package indeed exists there. It gets installed while running ```meteor test-packages``` command. Explicitly pointing to use version 0.6.3 of user-status in on_test section of package.js solves the problem but that should not be necessary.\r\nHere is the replication of the issue: https://github.com/abditus113/user-status-bug. Simply clone and run ```meteor test-packages```\r\nAny idea why that might be happening?"},"comment":{"url":"https://api.github.com/repos/mizzao/meteor-user-status/issues/comments/71721412","html_url":"https://github.com/mizzao/meteor-user-status/issues/51#issuecomment-71721412","issue_url":"https://api.github.com/repos/mizzao/meteor-user-status/issues/51","id":71721412,"user":{"login":"mizzao","id":2080084,"avatar_url":"https://avatars.githubusercontent.com/u/2080084?v=3","gravatar_id":"","url":"https://api.github.com/users/mizzao","html_url":"https://github.com/mizzao","followers_url":"https://api.github.com/users/mizzao/followers","following_url":"https://api.github.com/users/mizzao/following{/other_user}","gists_url":"https://api.github.com/users/mizzao/gists{/gist_id}","starred_url":"https://api.github.com/users/mizzao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mizzao/subscriptions","organizations_url":"https://api.github.com/users/mizzao/orgs","repos_url":"https://api.github.com/users/mizzao/repos","events_url":"https://api.github.com/users/mizzao/events{/privacy}","received_events_url":"https://api.github.com/users/mizzao/received_events","type":"User","site_admin":false},"created_at":"2015-01-27T20:27:20Z","updated_at":"2015-01-27T20:27:20Z","body":"Specify a version in `onUse`, otherwise the test environment (which is separate from your app) will have no idea which version to use. The installation of 0.2.0 is probably a bug (with Meteor's package dependency resolver).\r\n\r\nWhen you install the package in your app, it specifies a version which is why you don't see a problem outside the test environment."}}