{"action":"created","issue":{"url":"https://api.github.com/repos/ember-cli/ember-cli/issues/3897","labels_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/3897/labels{/name}","comments_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/3897/comments","events_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/3897/events","html_url":"https://github.com/ember-cli/ember-cli/issues/3897","id":68326636,"number":3897,"title":"Generated addon helper tests failing out of the box in 0.2.3/Master","user":{"login":"clekstro","id":366944,"avatar_url":"https://avatars.githubusercontent.com/u/366944?v=3","gravatar_id":"","url":"https://api.github.com/users/clekstro","html_url":"https://github.com/clekstro","followers_url":"https://api.github.com/users/clekstro/followers","following_url":"https://api.github.com/users/clekstro/following{/other_user}","gists_url":"https://api.github.com/users/clekstro/gists{/gist_id}","starred_url":"https://api.github.com/users/clekstro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clekstro/subscriptions","organizations_url":"https://api.github.com/users/clekstro/orgs","repos_url":"https://api.github.com/users/clekstro/repos","events_url":"https://api.github.com/users/clekstro/events{/privacy}","received_events_url":"https://api.github.com/users/clekstro/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ember-cli/ember-cli/labels/pending-submitter-response","name":"pending-submitter-response","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-04-14T10:08:07Z","updated_at":"2015-04-25T14:23:20Z","closed_at":null,"body":"After generating a new helper with `ember g helper data-test` within an addon, the tests immediately fail. Unfortunately, this isn't an assertion-based failure that a developer can recognize as a starting point and recover from.  It appears the generated tests simply fail because they cannot resolve the object under test:\r\n\r\n```bash\r\n✘ Died on test #1     at http://localhost:7357/assets/test-support.js:2809\r\n        at http://localhost:7357/assets/test-support.js:5574\r\n        at http://localhost:7357/assets/test-loader.js:31\r\n        at http://localhost:7357/assets/test-loader.js:21\r\n        at http://localhost:7357/assets/test-loader.js:40\r\n        at http://localhost:7357/assets/test-support.js:5578: Could not find module `ember-data-test/index` imported from `ember-data-test`\r\n\r\nDataTestHelper: it works\r\n    ✘ Died on test #1     at http://localhost:7357/assets/test-support.js:2809\r\n        at http://localhost:7357/assets/dummy.js:254\r\n        at http://localhost:7357/assets/vendor.js:150\r\n        at tryFinally (http://localhost:7357/assets/vendor.js:30)\r\n        at http://localhost:7357/assets/vendor.js:156\r\n        at http://localhost:7357/assets/test-loader.js:29\r\n        at http://localhost:7357/assets/test-loader.js:21\r\n        at http://localhost:7357/assets/test-loader.js:40\r\n        at http://localhost:7357/assets/test-support.js:5578: 'undefined' is not a function (evaluating 'data_test.dataTest(42)')\r\n```\r\n\r\nI have tried this with master following the advice in [this issue](https://github.com/ember-cli/ember-cli/issues/3796), but still get these failures.  In other addons (e.g. [ember-cli-dates](https://github.com/johnotander/ember-cli-dates/blob/master/app/initializers/ember-cli-dates.js)), I have seen the use of initializers to ensure that the helper is loaded, but would assume that if this were required that the initializer would be generated by default.\r\n\r\nYou can view the repo [here](https://github.com/fauxton/ember-data-test)"},"comment":{"url":"https://api.github.com/repos/ember-cli/ember-cli/issues/comments/96213802","html_url":"https://github.com/ember-cli/ember-cli/issues/3897#issuecomment-96213802","issue_url":"https://api.github.com/repos/ember-cli/ember-cli/issues/3897","id":96213802,"user":{"login":"clekstro","id":366944,"avatar_url":"https://avatars.githubusercontent.com/u/366944?v=3","gravatar_id":"","url":"https://api.github.com/users/clekstro","html_url":"https://github.com/clekstro","followers_url":"https://api.github.com/users/clekstro/followers","following_url":"https://api.github.com/users/clekstro/following{/other_user}","gists_url":"https://api.github.com/users/clekstro/gists{/gist_id}","starred_url":"https://api.github.com/users/clekstro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/clekstro/subscriptions","organizations_url":"https://api.github.com/users/clekstro/orgs","repos_url":"https://api.github.com/users/clekstro/repos","events_url":"https://api.github.com/users/clekstro/events{/privacy}","received_events_url":"https://api.github.com/users/clekstro/received_events","type":"User","site_admin":false},"created_at":"2015-04-25T14:23:20Z","updated_at":"2015-04-25T14:23:20Z","body":"@stefanpenner @marcioj Anything else I can help with here?"}}