Skip to content

Instantly share code, notes, and snippets.

@knomedia
Created January 13, 2014 20:49
Show Gist options
  • Save knomedia/8407861 to your computer and use it in GitHub Desktop.
Save knomedia/8407861 to your computer and use it in GitHub Desktop.
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