{"action":"created","issue":{"url":"https://api.github.com/repos/danielspaniel/ember-data-factory-guy/issues/59","labels_url":"https://api.github.com/repos/danielspaniel/ember-data-factory-guy/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/danielspaniel/ember-data-factory-guy/issues/59/comments","events_url":"https://api.github.com/repos/danielspaniel/ember-data-factory-guy/issues/59/events","html_url":"https://github.com/danielspaniel/ember-data-factory-guy/pull/59","id":55346078,"number":59,"title":"Missing var in mockjax handler","user":{"login":"mmelvin0","id":762247,"avatar_url":"https://avatars.githubusercontent.com/u/762247?v=3","gravatar_id":"","url":"https://api.github.com/users/mmelvin0","html_url":"https://github.com/mmelvin0","followers_url":"https://api.github.com/users/mmelvin0/followers","following_url":"https://api.github.com/users/mmelvin0/following{/other_user}","gists_url":"https://api.github.com/users/mmelvin0/gists{/gist_id}","starred_url":"https://api.github.com/users/mmelvin0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmelvin0/subscriptions","organizations_url":"https://api.github.com/users/mmelvin0/orgs","repos_url":"https://api.github.com/users/mmelvin0/repos","events_url":"https://api.github.com/users/mmelvin0/events{/privacy}","received_events_url":"https://api.github.com/users/mmelvin0/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-23T23:21:51Z","updated_at":"2015-01-24T21:45:59Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/danielspaniel/ember-data-factory-guy/pulls/59","html_url":"https://github.com/danielspaniel/ember-data-factory-guy/pull/59","diff_url":"https://github.com/danielspaniel/ember-data-factory-guy/pull/59.diff","patch_url":"https://github.com/danielspaniel/ember-data-factory-guy/pull/59.patch"},"body":"This was causing requests mocked with handleCreate() (and probably others) to fail in 0.9.7, whereas they were working in 0.8.4."},"comment":{"url":"https://api.github.com/repos/danielspaniel/ember-data-factory-guy/issues/comments/71338955","html_url":"https://github.com/danielspaniel/ember-data-factory-guy/pull/59#issuecomment-71338955","issue_url":"https://api.github.com/repos/danielspaniel/ember-data-factory-guy/issues/59","id":71338955,"user":{"login":"mmelvin0","id":762247,"avatar_url":"https://avatars.githubusercontent.com/u/762247?v=3","gravatar_id":"","url":"https://api.github.com/users/mmelvin0","html_url":"https://github.com/mmelvin0","followers_url":"https://api.github.com/users/mmelvin0/followers","following_url":"https://api.github.com/users/mmelvin0/following{/other_user}","gists_url":"https://api.github.com/users/mmelvin0/gists{/gist_id}","starred_url":"https://api.github.com/users/mmelvin0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmelvin0/subscriptions","organizations_url":"https://api.github.com/users/mmelvin0/orgs","repos_url":"https://api.github.com/users/mmelvin0/repos","events_url":"https://api.github.com/users/mmelvin0/events{/privacy}","received_events_url":"https://api.github.com/users/mmelvin0/received_events","type":"User","site_admin":false},"created_at":"2015-01-24T21:45:59Z","updated_at":"2015-01-24T21:45:59Z","body":"I think this may be because I'm using Ember CLI which stamps ['use strict'](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode#Converting_mistakes_into_errors) on everything.\r\n\r\nFor me, the error was simply \"ReferenceError: attribute is not defined\" whenever mockjax was indirectly invoked by my acceptance test after having called handleCreate().\r\n\r\nI'm pretty sure it would fail for any mocked request.\r\n\r\nI'm also very curious what the unit test for this would look like. I took a look at your tests briefly but couldn't figure out how I would go about testing what mockjax was doing, directly or indirectly. I'm very new to JavaScript unit testing/qUint so I'm interested in seeing how testing interactions with a wrapper library works."}}