Skip to content

Instantly share code, notes, and snippets.

@knomedia
Created January 13, 2014 20:49
Ember Testing Options
When attempting to test elements in Ember it seems like you have the following options
1. Spin up your Ember app and pluck of the parts you are trying to test:
App.__container__.lookup("controller:quizzes")
2. Build a container, register dependencies on it.
cont = new Em.Container()
cont.register('controller:quizzes', Em.Object)
quizController = App.QuizController.create({container: cont})
3. Move logic to modules, test the modules in isolation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment