summaryrefslogtreecommitdiffstats
path: root/js/tests/unit/controller
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-05-20 17:01:59 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-05-20 17:01:59 +0200
commit5a7b1e0c36c2dd564f44568de766118b07be49ad (patch)
tree23b9f80bb4509dd51948c3851660f5fa3754031d /js/tests/unit/controller
parentb5d5b2b22a2b4aabd4c9bb5c8b89aae10facc735 (diff)
rename model to resource
Diffstat (limited to 'js/tests/unit/controller')
-rw-r--r--js/tests/unit/controller/AppControllerSpec.js8
-rw-r--r--js/tests/unit/controller/ContentControllerSpec.js8
2 files changed, 9 insertions, 7 deletions
diff --git a/js/tests/unit/controller/AppControllerSpec.js b/js/tests/unit/controller/AppControllerSpec.js
index b7dad7492..d44d8b0c3 100644
--- a/js/tests/unit/controller/AppControllerSpec.js
+++ b/js/tests/unit/controller/AppControllerSpec.js
@@ -29,15 +29,15 @@ describe('AppController', function () {
}));
- it('should expose set firstrun if feeds', inject(function (Feed) {
- Feed.add({url: 'test'});
+ it('should expose set firstrun if feeds', inject(function (FeedResource) {
+ FeedResource.add({url: 'test'});
expect(controller.isFirstRun()).toBe(false);
}));
- it('should expose set firstrun if folders', inject(function (Folder) {
- Folder.add({name: 'test'});
+ it('should expose set firstrun if folders', inject(function (FolderResource) {
+ FolderResource.add({name: 'test'});
expect(controller.isFirstRun()).toBe(false);
}));
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: {