Testing Ember.js - part 1
Ever since I saw the testing slides from EmberCamp I was thinking about testing. Up until now I’ve been using Capybara which is really really really slow.
But @joliss mentioned this thing called Ember.testing
which should
automagically fix all of the async problems which make tests ugly, such
as waiting for the application to initialize and finish routing.
In its essence Ember.testing = true
disables the automatic runloop,
which gives you the control to manually schedule asynchronous operations
to happen in a one-off runloop via Ember.run
.
Ember.run
will run the given function inside a runloop and flush all
of the bindings before it finishes...