I have a route that looks like this:
App.ApplicationRoute = Ember.Route.extend({
model: function() {
console.log("caching books");
this.store.find('books');
}
});
When I run it locally I see the "caching books" message in the console. But when I run it in qunit the message never shows up.
Why does the application route's model hook not fire in qunit?
Here's my qunit integration test:
module('Ember.js Library', {
setup: function() {
Ember.run(App, App.advanceReadiness);
},
teardown: function() {
App.reset();
}
});
test('root url redirects to leads list', function() {
visit('/');
andThen(function() {
// assert
});
});