summaryrefslogtreecommitdiffstats
path: root/js/tests/services/persistenceSpec.coffee
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-03-18 12:41:57 +0100
committerBernhard Posselt <nukeawhale@gmail.com>2013-03-18 12:41:57 +0100
commit206510d126a6c82c8fdbb2c704f57b8c00be0ae8 (patch)
treee07d63112f22c5d241acaab68cbfbc00817a8aeb /js/tests/services/persistenceSpec.coffee
parenta8c1a0dd9363f666dbe1a30ccb1501428261eaf2 (diff)
fixed test for init
Diffstat (limited to 'js/tests/services/persistenceSpec.coffee')
-rw-r--r--js/tests/services/persistenceSpec.coffee8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/tests/services/persistenceSpec.coffee b/js/tests/services/persistenceSpec.coffee
index 1798f3fb4..2dbcb9ed2 100644
--- a/js/tests/services/persistenceSpec.coffee
+++ b/js/tests/services/persistenceSpec.coffee
@@ -29,9 +29,9 @@ describe '_Persistence', ->
beforeEach inject (@_Persistence, @$rootScope) =>
@req =
post: jasmine.createSpy('POST')
- get: jasmine.createSpy('GET').andCallFake (url, p1, p2, callback) ->
- if callback
- callback()
+ get: jasmine.createSpy('GET').andCallFake (route, data) ->
+ if angular.isDefined(data) and data.onSuccess
+ data.onSuccess()
@config =
itemBatchSize: 12
@active =
@@ -42,7 +42,7 @@ describe '_Persistence', ->
decrease: ->
- xit 'should should show a loading sign when init', =>
+ it 'should should show a loading sign when init', =>
loading =
increase: jasmine.createSpy('loading')
decrease: jasmine.createSpy('finished loading')