{"action":"created","issue":{"url":"https://api.github.com/repos/dockyard/ember-validations/issues/234","labels_url":"https://api.github.com/repos/dockyard/ember-validations/issues/234/labels{/name}","comments_url":"https://api.github.com/repos/dockyard/ember-validations/issues/234/comments","events_url":"https://api.github.com/repos/dockyard/ember-validations/issues/234/events","html_url":"https://github.com/dockyard/ember-validations/issues/234","id":55069913,"number":234,"title":"Controller tests failing due to cache on v2.0.0-alpha.2","user":{"login":"coleww","id":5067315,"avatar_url":"https://avatars.githubusercontent.com/u/5067315?v=3","gravatar_id":"","url":"https://api.github.com/users/coleww","html_url":"https://github.com/coleww","followers_url":"https://api.github.com/users/coleww/followers","following_url":"https://api.github.com/users/coleww/following{/other_user}","gists_url":"https://api.github.com/users/coleww/gists{/gist_id}","starred_url":"https://api.github.com/users/coleww/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coleww/subscriptions","organizations_url":"https://api.github.com/users/coleww/orgs","repos_url":"https://api.github.com/users/coleww/repos","events_url":"https://api.github.com/users/coleww/events{/privacy}","received_events_url":"https://api.github.com/users/coleww/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-01-21T20:06:16Z","updated_at":"2015-01-21T20:47:05Z","closed_at":"2015-01-21T20:46:49Z","body":"On a project at work, we started getting a lot of failing controller tests due to this error: 'Assertion Failed: Cannot call get with 'cache' on an undefined object.'\r\n\r\nI  noticed that all of the failing tests depended on ember-validations, and saw that v2.0.0-alpha.2 was released yesterday. It seems like the error must be happening around here:\r\n\r\nhttps://github.com/dockyard/ember-validations/compare/v2.0.0-alpha.1...master#diff-68a377996e559f04a75ca6ba1af084b1R34\r\n\r\nI don't know enough about Ember/Qunit internals to see what the issue is, but I wanted to raise this in case others have the same problem. Validations were working in the app, the only issue was in testing. Moreover, some of our integration tests touch on validation functionality, and those were also passing. \r\n\r\nThis is what one of the failing tests looked like, just the standard `ember g controller` test:\r\n\r\n```\r\n`import { test, moduleFor } from 'ember-qunit'`\r\n\r\nmoduleFor 'controller:user', 'UserController', {\r\n  needs: ['ember-validations@validator:local/presence',\r\n          'ember-validations@validator:local/format',\r\n          'ember-validations@validator:local/length']\r\n}\r\n\r\ntest 'it exists', ->\r\n  controller = @subject()\r\n  ok controller\r\n```\r\n\r\nUsing: \r\nEmber : 1.7.0\r\nEmber-cli : 0.1.2\r\n\r\nLet me know if I can provide any more info"},"comment":{"url":"https://api.github.com/repos/dockyard/ember-validations/issues/comments/70918194","html_url":"https://github.com/dockyard/ember-validations/issues/234#issuecomment-70918194","issue_url":"https://api.github.com/repos/dockyard/ember-validations/issues/234","id":70918194,"user":{"login":"bcardarella","id":18524,"avatar_url":"https://avatars.githubusercontent.com/u/18524?v=3","gravatar_id":"","url":"https://api.github.com/users/bcardarella","html_url":"https://github.com/bcardarella","followers_url":"https://api.github.com/users/bcardarella/followers","following_url":"https://api.github.com/users/bcardarella/following{/other_user}","gists_url":"https://api.github.com/users/bcardarella/gists{/gist_id}","starred_url":"https://api.github.com/users/bcardarella/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcardarella/subscriptions","organizations_url":"https://api.github.com/users/bcardarella/orgs","repos_url":"https://api.github.com/users/bcardarella/repos","events_url":"https://api.github.com/users/bcardarella/events{/privacy}","received_events_url":"https://api.github.com/users/bcardarella/received_events","type":"User","site_admin":false},"created_at":"2015-01-21T20:47:05Z","updated_at":"2015-01-21T20:47:05Z","body":"Can you try master branch?"}}