{"action":"created","issue":{"url":"https://api.github.com/repos/meanjs/mean/issues/770","labels_url":"https://api.github.com/repos/meanjs/mean/issues/770/labels{/name}","comments_url":"https://api.github.com/repos/meanjs/mean/issues/770/comments","events_url":"https://api.github.com/repos/meanjs/mean/issues/770/events","html_url":"https://github.com/meanjs/mean/issues/770","id":99627398,"number":770,"title":"User Model tests","user":{"login":"rmlopes","id":423404,"avatar_url":"https://avatars.githubusercontent.com/u/423404?v=3","gravatar_id":"","url":"https://api.github.com/users/rmlopes","html_url":"https://github.com/rmlopes","followers_url":"https://api.github.com/users/rmlopes/followers","following_url":"https://api.github.com/users/rmlopes/following{/other_user}","gists_url":"https://api.github.com/users/rmlopes/gists{/gist_id}","starred_url":"https://api.github.com/users/rmlopes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmlopes/subscriptions","organizations_url":"https://api.github.com/users/rmlopes/orgs","repos_url":"https://api.github.com/users/rmlopes/repos","events_url":"https://api.github.com/users/rmlopes/events{/privacy}","received_events_url":"https://api.github.com/users/rmlopes/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/meanjs/mean/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"lirantal","id":316371,"avatar_url":"https://avatars.githubusercontent.com/u/316371?v=3","gravatar_id":"","url":"https://api.github.com/users/lirantal","html_url":"https://github.com/lirantal","followers_url":"https://api.github.com/users/lirantal/followers","following_url":"https://api.github.com/users/lirantal/following{/other_user}","gists_url":"https://api.github.com/users/lirantal/gists{/gist_id}","starred_url":"https://api.github.com/users/lirantal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lirantal/subscriptions","organizations_url":"https://api.github.com/users/lirantal/orgs","repos_url":"https://api.github.com/users/lirantal/repos","events_url":"https://api.github.com/users/lirantal/events{/privacy}","received_events_url":"https://api.github.com/users/lirantal/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/meanjs/mean/milestones/4","html_url":"https://github.com/meanjs/mean/milestones/0.4.x","labels_url":"https://api.github.com/repos/meanjs/mean/milestones/4/labels","id":1035360,"number":4,"title":"0.4.x","description":"Issues that will be handled at some point in time through the 0.4.x release cycle","creator":{"login":"ilanbiala","id":3695164,"avatar_url":"https://avatars.githubusercontent.com/u/3695164?v=3","gravatar_id":"","url":"https://api.github.com/users/ilanbiala","html_url":"https://github.com/ilanbiala","followers_url":"https://api.github.com/users/ilanbiala/followers","following_url":"https://api.github.com/users/ilanbiala/following{/other_user}","gists_url":"https://api.github.com/users/ilanbiala/gists{/gist_id}","starred_url":"https://api.github.com/users/ilanbiala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ilanbiala/subscriptions","organizations_url":"https://api.github.com/users/ilanbiala/orgs","repos_url":"https://api.github.com/users/ilanbiala/repos","events_url":"https://api.github.com/users/ilanbiala/events{/privacy}","received_events_url":"https://api.github.com/users/ilanbiala/received_events","type":"User","site_admin":false},"open_issues":15,"closed_issues":26,"state":"open","created_at":"2015-03-23T22:38:37Z","updated_at":"2015-08-07T11:35:42Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-08-07T10:59:21Z","updated_at":"2015-08-07T11:44:20Z","closed_at":null,"body":"Hi,\r\n\r\nI am trying out the 0.4.0 branch. The user model unit test for the email is failing (should not be able to save different user with the same email address). "},"comment":{"url":"https://api.github.com/repos/meanjs/mean/issues/comments/128681256","html_url":"https://github.com/meanjs/mean/issues/770#issuecomment-128681256","issue_url":"https://api.github.com/repos/meanjs/mean/issues/770","id":128681256,"user":{"login":"rmlopes","id":423404,"avatar_url":"https://avatars.githubusercontent.com/u/423404?v=3","gravatar_id":"","url":"https://api.github.com/users/rmlopes","html_url":"https://github.com/rmlopes","followers_url":"https://api.github.com/users/rmlopes/followers","following_url":"https://api.github.com/users/rmlopes/following{/other_user}","gists_url":"https://api.github.com/users/rmlopes/gists{/gist_id}","starred_url":"https://api.github.com/users/rmlopes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmlopes/subscriptions","organizations_url":"https://api.github.com/users/rmlopes/orgs","repos_url":"https://api.github.com/users/rmlopes/repos","events_url":"https://api.github.com/users/rmlopes/events{/privacy}","received_events_url":"https://api.github.com/users/rmlopes/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T11:44:20Z","updated_at":"2015-08-07T11:44:20Z","body":"\r\nRunning \"server\" task\r\n\r\nMEAN.JS - Test Environment\r\nEnvironment:                    test\r\nPort:                           3001\r\nDatabase:                               mongodb://localhost/mean-test\r\n\r\nRunning \"mochaTest:src\" (mochaTest) task\r\n\r\n\r\n  Article Model Unit Tests:\r\n    Method Save\r\n      √ should be able to save without problems\r\n      √ should be able to show an error when try to save without title\r\n\r\n  Article CRUD tests\r\n    √ should be able to save an article if logged in (127ms)\r\n    √ should not be able to save an article if not logged in\r\n    √ should not be able to save an article if no title is provided (55ms)\r\n    √ should be able to update an article if signed in (81ms)\r\n    √ should be able to get a list of articles if not signed in\r\n    √ should be able to get a single article if not signed in\r\n    √ should return proper error for single article with an invalid Id, if not s\r\nigned in\r\n    √ should return proper error for single article which doesnt exist, if not s\r\nigned in\r\n    √ should be able to delete an article if signed in (70ms)\r\n    √ should not be able to delete an article if not signed in\r\n\r\n  User Model Unit Tests:\r\n    Method Save\r\n      √ should begin with no users\r\n      √ should be able to save without problems (43ms)\r\n      √ should fail to save an existing user again (45ms)\r\n      √ should be able to show an error when try to save without first name\r\n      √ should confirm that saving user model doesnt change the password\r\n      √ should be able to save 2 different users (51ms)\r\n      1) should not be able to save different user with the same email address\r\n\r\n  User CRUD tests\r\n    √ should not be able to retrieve a list of users if not admin (57ms)\r\n    √ should be able to retrieve a list of users if admin (59ms)\r\n\r\n\r\n  20 passing (3s)\r\n  1 failing\r\n\r\n  1) User Model Unit Tests: Method Save should not be able to save different user with the same email address:\r\n     Error: timeout of 2000ms exceeded at null.<anonymous> (C:\\Users\\rmlopes\\meanprojects\\meancegi\\node_modules\\mocha\\lib\\runnable.js:139:19)\r\n      at Timer.listOnTimeout (timers.js:119:15)\r\n\r\n\r\nThe remaining PhantomJS tests are all marked with SUCCESS"}}