summaryrefslogtreecommitdiffstats
path: root/js/tests/unit/controller/ContentControllerSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/tests/unit/controller/ContentControllerSpec.js')
-rw-r--r--js/tests/unit/controller/ContentControllerSpec.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/js/tests/unit/controller/ContentControllerSpec.js b/js/tests/unit/controller/ContentControllerSpec.js
index 9e3693e86..c99cb79ab 100644
--- a/js/tests/unit/controller/ContentControllerSpec.js
+++ b/js/tests/unit/controller/ContentControllerSpec.js
@@ -13,9 +13,11 @@ describe('ContentController', function () {
beforeEach(module('News'));
- it('should publish data to models', inject(function ($controller, Publisher, Feed, Item) {
- Publisher.subscribe(Item).toChannels('items');
- Publisher.subscribe(Feed).toChannels('feeds');
+ it('should publish data to models', inject(function ($controller, Publisher,
+ FeedResource, ItemResource) {
+
+ Publisher.subscribe(ItemResource).toChannels('items');
+ Publisher.subscribe(FeedResource).toChannels('feeds');
var controller = $controller('ContentController', {
data: {