Skip to content

Commit ea54aca

Browse files
committed
Add lookupController to test_utils
1 parent 2d6cdf4 commit ea54aca

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/javascripts/test_utils.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
var lookupStore = function() {
22
return App.__container__.lookup('store:main');
3-
}
3+
};
44

55
var lookupRouter = function() {
66
return App.__container__.lookup('router:main');
7-
}
7+
};
8+
9+
var lookupController = function(controllerName, options) {
10+
return App.__container__.lookup('controller:' + controllerName, options);
11+
};
812

913
var appendView = function(view) {
1014
Ember.run(function() {

0 commit comments

Comments
 (0)