{"action":"created","issue":{"url":"https://api.github.com/repos/danielspaniel/ember-data-factory-guy/issues/178","repository_url":"https://api.github.com/repos/danielspaniel/ember-data-factory-guy","labels_url":"https://api.github.com/repos/danielspaniel/ember-data-factory-guy/issues/178/labels{/name}","comments_url":"https://api.github.com/repos/danielspaniel/ember-data-factory-guy/issues/178/comments","events_url":"https://api.github.com/repos/danielspaniel/ember-data-factory-guy/issues/178/events","html_url":"https://github.com/danielspaniel/ember-data-factory-guy/issues/178","id":138294369,"number":178,"title":"Cannot read property 'call' of undefined with empty factory...","user":{"login":"NullVoxPopuli","id":199018,"avatar_url":"https://avatars.githubusercontent.com/u/199018?v=3","gravatar_id":"","url":"https://api.github.com/users/NullVoxPopuli","html_url":"https://github.com/NullVoxPopuli","followers_url":"https://api.github.com/users/NullVoxPopuli/followers","following_url":"https://api.github.com/users/NullVoxPopuli/following{/other_user}","gists_url":"https://api.github.com/users/NullVoxPopuli/gists{/gist_id}","starred_url":"https://api.github.com/users/NullVoxPopuli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NullVoxPopuli/subscriptions","organizations_url":"https://api.github.com/users/NullVoxPopuli/orgs","repos_url":"https://api.github.com/users/NullVoxPopuli/repos","events_url":"https://api.github.com/users/NullVoxPopuli/events{/privacy}","received_events_url":"https://api.github.com/users/NullVoxPopuli/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2016-03-03T20:54:35Z","updated_at":"2016-03-03T21:53:48Z","closed_at":null,"body":"I've commented out nearly everything to try to narrow down the cause of this error.\r\n\r\n```\r\n\r\ntest('_eligibleForDiscount | true when membershipOption added', function(assert) {\r\n  // let membershipOption = make('membership-option');\r\n  let organization = make('organization', {\r\n    // membershipOptions: [membershipOption]\r\n  });\r\n  // let order = make('order', {\r\n  //   host: organization\r\n  // });\r\n  //\r\n  // order.addLineItem(membershipOption);\r\n  //\r\n  // let result = order._eligibleForDiscount();\r\n  //\r\n  // assert.equal(result, true);\r\n});\r\n```\r\n\r\n\r\nand then my factory:\r\n\r\n```\r\n// tests/factories/organization.js\r\n\r\nimport FactoryGuy from 'ember-data-factory-guy';\r\n\r\nFactoryGuy.define('organization', {\r\n  default: {\r\n    type: 'organization'\r\n  }\r\n});\r\n\r\n```\r\n\r\nnot sure what's up with this, cause the factory is pretty much the same as my others.. just with a different word placed in for define and type. "},"comment":{"url":"https://api.github.com/repos/danielspaniel/ember-data-factory-guy/issues/comments/191982240","html_url":"https://github.com/danielspaniel/ember-data-factory-guy/issues/178#issuecomment-191982240","issue_url":"https://api.github.com/repos/danielspaniel/ember-data-factory-guy/issues/178","id":191982240,"user":{"login":"NullVoxPopuli","id":199018,"avatar_url":"https://avatars.githubusercontent.com/u/199018?v=3","gravatar_id":"","url":"https://api.github.com/users/NullVoxPopuli","html_url":"https://github.com/NullVoxPopuli","followers_url":"https://api.github.com/users/NullVoxPopuli/followers","following_url":"https://api.github.com/users/NullVoxPopuli/following{/other_user}","gists_url":"https://api.github.com/users/NullVoxPopuli/gists{/gist_id}","starred_url":"https://api.github.com/users/NullVoxPopuli/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NullVoxPopuli/subscriptions","organizations_url":"https://api.github.com/users/NullVoxPopuli/orgs","repos_url":"https://api.github.com/users/NullVoxPopuli/repos","events_url":"https://api.github.com/users/NullVoxPopuli/events{/privacy}","received_events_url":"https://api.github.com/users/NullVoxPopuli/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T21:53:48Z","updated_at":"2016-03-03T21:53:48Z","body":"anywho, I don't think I was using it. I do get tho constructor.modelName quite a bit in other places though\r\n"}}