diff options
author | Bernhard Posselt <nukeawhale@gmail.com> | 2013-09-12 00:59:39 +0200 |
---|---|---|
committer | Bernhard Posselt <nukeawhale@gmail.com> | 2013-09-12 01:00:32 +0200 |
commit | 2391e6bf62e0a3624685a2a7c72bdb7de499bef2 (patch) | |
tree | bd8bbc00f9894a082f5628efd3ad79916da16e4d /js/tests/services/persistenceSpec.coffee | |
parent | 00c6e040deec9c3998ab679dcb84fc46ae72d2ac (diff) |
fix #342
Diffstat (limited to 'js/tests/services/persistenceSpec.coffee')
-rw-r--r-- | js/tests/services/persistenceSpec.coffee | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/tests/services/persistenceSpec.coffee b/js/tests/services/persistenceSpec.coffee index 3a8a79050..e9f12f669 100644 --- a/js/tests/services/persistenceSpec.coffee +++ b/js/tests/services/persistenceSpec.coffee @@ -233,16 +233,16 @@ describe 'Persistence', -> expect(@req.post).toHaveBeenCalledWith('news_feeds_create', params) - it 'should do a proper import google reader request', => + it 'should do a proper import articles request', => params = data: json: {"some": "json"} - onSuccess: -> + onSuccess: jasmine.any(Function) - @Persistence.importGoogleReader(params.data.json, params.onSuccess) + @Persistence.importArticles(params.data.json, ->) - expect(@req.post).toHaveBeenCalledWith('news_feeds_import_googlereader', + expect(@req.post).toHaveBeenCalledWith('news_feeds_import_articles', params) |