{"action":"created","issue":{"url":"https://api.github.com/repos/danielspaniel/ember-data-factory-guy/issues/174","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/174/labels{/name}","comments_url":"https://api.github.com/repos/danielspaniel/ember-data-factory-guy/issues/174/comments","events_url":"https://api.github.com/repos/danielspaniel/ember-data-factory-guy/issues/174/events","html_url":"https://github.com/danielspaniel/ember-data-factory-guy/issues/174","id":134443568,"number":174,"title":"handleQuery not working as expected in acceptance test","user":{"login":"oniofchaos","id":1635820,"avatar_url":"https://avatars.githubusercontent.com/u/1635820?v=3","gravatar_id":"","url":"https://api.github.com/users/oniofchaos","html_url":"https://github.com/oniofchaos","followers_url":"https://api.github.com/users/oniofchaos/followers","following_url":"https://api.github.com/users/oniofchaos/following{/other_user}","gists_url":"https://api.github.com/users/oniofchaos/gists{/gist_id}","starred_url":"https://api.github.com/users/oniofchaos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oniofchaos/subscriptions","organizations_url":"https://api.github.com/users/oniofchaos/orgs","repos_url":"https://api.github.com/users/oniofchaos/repos","events_url":"https://api.github.com/users/oniofchaos/events{/privacy}","received_events_url":"https://api.github.com/users/oniofchaos/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-18T00:28:26Z","updated_at":"2016-02-18T00:34:56Z","closed_at":null,"body":"I have a dashboard with three tabs:\r\n* All data (default tab)\r\n* Data of type A\r\n* Data of type B\r\n\r\nThe default tab uses `findAll` and the filtered tabs use `query` on the type field.\r\n\r\nI'm trying to write a test that does the following:\r\n* Visit the default view \r\n* Click on tab A\r\n* Assert that only data of type A shows\r\n* Click on tab B\r\n* Assert that only data on tybe B shows\r\n\r\nI have a `TestHelper.handleFindAll` call that sets up 2 models for the main tab. I have two `TestHelper.handleQuery` calls (one for type 'A' and one for type 'B') that use `withParams` and `returnsModels`.\r\n\r\nWhen I run the test and click on tab A, I get an error that there are 4 entries on the dashboard instead of 1.\r\n\r\nI am using version 2.1.3 of ember-data-factory-guy.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/danielspaniel/ember-data-factory-guy/issues/comments/185478868","html_url":"https://github.com/danielspaniel/ember-data-factory-guy/issues/174#issuecomment-185478868","issue_url":"https://api.github.com/repos/danielspaniel/ember-data-factory-guy/issues/174","id":185478868,"user":{"login":"danielspaniel","id":180456,"avatar_url":"https://avatars.githubusercontent.com/u/180456?v=3","gravatar_id":"","url":"https://api.github.com/users/danielspaniel","html_url":"https://github.com/danielspaniel","followers_url":"https://api.github.com/users/danielspaniel/followers","following_url":"https://api.github.com/users/danielspaniel/following{/other_user}","gists_url":"https://api.github.com/users/danielspaniel/gists{/gist_id}","starred_url":"https://api.github.com/users/danielspaniel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danielspaniel/subscriptions","organizations_url":"https://api.github.com/users/danielspaniel/orgs","repos_url":"https://api.github.com/users/danielspaniel/repos","events_url":"https://api.github.com/users/danielspaniel/events{/privacy}","received_events_url":"https://api.github.com/users/danielspaniel/received_events","type":"User","site_admin":false},"created_at":"2016-02-18T00:34:56Z","updated_at":"2016-02-18T00:34:56Z","body":"This is hard for me to fix/understand since I would have to check the route to see what the store.query is returning ( but you could? ) then I have to see a bit more of what is going on.  are you on screenhero?"}}