diff options
author | Bernhard Posselt <Raydiation@users.noreply.github.com> | 2013-12-19 04:32:34 -0800 |
---|---|---|
committer | Bernhard Posselt <Raydiation@users.noreply.github.com> | 2013-12-19 04:32:34 -0800 |
commit | 43f86e58d2976d4c56f1921b272380b66758ae67 (patch) | |
tree | 7ec302037c8f436635387ce145b0436bfb29dd32 /js/tests/services/businesslayer | |
parent | 98d3328c5ea97b91faa184206799f4e7e7ccfd57 (diff) | |
parent | fd6137741f6331da70432e063a576a63f5588466 (diff) |
Merge pull request #411 from sub/issue242
Make feed title editable (FIX #242)
Diffstat (limited to 'js/tests/services/businesslayer')
-rw-r--r-- | js/tests/services/businesslayer/feedbusinesslayerSpec.coffee | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/js/tests/services/businesslayer/feedbusinesslayerSpec.coffee b/js/tests/services/businesslayer/feedbusinesslayerSpec.coffee index 26e5a2973..6061d8767 100644 --- a/js/tests/services/businesslayer/feedbusinesslayerSpec.coffee +++ b/js/tests/services/businesslayer/feedbusinesslayerSpec.coffee @@ -345,3 +345,14 @@ describe 'FeedBusinessLayer', -> jasmine.any(Function)) expect(callback).toHaveBeenCalled() + + it 'should make a rename feed request and disable editing', => + @persistence.renameFeed = jasmine.createSpy('Rename feed') + @FeedModel.add({id: 2, unreadCount:134, url: 'a1', folderId: 3}) + @FeedBusinessLayer.renameFeed(2, "New Title") + + expect(@persistence.renameFeed).toHaveBeenCalledWith(2, "New Title") + expect(@FeedModel.getById(2).editing).toBe(false) + + + |