{"action":"created","issue":{"url":"https://api.github.com/repos/dockyard/ember-validations/issues/221","labels_url":"https://api.github.com/repos/dockyard/ember-validations/issues/221/labels{/name}","comments_url":"https://api.github.com/repos/dockyard/ember-validations/issues/221/comments","events_url":"https://api.github.com/repos/dockyard/ember-validations/issues/221/events","html_url":"https://github.com/dockyard/ember-validations/issues/221","id":53658768,"number":221,"title":"Testing error for custom validator with dash in filename","user":{"login":"mattmcginnis","id":20006,"avatar_url":"https://avatars.githubusercontent.com/u/20006?v=3","gravatar_id":"","url":"https://api.github.com/users/mattmcginnis","html_url":"https://github.com/mattmcginnis","followers_url":"https://api.github.com/users/mattmcginnis/followers","following_url":"https://api.github.com/users/mattmcginnis/following{/other_user}","gists_url":"https://api.github.com/users/mattmcginnis/gists{/gist_id}","starred_url":"https://api.github.com/users/mattmcginnis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattmcginnis/subscriptions","organizations_url":"https://api.github.com/users/mattmcginnis/orgs","repos_url":"https://api.github.com/users/mattmcginnis/repos","events_url":"https://api.github.com/users/mattmcginnis/events{/privacy}","received_events_url":"https://api.github.com/users/mattmcginnis/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-07T17:34:32Z","updated_at":"2015-01-07T19:44:08Z","closed_at":null,"body":"I have a custom validator app/validators/local/password-matches.js\r\n\r\nIn the controller, it is referenced as passwordMatches\r\n\r\nIn the controller unit test, it is \"needed\" like:\r\n```javascript\r\n  needs:[\r\n    'validator:local/password-matches',\r\n  ]\r\n```\r\n\r\nThis causes an error when the test runs because the validator is not found in the lookupValidator function in ember-validations/addon/mixins.js\r\n\r\n```javascript\r\n  var local = container.lookupFactory('validator:local/'+validatorName);\r\n```\r\n\r\nThe temporary solution to this problem is to rename my validator to app/validators/local/passwordmatches.js and reference it in the controller as passwordmatches and need it in the test like validator:local/passwordmatches.\r\n\r\nIdeally, the former style can be supported."},"comment":{"url":"https://api.github.com/repos/dockyard/ember-validations/issues/comments/69079438","html_url":"https://github.com/dockyard/ember-validations/issues/221#issuecomment-69079438","issue_url":"https://api.github.com/repos/dockyard/ember-validations/issues/221","id":69079438,"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-07T19:44:08Z","updated_at":"2015-01-07T19:44:08Z","body":"I just confirmed with the master branch of ember-resolver that hyphens are OK. I'll look into ember-validations..."}}