{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/11610","labels_url":"https://api.github.com/repos/emberjs/ember.js/issues/11610/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/ember.js/issues/11610/comments","events_url":"https://api.github.com/repos/emberjs/ember.js/issues/11610/events","html_url":"https://github.com/emberjs/ember.js/issues/11610","id":92315235,"number":11610,"title":"Ember router doesn't know that it's without router.router while testing.","user":{"login":"nathanhammond","id":20542,"avatar_url":"https://avatars.githubusercontent.com/u/20542?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanhammond","html_url":"https://github.com/nathanhammond","followers_url":"https://api.github.com/users/nathanhammond/followers","following_url":"https://api.github.com/users/nathanhammond/following{/other_user}","gists_url":"https://api.github.com/users/nathanhammond/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanhammond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanhammond/subscriptions","organizations_url":"https://api.github.com/users/nathanhammond/orgs","repos_url":"https://api.github.com/users/nathanhammond/repos","events_url":"https://api.github.com/users/nathanhammond/events{/privacy}","received_events_url":"https://api.github.com/users/nathanhammond/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-01T08:33:35Z","updated_at":"2015-07-02T16:37:13Z","closed_at":null,"body":"This line interacts very oddly in our 1.13 (release channel edge) testing:\r\nhttps://github.com/emberjs/ember.js/blob/master/packages/ember-routing-views/lib/views/link.js#L269\r\n\r\nThe `get` call fails with the `obj` in that call being `undefined` (nonsensically, it's clearly being passed in). However, if I change it to:\r\n```js\r\nvar routing = get(this, \"_routing\") || this._routing;\r\n```\r\n\r\n... then it works. This seems counter to failure modes I'm familiar with in Ember. Error message is (since `routing` isn't set for the subsequent `get` call): \"Assertion Failed: Cannot call get with 'targetState' on an undefined object.\"\r\n\r\n(Posting this primarily for search engines.)"},"comment":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/comments/118088324","html_url":"https://github.com/emberjs/ember.js/issues/11610#issuecomment-118088324","issue_url":"https://api.github.com/repos/emberjs/ember.js/issues/11610","id":118088324,"user":{"login":"nathanhammond","id":20542,"avatar_url":"https://avatars.githubusercontent.com/u/20542?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanhammond","html_url":"https://github.com/nathanhammond","followers_url":"https://api.github.com/users/nathanhammond/followers","following_url":"https://api.github.com/users/nathanhammond/following{/other_user}","gists_url":"https://api.github.com/users/nathanhammond/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanhammond/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanhammond/subscriptions","organizations_url":"https://api.github.com/users/nathanhammond/orgs","repos_url":"https://api.github.com/users/nathanhammond/repos","events_url":"https://api.github.com/users/nathanhammond/events{/privacy}","received_events_url":"https://api.github.com/users/nathanhammond/received_events","type":"User","site_admin":false},"created_at":"2015-07-02T16:37:13Z","updated_at":"2015-07-02T16:37:13Z","body":"Two issues:\r\n- #11522 never made it into the 1.13 branch. Compare [master](https://github.com/emberjs/ember.js/blob/master/packages/ember-routing-views/lib/views/link.js) to [stable](https://github.com/emberjs/ember.js/blob/stable/packages/ember-routing-views/lib/views/link.js). @rwjblue I don't know the build magic to fix that or if I should just submit an identical PR to the stable branch.\r\n- We need to add [router.setupRouter();](https://github.com/switchfly/ember-test-helpers/blob/master/lib/ember-test-helpers/test-module.js#L224) here."}}