KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Does anyone have any good advice for testing that the ember route's connectOutlets has been successful? For example, I have the following routes: vault: Ember.Route.extend route: '/vault' connectOutlets: (router, event) -> router.get('applicationController').connectOutlet 'exercises' index: Ember.Route.extend route: '/' connectOutlets: (router, event) -> exercises = WZ.store.find(WZ.Exercise) router.get('exercisesController').connectOutlet 'main', 'exercisesHome', exercises How would I go about checking that this was having the desired behaviour? I can test the currentState.path like this: it 'should transition to vault', -> Ember.run => @router.transitionTo 'vault' expect(@router.getPath('currentState.path')).toEqual 'root.vault' But I don't think this is a very good test.
Tags (comma-separated)
Save Edits
Cancel