diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-11-01 15:16:15 +0100 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2015-11-01 15:16:15 +0100 |
commit | a42da9a97c7fc84af09e01f3d6f3ee80a46b763b (patch) | |
tree | cf4b58d55c0f4e46db3dbea1bd3bd93f155d107c /js/tests/unit/controller | |
parent | cc5dd4231b11f87a7b0d0e66a7d00e62d11f7fb9 (diff) |
clean up feed api
Diffstat (limited to 'js/tests/unit/controller')
-rw-r--r-- | js/tests/unit/controller/NavigationControllerSpec.js | 4 |
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); })); |