Move contract event handling into service

This commit is contained in:
2018-04-15 20:36:21 +02:00
parent e4215557c8
commit d425ed6b9e
4 changed files with 80 additions and 64 deletions
+1 -6
View File
@@ -23,12 +23,7 @@ let addFixtures = function(controller) {
};
test('doesn\'t contain people with 0 balance', function(assert) {
// This is a bit strange... we do not want the controller to call the init function defined in the controller that
// initializes the event handlers on the contracts. Main reason is that we do not have proper contracts in test mode.
// this seems to work. but probably kills some controller stuff, which is fine in this test
let controller = this.subject({
init: function() { }
});
let controller = this.subject();
addFixtures(controller);
let contributorsSorted = controller.get('contributorsSorted');