summaryrefslogtreecommitdiffstats
path: root/js/tests/unit/controller/NavigationControllerSpec.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/tests/unit/controller/NavigationControllerSpec.js')
-rw-r--r--js/tests/unit/controller/NavigationControllerSpec.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/tests/unit/controller/NavigationControllerSpec.js b/js/tests/unit/controller/NavigationControllerSpec.js
index a5300453f..904455c5c 100644
--- a/js/tests/unit/controller/NavigationControllerSpec.js
+++ b/js/tests/unit/controller/NavigationControllerSpec.js
@@ -612,7 +612,7 @@ describe('NavigationController', function () {
it('should rename a feed', inject(function ($controller, FeedResource) {
- FeedResource.rename = jasmine.createSpy('rename');
+ FeedResource.patch = jasmine.createSpy('patch');
var ctrl = $controller('NavigationController', {
FeedResource: FeedResource,
@@ -626,7 +626,7 @@ describe('NavigationController', function () {
ctrl.renameFeed(feed);
- expect(FeedResource.rename).toHaveBeenCalledWith(3, 'test');
+ expect(FeedResource.patch).toHaveBeenCalledWith(3, {title: 'test'});
expect(feed.editing).toBe(false);
}));